# Approvals API reference

The Approvals API reference covers 5 endpoints of the SkedCast social media REST API. The pre-publish approval workflow.

## List approvals

`GET /approvals`

Scope: `approvals.read`

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `cursor` | string | query | no | Keyset cursor from a previous page. |
| `limit` | integer | query | no | Page size (1–100). |
| `status` | enum: pending | approved | changes_requested | rejected | query | no |  |
| `postId` | string (uuid) | query | no |  |

Responses: 200, 400, 401, 403, 404, 422, 429

## Get an approval

`GET /approvals/{id}`

Scope: `approvals.read`

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | string (uuid) | path | yes |  |

Responses: 200, 400, 401, 403, 404, 422, 429

## Approve a pending request

`POST /approvals/{id}/approve`

Scope: `approvals.decide`

Approve a pending approval request and release the post for publishing. Its destinations move to `scheduled`, and destinations that are due go out immediately. `409 approval_already_decided` if the request was already decided. Requires the `approvals.decide` scope (Owner, Manager, or an Editor on the post's channels; never the post's own author) and an `Idempotency-Key` header.

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | string (uuid) | path | yes |  |
| `Idempotency-Key` | string | header | yes | A unique key (for example a UUID, up to 255 characters) for this request. Retry a 429, 502, 503 or 504, or a request that got no response, with the same Idempotency-Key: SkedCast runs it once or returns the first result. Every other answer, including a 500, is kept for 24 hours and returned again for that key, so send a new key to try again. |
| `comment` | string | body | no |  |

Responses: 200, 400, 401, 403, 404, 409, 422, 429

## Reject a pending request

`POST /approvals/{id}/reject`

Scope: `approvals.decide`

Reject a pending approval request (final) — the post and its targets stay unpublished drafts. `409 approval_already_decided` if already decided. Requires the `approvals.decide` scope (Owner, Manager, or an Editor on the post's channels; never the post's own author) and an `Idempotency-Key` header.

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | string (uuid) | path | yes |  |
| `Idempotency-Key` | string | header | yes | A unique key (for example a UUID, up to 255 characters) for this request. Retry a 429, 502, 503 or 504, or a request that got no response, with the same Idempotency-Key: SkedCast runs it once or returns the first result. Every other answer, including a 500, is kept for 24 hours and returned again for that key, so send a new key to try again. |
| `comment` | string | body | no |  |

Responses: 200, 400, 401, 403, 404, 409, 422, 429

## Request changes on a pending request

`POST /approvals/{id}/request-changes`

Scope: `approvals.decide`

Send a pending approval request back to its author for revision — the post and its targets stay unpublished drafts. `409 approval_already_decided` if already decided. Requires the `approvals.decide` scope (Owner, Manager, or an Editor on the post's channels; never the post's own author) and an `Idempotency-Key` header.

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | string (uuid) | path | yes |  |
| `Idempotency-Key` | string | header | yes | A unique key (for example a UUID, up to 255 characters) for this request. Retry a 429, 502, 503 or 504, or a request that got no response, with the same Idempotency-Key: SkedCast runs it once or returns the first result. Every other answer, including a 500, is kept for 24 hours and returned again for that key, so send a new key to try again. |
| `comment` | string | body | no |  |

Responses: 200, 400, 401, 403, 404, 409, 422, 429
