Inbox
GET/api/v1/inbox/channels
Authorization
bearer_token In: header
Query Parameters
Full-text query applied to channel name and description
1-indexed page number
int640 <= valuePage size
int640 <= valueSort field
Sort order (asc or desc)
Value in
- "asc"
- "desc"
Response Body
application/json
curl -X GET "https://example.com/api/v1/inbox/channels"{ "channels": [ { "actions_allowed": true, "allowed_producers": [ "string" ], "channel_id": "string", "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "default_priority": "low", "delivery_policy": { "pubsub_topic": "string", "scheduled_delivery_allowed": true, "websocket_fanout": true }, "description": "string", "name": "string", "retention_days": 0, "technical_notes_required": true, "updated_at": "2019-08-24T14:15:22Z" } ], "pagination": { "has_more": true, "page": 0, "page_size": 0, "total": 0 }}POST/api/v1/inbox/channels
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/channels" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "actions_allowed": true, "allowed_producers": [ "string" ], "channel_id": "string", "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "default_priority": "low", "delivery_policy": { "pubsub_topic": "string", "scheduled_delivery_allowed": true, "websocket_fanout": true }, "description": "string", "name": "string", "retention_days": 0, "technical_notes_required": true, "updated_at": "2019-08-24T14:15:22Z"}GET/api/v1/inbox/channels/{channel_id}
Authorization
bearer_token In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/api/v1/inbox/channels/string"{ "actions_allowed": true, "allowed_producers": [ "string" ], "channel_id": "string", "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "default_priority": "low", "delivery_policy": { "pubsub_topic": "string", "scheduled_delivery_allowed": true, "websocket_fanout": true }, "description": "string", "name": "string", "retention_days": 0, "technical_notes_required": true, "updated_at": "2019-08-24T14:15:22Z"}GET/api/v1/inbox/counts
curl -X GET "https://example.com/api/v1/inbox/counts"{ "counts": { "by_channel": { "property1": 0, "property2": 0 }, "by_priority": { "property1": 0, "property2": 0 }, "by_thread": { "property1": 0, "property2": 0 }, "total": 0 }}POST/api/v1/inbox/maintenance/run
curl -X POST "https://example.com/api/v1/inbox/maintenance/run"{ "expired": 0, "promoted": 0, "self_destructed": 0}GET/api/v1/inbox/messages
Authorization
bearer_token In: header
Query Parameters
Only return unread messages
Filter by channel id
Filter by priority
Filter by thread id
Include archived messages
Include dismissed messages
1-indexed page number
int640 <= valuePage size
int640 <= valueAdditional filter expressions in the form field:operator:value
Response Body
application/json
curl -X GET "https://example.com/api/v1/inbox/messages"{ "messages": [ { "actions": [ { "id": "string", "kind": "link", "label": "string", "target": "string" } ], "body": "string", "channel_id": "string", "created_at": "2019-08-24T14:15:22Z", "delivery": { "deliver_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "self_destruct_after_read_seconds": 0 }, "message_id": "string", "priority": "low", "recipient_user_id": "string", "sender": { "id": "string", "kind": "string" }, "state": { "archived": true, "dismissed": true, "read": true, "read_at": "2019-08-24T14:15:22Z" }, "technical_notes": null, "thread_id": "string", "title": "string" } ], "pagination": { "has_more": true, "page": 0, "page_size": 0, "total": 0 }}POST/api/v1/inbox/messages
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages" \ -H "Content-Type: application/json" \ -d '{ "body": "string", "channel_id": "string", "recipient_user_ids": [ "string" ], "title": "string" }'{ "message_ids": [ "string" ], "scheduled": true, "status": "string"}POST/api/v1/inbox/messages/batch
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A batch of distinct messages to send in one request. Each is sent independently and fail-fast; the server enforces a per-batch cap.
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages/batch" \ -H "Content-Type: application/json" \ -d '{ "messages": [ { "body": "string", "channel_id": "string", "recipient_user_ids": [ "string" ], "title": "string" } ] }'{ "count": 0, "results": [ { "message_ids": [ "string" ], "scheduled": true, "status": "string" } ]}POST/api/v1/inbox/messages/bulk
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages/bulk" \ -H "Content-Type: application/json" \ -d '{ "operation": "mark_read" }'{ "affected": 0, "unread_total": 0}GET/api/v1/inbox/messages/{message_id}
Authorization
bearer_token In: header
Path Parameters
Query Parameters
Mark the message read while fetching
Response Body
application/json
curl -X GET "https://example.com/api/v1/inbox/messages/string"{ "actions": [ { "id": "string", "kind": "link", "label": "string", "target": "string" } ], "body": "string", "channel_id": "string", "created_at": "2019-08-24T14:15:22Z", "delivery": { "deliver_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "self_destruct_after_read_seconds": 0 }, "message_id": "string", "priority": "low", "recipient_user_id": "string", "sender": { "id": "string", "kind": "string" }, "state": { "archived": true, "dismissed": true, "read": true, "read_at": "2019-08-24T14:15:22Z" }, "technical_notes": null, "thread_id": "string", "title": "string"}POST/api/v1/inbox/messages/{message_id}/actions/{action_id}
Authorization
bearer_token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages/string/actions/string" \ -H "Content-Type: application/json" \ -d '{}'{ "action_id": "string", "actor_user_id": "string", "created_at": "2019-08-24T14:15:22Z", "message_id": "string", "result": null, "result_id": "string", "status": "string"}POST/api/v1/inbox/messages/{message_id}/dismiss
Authorization
bearer_token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages/string/dismiss" \ -H "Content-Type: application/json" \ -d '{}'{ "archived": true, "dismissed": true, "message_id": "string"}POST/api/v1/inbox/messages/{message_id}/read
Authorization
bearer_token In: header
Path Parameters
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages/string/read"{ "message_id": "string", "read": true, "unread_total": 0}POST/api/v1/inbox/messages/{message_id}/receipts
Authorization
bearer_token In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages/string/receipts" \ -H "Content-Type: application/json" \ -d '{ "kind": "string" }'{ "kind": "string", "message_id": "string", "recorded_at": "2019-08-24T14:15:22Z"}POST/api/v1/inbox/messages/{message_id}/unread
Authorization
bearer_token In: header
Path Parameters
Response Body
application/json
curl -X POST "https://example.com/api/v1/inbox/messages/string/unread"{ "message_id": "string", "read": true, "unread_total": 0}GET/api/v1/inbox/threads
curl -X GET "https://example.com/api/v1/inbox/threads"{ "threads": [ { "channel_id": "string", "highest_priority": "low", "latest_at": "2019-08-24T14:15:22Z", "latest_message_id": "string", "latest_title": "string", "message_count": 0, "thread_id": "string", "unread_count": 0 } ]}