Skip to main content

Inbox API

The /v1/inbox endpoints give you programmatic access to the unified inbox: list inbound comments and DMs, reply to them, and edit replies you've already sent.

Requires authentication.


List inbox items​

GET /api/v1/inbox

Query parameters​

ParameterTypeDefaultDescription
statusstring—unread, read, replied
sourceTypestring—Filter by inbound source type
platformstring—Filter by platform (e.g. instagram)
accountIdstring—Filter by account
limitinteger25Page size
offsetinteger0Skip count

Example​

curl "https://<your-api-origin>/api/v1/inbox?status=unread&platform=instagram&limit=20" \
-H "Authorization: Bearer sx_live_YOUR_API_KEY"

Response — 200 OK​

{
"data": {
"items": [
{
"id": "inb_01",
"platform": "instagram",
"sourceType": "comment",
"accountId": "acc_abc123",
"status": "unread",
"message": "When does this ship?",
"createdAt": "2026-07-12T10:00:00.000Z"
}
],
"total": 7
}
}

Reply to an inbox item​

POST /api/v1/inbox/{itemId}/reply

Sends a reply to the inbound comment or DM through the platform.

Request body​

FieldTypeRequiredDescription
messagestringyesThe reply text

Example​

curl -X POST https://<your-api-origin>/api/v1/inbox/inb_01/reply \
-H "Authorization: Bearer sx_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "message": "It ships today! 🚀" }'

Response — 200 OK​

{ "data": { "success": true } }

Successful replies also fire the outbound message.sent webhook; failures fire message.failed.


Edit a sent reply​

PATCH /api/v1/inbox/{itemId}/replies/{replyId}

Edits the text of a reply you already sent.

Request body​

FieldTypeRequiredDescription
messagestringyesThe new reply text

Response — 200 OK​

{ "data": { "success": true } }
warning

Edit support is platform-dependent. Facebook supports editing sent comments; most other platforms don't expose an edit API — requests against unsupported platforms fail with a platform error.