# Go live API reference

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

## Get the workspace's Go live setup

`GET /organizations/{organizationId}/workspaces/{workspaceId}/go-live` · operationId `goLive.get`

- Scope: `go_live:read`
- Role permission: Any of: See Go live (`goLive:read`), Manage Go live (`goLive:manage`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Returns everything about Go live in the workspace: the Twitch connection (`available`: Twitch works on this server; `connected`; `needsReconnect` when Twitch revoked it; the channel), the stream on now with what was decided for it (`null` when not live), the switches and rules, the every-stream announcement (`null` until saved once), the planned streams of the next 30 days (cancelled ones flagged) with their own announcements, and whether the organization has Clips. Needs the right to see Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, GoLivePage)
  - `connection` (object, required, GoLiveConnection)
    - `available` (boolean, required)
    - `connected` (boolean, required)
    - `needsReconnect` (boolean, required)
    - `channel` (object, required, nullable)
      - `twitchUserId` (string, required)
      - `login` (string, required, nullable)
      - `displayName` (string, required, nullable)
      - `avatarUrl` (string, required, nullable)
  - `live` (object, required, nullable, GoLiveLiveStream)
    - `id` (string (uuid), required)
    - `title` (string, required)
    - `category` (string, required)
    - `startedAt` (string (date-time), required)
    - `outcome` (string, required, nullable): one of `disabled`, `same_stream`, `cooldown`, `quiet_word`, `no_accounts`, `announced`, `failed`, `late` (may gain values).
    - `postId` (string (uuid), required, nullable)
    - `postedPlatforms` (array of string, required): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
  - `settings` (object, required, GoLiveSettings)
    - `enabled` (boolean, required)
    - `headsUp` (boolean, required)
    - `followUp` (boolean, required)
    - `sendToClips` (boolean, required)
    - `sameStreamMinutes` (number, required)
    - `cooldownMinutes` (number, required)
    - `quietWords` (array of string, required)
    - `plannedWindowMinutes` (number, required)
  - `announcement` (object, required, nullable, GoLiveAnnouncement)
    - `socialAccountIds` (array of string (uuid), required)
    - `text` (string, required)
    - `mediaId` (string (uuid), required, nullable)
    - `discordChannelIds` (map of string, required)
    - `updatedAt` (string (date-time), required, nullable)
  - `plannedStreams` (array of object, required)
    - `id` (string (uuid), required)
    - `source` (string, required): one of `twitch`, `once` (may gain values).
    - `title` (string, required)
    - `startsAt` (string (date-time), required)
    - `endsAt` (string (date-time), required, nullable)
    - `recurring` (boolean, required)
    - `cancelled` (boolean, required)
    - `showOnPage` (boolean, optional)
    - `announcement` (object, required, nullable, GoLiveAnnouncement)
      - `socialAccountIds` (array of string (uuid), required)
      - `text` (string, required)
      - `mediaId` (string (uuid), required, nullable)
      - `discordChannelIds` (map of string, required)
      - `updatedAt` (string (date-time), required, nullable)
  - `clipsAvailable` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A connected channel, not live**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "connection": {
      "available": true,
      "connected": true,
      "needsReconnect": false,
      "channel": {
        "twitchUserId": "123456789",
        "login": "northwind",
        "displayName": "Northwind",
        "avatarUrl": null
      }
    },
    "live": null,
    "settings": {
      "enabled": true,
      "headsUp": false,
      "followUp": true,
      "sendToClips": false,
      "sameStreamMinutes": 10,
      "cooldownMinutes": 180,
      "quietWords": [
        "test"
      ],
      "plannedWindowMinutes": 60
    },
    "announcement": {
      "socialAccountIds": [
        "0b6f5c1e-2a7d-4c3b-9e8f-1a2b3c4d5e6f"
      ],
      "text": "I'm live: {title}\n{link}",
      "mediaId": null,
      "discordChannelIds": {},
      "updatedAt": "2026-11-20T09:30:00.000Z"
    },
    "plannedStreams": [
      {
        "id": "9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
        "source": "once",
        "title": "Glaze night",
        "startsAt": "2026-11-28T19:00:00.000Z",
        "endsAt": "2026-11-28T21:00:00.000Z",
        "recurring": false,
        "cancelled": false,
        "showOnPage": true,
        "announcement": null
      }
    ],
    "clipsAvailable": false
  }
}
```


## Save the every-stream announcement

`PUT /organizations/{organizationId}/workspaces/{workspaceId}/go-live/announcement` · operationId `goLive.announcement.save`

- Scope: `go_live:write`, and also `posts:publish`
- Role permission: Manage Go live (`goLive:manage`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Replaces the announcement used for every stream (a planned stream can have its own: `goLive.plannedStreams.*`). An announcement is `socialAccountIds` (at most 30 accounts of the workspace on Discord, X, Bluesky, Threads, LinkedIn or Facebook; find them with `socialAccounts.list`), `text` (up to 2,000 characters; `{title}`, `{category}` and `{link}` are filled from Twitch when it goes out), an optional picture of the media library (`mediaId`), and for each Discord account the channel it posts in (`discordChannelIds`, account id → channel id; a Discord account without one is skipped). Accounts and media must belong to the workspace (`404`), and every account must be of a platform that can announce (`400 VALIDATION_FAILED`). Nothing is posted by this call: announcements go out on their own when the stream starts (and a heads-up an hour before a planned stream, a replay link after it, when those switches are on), without waiting for anyone's approval. So this needs the `posts:publish` scope too, and when the organization requires approval for posts from integrations it is refused (`422 GO_LIVE_NEEDS_APPROVAL_IN_APP`): a person sets it up in Beplan. Needs the right to manage Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `socialAccountIds` (array of string (uuid), required): at most 30 items.
- `text` (string, required): at most 2000 characters.
- `mediaId` (string (uuid), required, nullable)
- `discordChannelIds` (map of string, optional)

**200 OK**

- `data` (object, required, GoLiveAnnouncement)
  - `socialAccountIds` (array of string (uuid), required)
  - `text` (string, required)
  - `mediaId` (string (uuid), required, nullable)
  - `discordChannelIds` (map of string, required)
  - `updatedAt` (string (date-time), required, nullable)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `INSUFFICIENT_SCOPE` | This token doesn't have the access this needs. Connect again and allow it. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `MEDIA_NOT_FOUND` | This media doesn't exist or was deleted. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `SOCIAL_ACCOUNT_NOT_FOUND` | This account isn't connected to this workspace anymore. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 422 | `GO_LIVE_NEEDS_APPROVAL_IN_APP` | This organization requires approval for posts from integrations, so Go live announcements must be set up in Beplan. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: An announcement with no account yet**

```bash
curl -X PUT "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/announcement" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "socialAccountIds": [],
  "text": "I'\''m live: {title}\n{link}",
  "mediaId": null
}'
```

Answers 200:

```json
{
  "data": {
    "socialAccountIds": [],
    "text": "I'm live: {title}\n{link}",
    "mediaId": null,
    "discordChannelIds": {},
    "updatedAt": "2026-11-20T09:30:00.000Z"
  }
}
```


## Plan a one-time stream

`POST /organizations/{organizationId}/workspaces/{workspaceId}/go-live/planned-streams` · operationId `goLive.plannedStreams.create`

- Scope: `go_live:write`, and also `posts:publish`
- Role permission: Manage Go live (`goLive:manage`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Adds a one-time planned stream (Twitch schedule slots are synced on their own and can't be created here): a `title` (one line, up to 140 characters), `startsAt` in the future and an optional `endsAt` after it (ISO 8601), whether it is listed on the creator page's stream and schedule tiles (`showOnPage`, `true` by default), and optionally its own `announcement` (`null` or absent: the every-stream one). An announcement is `socialAccountIds` (at most 30 accounts of the workspace on Discord, X, Bluesky, Threads, LinkedIn or Facebook; find them with `socialAccounts.list`), `text` (up to 2,000 characters; `{title}`, `{category}` and `{link}` are filled from Twitch when it goes out), an optional picture of the media library (`mediaId`), and for each Discord account the channel it posts in (`discordChannelIds`, account id → channel id; a Discord account without one is skipped). Nothing is posted by this call: announcements go out on their own when the stream starts (and a heads-up an hour before a planned stream, a replay link after it, when those switches are on), without waiting for anyone's approval. So this needs the `posts:publish` scope too, and when the organization requires approval for posts from integrations it is refused (`422 GO_LIVE_NEEDS_APPROVAL_IN_APP`): a person sets it up in Beplan. Answers `201` with the planned stream. Needs the right to manage Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `title` (string, required): 1–140 characters; matches `^[^\u0000-\u001f\u007f]*$`.
- `startsAt` (string (date-time), required)
- `endsAt` (string (date-time), optional, nullable)
- `showOnPage` (boolean, optional)
- `announcement` (object, optional, nullable, GoLiveAnnouncementInput)
  - `socialAccountIds` (array of string (uuid), required): at most 30 items.
  - `text` (string, required): at most 2000 characters.
  - `mediaId` (string (uuid), required, nullable)
  - `discordChannelIds` (map of string, optional)

**201 Created**

- `data` (object, required, GoLivePlannedStream)
  - `id` (string (uuid), required)
  - `source` (string, required): one of `twitch`, `once` (may gain values).
  - `title` (string, required)
  - `startsAt` (string (date-time), required)
  - `endsAt` (string (date-time), required, nullable)
  - `recurring` (boolean, required)
  - `cancelled` (boolean, required)
  - `showOnPage` (boolean, optional)
  - `announcement` (object, required, nullable, GoLiveAnnouncement)
    - `socialAccountIds` (array of string (uuid), required)
    - `text` (string, required)
    - `mediaId` (string (uuid), required, nullable)
    - `discordChannelIds` (map of string, required)
    - `updatedAt` (string (date-time), required, nullable)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `INSUFFICIENT_SCOPE` | This token doesn't have the access this needs. Connect again and allow it. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `MEDIA_NOT_FOUND` | This media doesn't exist or was deleted. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `SOCIAL_ACCOUNT_NOT_FOUND` | This account isn't connected to this workspace anymore. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 422 | `GO_LIVE_NEEDS_APPROVAL_IN_APP` | This organization requires approval for posts from integrations, so Go live announcements must be set up in Beplan. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A one-time stream**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/planned-streams" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Glaze night",
  "startsAt": "2026-11-28T19:00:00.000Z",
  "endsAt": "2026-11-28T21:00:00.000Z"
}'
```

