# Inbox API reference

The Inbox API reference covers 10 endpoints of the SkedCast social media REST API. Comments, direct messages, mentions and reviews from every connected account: read, triage, reply and moderate.

## List conversations

`GET /inbox/conversations`

Scope: `inbox.read`

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `cursor` | string | query | no | Keyset cursor from a previous page. |
| `limit` | integer | query | no |  |
| `clientId` | string (uuid) | query | no |  |
| `socialAccountId` | string (uuid) | query | no |  |
| `platform` | enum: x | linkedin | instagram | facebook | tiktok | youtube | … | query | no |  |
| `kind` | enum: comment | message | mention | review | query | no |  |
| `status` | enum: open | pending | done | query | no |  |
| `assignee` | string | query | no | A teammate's user id, `me` or `none`. |
| `labelId` | string (uuid) | query | no |  |
| `sentiment` | enum: positive | neutral | negative | unclassified | query | no |  |
| `intent` | enum: question | complaint | sales_lead | praise | spam | query | no | `question` also matches sales leads. |
| `folder` | enum: primary | general | requests | query | no | Instagram direct-message folder. |
| `replied` | boolean | query | no | Whether the account has answered. A reply waiting for approval does not count. |
| `hasText` | boolean | query | no | `false` lists rating-only reviews. |
| `unread` | boolean | query | no |  |
| `held` | boolean | query | no | Only conversations with a message the platform is holding for approval. |
| `snoozed` | boolean | query | no | `true` lists only snoozed conversations; otherwise they are left out until they wake. |
| `archived` | boolean | query | no | `true` lists only archived conversations; otherwise they are left out. |
| `includeArchived` | boolean | query | no | `true` lists archived conversations together with the rest. |
| `minRating` | integer | query | no | Reviews only. |
| `maxRating` | integer | query | no | Reviews only. |
| `search` | string | query | no | Matches the message text and the contact's name or handle. |
| `externalPostId` | string | query | no | Only the comments on this post (the platform's post id). |

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

## Get a conversation

`GET /inbox/conversations/{id}`

Scope: `inbox.read`

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

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

## Triage a conversation

`PATCH /inbox/conversations/{id}`

Scope: `inbox.reply`

Change a conversation's status, assignee, priority, labels, snooze or read state. Send at least one of them. An assignee must be a teammate who can reply and has the conversation's client in scope (`400 engagement_assignee_cannot_reply`). Send `expectedUpdatedAt` to refuse the change when someone else changed the conversation first. Requires the `inbox.reply` scope 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. |
| `status` | enum: open | pending | done | body | no |  |
| `assigneeUserId` | string | null (uuid) | body | no | null unassigns. |
| `priority` | integer | body | no |  |
| `unread` | boolean | body | no |  |
| `labelIds` | array of string (uuid) | body | no | Replaces the conversation's labels. |
| `snoozedUntil` | string | null (date-time) | body | no | Hide the conversation until then; null wakes it. |
| `expectedUpdatedAt` | string (date-time) | body | no | The `updatedAt` you last read. |

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

## Reply to a conversation

`POST /inbox/conversations/{id}/reply`

Scope: `inbox.reply`

Send a reply on the platform: a public reply, or a private one in the person's direct messages where the platform allows it (Facebook and Instagram comments). `forApproval: true` holds the reply for an Owner or Manager to approve; nothing reaches the platform until then. Direct-message replies can carry up to 10 library files and up to 13 quick-reply buttons. Requires the `inbox.reply` scope, a verified email on the account 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. |
| `text` | string | body | yes | May be empty when the reply sends files. |
| `messageId` | string (uuid) | body | no | The message you answer; the latest one from the person when absent. |
| `private` | boolean | body | no | Answer a public comment in the person's direct messages. |
| `markDone` | boolean | body | no | Mark the conversation done once the reply is sent. |
| `quoteMessageId` | string (uuid) | body | no | A direct-message reply that quotes this message. |
| `mediaAssetIds` | array of string (uuid) | body | no | Library files sent with a direct-message reply. |
| `quickReplies` | array of string | body | no | Buttons under a direct-message reply, each label different; a tap comes back as the button's text. |
| `askFor` | enum: phone | email | body | no | Messenger: a button that shares the person's phone number or email. |
| `forApproval` | boolean | body | no | Hold the reply for approval instead of sending it now. |

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

## Moderate a message

`POST /inbox/messages/{id}/actions`

Scope: `inbox.moderate`

Like, hide, delete or block on the platform, where the platform allows it. `approve`, `reject` and `reject_and_ban` decide a comment the platform is holding for approval. `reaction` (one emoji) goes only with `like`. Requires the `inbox.moderate` scope 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. |
| `action` | enum: like | unlike | hide | unhide | delete | block | … | body | yes |  |
| `reaction` | string | body | no | One emoji, for `like` on a direct message. The heart when absent. |

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

## Get inbox counts

`GET /inbox/counts`

Scope: `inbox.read`

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `clientId` | string (uuid) | query | no |  |
| `socialAccountId` | string (uuid) | query | no |  |

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

## List labels

`GET /inbox/labels`

Scope: `inbox.read`

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

## List saved replies

`GET /inbox/saved-replies`

Scope: `inbox.read`

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `clientId` | string (uuid) | query | no |  |
| `cursor` | string | query | no | Keyset cursor from a previous page. |
| `limit` | integer | query | no | Page size (1–100). Default 100. |

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

## Get the inbox report

`GET /inbox/report`

Scope: `inbox.read`

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | string (date) | query | yes |  |
| `to` | string (date) | query | yes |  |
| `timeZone` | string | query | no | IANA time zone the days are counted in; UTC when absent. |
| `clientId` | string (uuid) | query | no |  |

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

## Get the reviews summary

`GET /inbox/reviews/summary`

Scope: `inbox.read`

| Field | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `clientId` | string (uuid) | query | no |  |
| `socialAccountId` | string (uuid) | query | no | One location. |

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