# GET /v1/event-sources — Event sources

**`GET /v1/event-sources`** · Secret or secret key · scope `donations:read`, `twitch:read`, `youtube:read`

Response structure: [`SourceStatusList`](https://developers.donatty.com/en/structures/event-source.md#sourcestatuslist), [`SourceStatus`](https://developers.donatty.com/en/structures/event-source.md#sourcestatus)

Sources of your events and their status: the linked Donation Alerts account when the key has `donations:read`, the linked Twitch account when it has `twitch:read`, the linked YouTube channels when it has `youtube:read`; any of these scopes is enough. Each item is the same object as `data` of the `source.status_changed` live event, which Donatty publishes to the `donations` channel for Donation Alerts, to the `twitch` channel for Twitch and to the `youtube` channel for YouTube when the status or `unavailableTypes` change. A source is listed as `IDLE` while nothing is received for apps. `READY` means the platform confirmed delivery to Donatty; for YouTube, that polling of every available required type keeps making progress, with no fixed delay. Events of a source that is not `READY` may be missed: when it becomes `READY` again, read the gap from the REST API starting a few minutes before `gapSince`. The API server stores the current status in memory and keeps no separate history of status changes. After an API server restart, `since` is the time that server first observes the source.

## Responses

- `200` — OK
- `400` — The key was sent in the request address: [`token_in_query`](https://developers.donatty.com/en/errors/token_in_query.md)
- `401` — The key is missing, unknown, deleted or expired: [`missing_token`](https://developers.donatty.com/en/errors/missing_token.md), [`invalid_token`](https://developers.donatty.com/en/errors/invalid_token.md), [`token_expired`](https://developers.donatty.com/en/errors/token_expired.md)
- `403` — Wrong kind of key, or the key has none of the `donations:read`, `twitch:read` and `youtube:read` scopes. The public key never has them: [`wrong_token_type`](https://developers.donatty.com/en/errors/wrong_token_type.md), [`insufficient_scope`](https://developers.donatty.com/en/errors/insufficient_scope.md)
- `429` — Rate limit exceeded: [`rate_limited`](https://developers.donatty.com/en/errors/rate_limited.md)
- `500` — The request failed on our side: [`internal_error`](https://developers.donatty.com/en/errors/internal_error.md)
- `503` — The API is temporarily unavailable: [`service_unavailable`](https://developers.donatty.com/en/errors/service_unavailable.md)

## Example response

```json
{
  "items": [
    {
      "id": "src_da_9817342",
      "platform": "DONATION_ALERTS",
      "accountId": "9817342",
      "status": "READY",
      "since": "2026-11-09T10:00:04.318275Z",
      "gapSince": null,
      "unavailableTypes": []
    },
    {
      "id": "src_twitch_141981764",
      "platform": "TWITCH",
      "accountId": "141981764",
      "status": "REAUTH_REQUIRED",
      "since": "2026-11-09T10:31:12.507394Z",
      "gapSince": "2026-11-09T10:31:04.112840Z",
      "unavailableTypes": [
        "twitch.reward.redeemed"
      ]
    },
    {
      "id": "src_youtube_104857306182736450192",
      "platform": "YOUTUBE",
      "accountId": "104857306182736450192",
      "status": "READY",
      "since": "2026-11-09T10:19:47.215064Z",
      "gapSince": null,
      "unavailableTypes": [
        "youtube.member"
      ]
    }
  ]
}
```

## Schemas

### SourceStatusList

| Field | Type | Description |
|---|---|---|
| `items` | list `SourceStatus` | Donation Alerts accounts when the key has `donations:read`, Twitch accounts when it has `twitch:read`, YouTube channels when it has `youtube:read`. |

### SourceStatus

A source of the streamer's events and its status: the same object in `GET /v1/event-sources` and in `data` of the `source.status_changed` live event.

| Field | Type | Description |
|---|---|---|
| `id` | string | Source identifier: `src_da_…` for a Donation Alerts account, `src_twitch_…` for a Twitch account, `src_youtube_…` for a YouTube channel. It stays the same while the account is linked. |
| `platform` | string, values: `DONATION_ALERTS`, `TWITCH`, `YOUTUBE` | The platform. Clients must accept new values. |
| `accountId` | string | The streamer's account on the platform: the Donation Alerts user ID, the Twitch user ID of the channel; for YouTube, the ID of the Google account the channel is linked through, not the `UC…` channel ID. |
| `status` | string, values: `IDLE`, `STARTING`, `READY`, `CAPACITY_LIMITED`, `QUOTA_LIMITED`, `REAUTH_REQUIRED`, `ERROR` | Status of the source. `IDLE` — nothing is received for apps: no app listens to the source. `STARTING` — Donatty is connecting to the platform or waiting for it to confirm delivery; for YouTube, the first poll of a required type has not finished. `READY` — the platform confirmed delivery to Donatty; for YouTube, every available required type is polled and keeps making progress. No fixed delay is promised: under shared load YouTube polling slows down, which is neither `ERROR` nor `QUOTA_LIMITED`. `CAPACITY_LIMITED` (Donation Alerts only) — all connections Donatty keeps for apps are busy and the source waits in a queue. `QUOTA_LIMITED` (YouTube only) — Donatty's daily YouTube API quota is used up; polling resumes after midnight Pacific Time. `REAUTH_REQUIRED` — the platform withdrew Donatty's access: reconnect the account in the Donatty dashboard. `ERROR` — the platform refused for another reason, or polling of the platform is switched off or stuck. Clients must accept new values. |
| `since` | string (date-time) | When Donatty saw the source enter the current status, RFC 3339 in UTC; after a Donatty restart, the time of the first check. |
| `gapSince` | string (date-time) or null | Start of a possible gap in events, when Donatty knows one: for Donation Alerts, since the source waits for a free connection or lost a working one; for Twitch, since a required subscription stopped working; for YouTube, since an app needs the source and it is not `READY`. `null` when no gap is known; this is not a promise that every gap is known. |
| `unavailableTypes` | list of strings | Twitch and YouTube only: event types Donatty knows it cannot receive now, for the reason given by `status`; for YouTube, `youtube.member` when the channel has no memberships or YouTube does not give the member list, and every type when polling is switched off. An empty list means no known unavailable types, not that the source is ready. |