Answers 201:

```json
{
  "data": {
    "id": "9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "source": "once",
    "title": "Glaze night",
    "startsAt": "2026-11-28T19:00:00.000Z",
    "endsAt": "2026-11-28T21:00:00.000Z",
    "recurring": false,
    "cancelled": false,
    "showOnPage": true,
    "announcement": null
  }
}
```


## Change a planned stream

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/go-live/planned-streams/{plannedStreamId}` · operationId `goLive.plannedStreams.update`

- Scope: `go_live:write`, and also `posts:publish`
- Role permission: Manage Go live (`goLive:manage`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Changes only the fields given. `title`, `startsAt` and `endsAt` only on one-time streams (a stream from the Twitch schedule follows Twitch: `422 PLANNED_STREAM_FROM_TWITCH`); `showOnPage` and `announcement` on any (`announcement: null` goes back to the every-stream one). An announcement is `socialAccountIds` (at most 30 accounts of the workspace on Discord, X, Bluesky, Threads, LinkedIn or Facebook; find them with `socialAccounts.list`), `text` (up to 2,000 characters; `{title}`, `{category}` and `{link}` are filled from Twitch when it goes out), an optional picture of the media library (`mediaId`), and for each Discord account the channel it posts in (`discordChannelIds`, account id → channel id; a Discord account without one is skipped). Nothing is posted by this call: announcements go out on their own when the stream starts (and a heads-up an hour before a planned stream, a replay link after it, when those switches are on), without waiting for anyone's approval. So this needs the `posts:publish` scope too, and when the organization requires approval for posts from integrations it is refused (`422 GO_LIVE_NEEDS_APPROVAL_IN_APP`): a person sets it up in Beplan. Find ids with `goLive.get`. Needs the right to manage Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `plannedStreamId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `title` (string, optional): 1–140 characters; matches `^[^\u0000-\u001f\u007f]*$`.
- `startsAt` (string (date-time), optional)
- `endsAt` (string (date-time), optional, nullable)
- `showOnPage` (boolean, optional)
- `announcement` (object, optional, nullable, GoLiveAnnouncementInput)
  - `socialAccountIds` (array of string (uuid), required): at most 30 items.
  - `text` (string, required): at most 2000 characters.
  - `mediaId` (string (uuid), required, nullable)
  - `discordChannelIds` (map of string, optional)

**200 OK**

- `data` (object, required, GoLivePlannedStream)
  - `id` (string (uuid), required)
  - `source` (string, required): one of `twitch`, `once` (may gain values).
  - `title` (string, required)
  - `startsAt` (string (date-time), required)
  - `endsAt` (string (date-time), required, nullable)
  - `recurring` (boolean, required)
  - `cancelled` (boolean, required)
  - `showOnPage` (boolean, optional)
  - `announcement` (object, required, nullable, GoLiveAnnouncement)
    - `socialAccountIds` (array of string (uuid), required)
    - `text` (string, required)
    - `mediaId` (string (uuid), required, nullable)
    - `discordChannelIds` (map of string, required)
    - `updatedAt` (string (date-time), required, nullable)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `INSUFFICIENT_SCOPE` | This token doesn't have the access this needs. Connect again and allow it. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `GO_LIVE_PLANNED_STREAM_NOT_FOUND` | This planned stream doesn't exist in this workspace. |
| 404 | `MEDIA_NOT_FOUND` | This media doesn't exist or was deleted. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `SOCIAL_ACCOUNT_NOT_FOUND` | This account isn't connected to this workspace anymore. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 422 | `GO_LIVE_NEEDS_APPROVAL_IN_APP` | This organization requires approval for posts from integrations, so Go live announcements must be set up in Beplan. |
| 422 | `PLANNED_STREAM_FROM_TWITCH` | This stream comes from your Twitch schedule. Change its title or time on Twitch. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Keep it off the creator page**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/planned-streams/9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "showOnPage": false
}'
```

Answers 200:

```json
{
  "data": {
    "id": "9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "source": "once",
    "title": "Glaze night",
    "startsAt": "2026-11-28T19:00:00.000Z",
    "endsAt": "2026-11-28T21:00:00.000Z",
    "recurring": false,
    "cancelled": false,
    "showOnPage": false,
    "announcement": null
  }
}
```


## Delete a one-time planned stream

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/go-live/planned-streams/{plannedStreamId}` · operationId `goLive.plannedStreams.delete`

- Scope: `go_live:write`
- Role permission: Manage Go live (`goLive:manage`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Deletes a one-time planned stream and its own announcement. A stream from the Twitch schedule can't be deleted here (`422 PLANNED_STREAM_FROM_TWITCH`; remove it on Twitch, or hide it with `showOnPage: false`). Answers `204` with no body. Needs the right to manage Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `plannedStreamId` | path | string (uuid) | yes |  |

**204 No content**

No content.

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `GO_LIVE_PLANNED_STREAM_NOT_FOUND` | This planned stream doesn't exist in this workspace. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 422 | `PLANNED_STREAM_FROM_TWITCH` | This stream comes from your Twitch schedule. Change its title or time on Twitch. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Delete a planned stream**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/planned-streams/9c8b7a6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 204 with no content.


## Preview the announcement that would go out now

`GET /organizations/{organizationId}/workspaces/{workspaceId}/go-live/preview` · operationId `goLive.preview.get`

- Scope: `go_live:read`
- Role permission: Any of: See Go live (`goLive:read`), Manage Go live (`goLive:manage`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Reads the channel's current title and category from Twitch and returns the announcement that would go out if the stream started now: a planned stream's own when one starts within the planned window (`plannedStreamId`), else the every-stream one, with its words filled in, its accounts and its picture. `live` says whether the channel is on air. Posts nothing. Needs a connected channel (`409 GO_LIVE_NOT_CONNECTED`) and the right to see Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, GoLivePreview)
  - `title` (string, required)
  - `category` (string, required)
  - `live` (boolean, required)
  - `plannedStreamId` (string (uuid), required, nullable)
  - `text` (string, required)
  - `socialAccountIds` (array of string (uuid), required)
  - `mediaId` (string (uuid), required, nullable)

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `GO_LIVE_NOT_CONNECTED` | Connect Twitch first. |
| 502 | `UPSTREAM_FAILED` | A service we depend on didn't respond. Please try again. |
| 503 | `TWITCH_UNAVAILABLE` | Twitch isn't available right now. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Not live yet**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/preview" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "title": "Glaze night",
    "category": "Art",
    "live": false,
    "plannedStreamId": null,
    "text": "I'm live: Glaze night\nhttps://twitch.tv/northwind",
    "socialAccountIds": [
      "0b6f5c1e-2a7d-4c3b-9e8f-1a2b3c4d5e6f"
    ],
    "mediaId": null
  }
}
```


## Change Go live's switches and rules

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/go-live/settings` · operationId `goLive.settings.update`

- Scope: `go_live:write`, and also `posts:publish`
- Role permission: Manage Go live (`goLive:manage`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Changes only the fields given: `enabled` (announcements go out at all), `headsUp` (a post an hour before each planned stream), `followUp` (the replay link once the stream stops), `sameStreamMinutes` (back within this many minutes is the same stream, 0–240), `cooldownMinutes` (at most one announcement per this many minutes, 0–1,440), `quietWords` (a title containing one, in any case, stays quiet; up to 20 of up to 40 characters) and `plannedWindowMinutes` (going live within this many minutes of a planned stream uses its announcement, 0–720). Nothing is posted by this call: announcements go out on their own when the stream starts (and a heads-up an hour before a planned stream, a replay link after it, when those switches are on), without waiting for anyone's approval. So this needs the `posts:publish` scope too, and when the organization requires approval for posts from integrations it is refused (`422 GO_LIVE_NEEDS_APPROVAL_IN_APP`): a person sets it up in Beplan. `sendToClips` (each replay becomes a Clips project, which runs analysis and AI) is read-only here: it can only be changed in the Beplan app. Sending a different value answers `403 SETTING_APP_ONLY` (`details.field`) and nothing of the request is applied; sending the current value back is accepted. Answers the settings. Needs the right to manage Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `enabled` (boolean, optional)
- `headsUp` (boolean, optional)
- `followUp` (boolean, optional)
- `sendToClips` (boolean, optional)
- `sameStreamMinutes` (integer, optional): from 0 to 240.
- `cooldownMinutes` (integer, optional): from 0 to 1440.
- `quietWords` (array of string, optional): at most 20 items; each 1–40 characters.
- `plannedWindowMinutes` (integer, optional): from 0 to 720.

**200 OK**

- `data` (object, required, GoLiveSettings)
  - `enabled` (boolean, required)
  - `headsUp` (boolean, required)
  - `followUp` (boolean, required)
  - `sendToClips` (boolean, required)
  - `sameStreamMinutes` (number, required)
  - `cooldownMinutes` (number, required)
  - `quietWords` (array of string, required)
  - `plannedWindowMinutes` (number, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `INSUFFICIENT_SCOPE` | This token doesn't have the access this needs. Connect again and allow it. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 403 | `SETTING_APP_ONLY` | This setting can only be changed in the Beplan app. Nothing was changed. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 422 | `GO_LIVE_NEEDS_APPROVAL_IN_APP` | This organization requires approval for posts from integrations, so Go live announcements must be set up in Beplan. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Turn announcements on**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/settings" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true,
  "followUp": true
}'
```

Answers 200:

```json
{
  "data": {
    "enabled": true,
    "headsUp": false,
    "followUp": true,
    "sendToClips": false,
    "sameStreamMinutes": 10,
    "cooldownMinutes": 180,
    "quietWords": [
      "test"
    ],
    "plannedWindowMinutes": 60
  }
}
```


## Disconnect Twitch

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/go-live/twitch` · operationId `goLive.twitch.disconnect`

- Scope: `go_live:write`
- Role permission: Manage Go live (`goLive:manage`)
- Effect (`destructive`, calls a platform): Deletes data or cannot be undone. Calls a social platform when invoked, so it counts against the smaller budget of operations that leave Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Disconnects the workspace's Twitch channel: no announcement goes out until a person connects it again (`goLive.twitch.connect` needs a browser), and a stream open now is ended in Beplan. Announcements, planned streams and settings are kept, so reconnecting the same channel brings everything back. `409 GO_LIVE_NOT_CONNECTED` when nothing is connected. Answers `204` with no body. Needs the right to manage Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**204 No content**

No content.

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `GO_LIVE_NOT_CONNECTED` | Connect Twitch first. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Disconnect Twitch**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/twitch" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 204 with no content.


## Get a link to connect Twitch

`POST /organizations/{organizationId}/workspaces/{workspaceId}/go-live/twitch/connect` · operationId `goLive.twitch.connect`

- Scope: `go_live:write`
- Role permission: Manage Go live (`goLive:manage`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Idempotency: Single-flight: an `Idempotency-Key` only stops a second run while the first is running. Its answer carries signed links and is never stored, so a repeat afterwards runs again with fresh links.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Starts connecting (or reconnecting) the workspace's Twitch channel and returns `authorizeUrl`, Twitch's sign-in page, valid 10 minutes. **A person must open it in a browser where they are signed in to Beplan as the same user** the token belongs to: they approve on Twitch, which sends them back to the Beplan app, where the connection finishes. The API can't finish it alone. Show or send the link to that person, then poll `goLive.get` until `connection.connected` is `true`. No body. `503 TWITCH_UNAVAILABLE` when Twitch isn't available on this server. Needs the right to manage Go live.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required)
  - `authorizeUrl` (string (uri), required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 503 | `TWITCH_UNAVAILABLE` | Twitch isn't available right now. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Connect Twitch**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/go-live/twitch/connect" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)"
```

Answers 200:

```json
{
  "data": {
    "authorizeUrl": "https://id.twitch.tv/oauth2/authorize?client_id=…&response_type=code&state=…"
  }
}
```


---
HTML version: https://beplan.io/docs/api/go-live/
