API Reference
Conversations
The Instagram, Messenger and WhatsApp inbox: list, read, reply, assign, snooze and resolve.
/api/v1/console/messaging/assignees JWT API KeyThe staff a thread can be handed to who can read the inbox
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Query parameters
| Search string | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/assignees" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/messaging/channels/{channelId}/templates JWT API KeyThe conversation channel's approved WhatsApp templates, read live from Meta
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| channelIdrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/channels/{channelId}/templates" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations JWT API KeyGet conversations
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Query parameters
| ChannelType string | `instagram` | `messenger` | `whatsapp`. |
| Status string | `open` | `resolved`. |
| UnreadOnly boolean | — |
| NeedsPerson boolean | Only threads the AI agent handed to a person who has not answered yet. |
| ChannelId string (uuid) | — |
| GuestId string (uuid) | — |
| AssignedToId string (uuid) | Threads on one staff member. Panoptes.Application.DTOs.Requests.Messaging.ListConversationsRequest.AssignedToMe is the same filter for the caller. |
| AssignedToMe boolean | — |
| Unassigned boolean | The shared queue: nobody has taken these. |
| Snoozed boolean | Snoozed threads only (true), or none of them (false). Unset leaves a snoozed thread out of an open list and in a resolved one, which is what a queue is for. |
| SearchMessages boolean | Also match the text of messages, not only the contact and guest name. Opt-in because it reads the thread table: a list that pages through every conversation stays cheap by default. |
| AwaitingReply boolean | Open threads whose last message is the guest's: nobody has answered yet (the «بانتظار الرد» queue). Snoozed threads stay out unless Panoptes.Application.DTOs.Requests.Messaging.ListConversationsRequest.Snoozed asks for them. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/messaging/conversations/{id} JWT API KeyGet id
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/ai/pause JWT API KeyStops the agent on this thread on purpose; resolving it later leaves this pause in place
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/ai/pause" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/ai/resume JWT API KeyCreate resume
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/ai/resume" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/assignee JWT API KeyHands the thread to a staff member of this branch, or back to the shared queue
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"userId": "00000000-0000-0000-0000-000000000000"
}| userId string (uuid) | — |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/assignee" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"userId": "00000000-0000-0000-0000-000000000000"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/guest JWT API KeyUpdate guest
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"guestId": "00000000-0000-0000-0000-000000000000"
}| guestId string (uuid) | — |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/guest" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"guestId": "00000000-0000-0000-0000-000000000000"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/guest JWT API KeyDelete guest
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/guest" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/media-messages JWT API KeyOne file with an optional caption
Multipart because the bytes never belong in JSON; the envelope limit is the file cap plus room for the form framing.
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"file": "string",
"caption": "string"
}| file string (binary) | — |
| caption string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/media-messages" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"file": "string",
"caption": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/messages JWT API KeyGet messages
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Query parameters
| Before string (date-time) | — |
| Limit integer (int32) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/messages" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/messaging/conversations/{id}/messages JWT API KeyCreate messages
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"text": "string",
"replyToExternalId": "string"
}| text string | — |
| replyToExternalId string | Meta's id of a message in THIS conversation that the reply quotes, or null for an ordinary reply (ADR-P009). The guest sees it as a quote on every channel: WhatsApp carries it as the message's `context`, Messenger and Instagram as `reply_to`. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/messages" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"text": "string",
"replyToExternalId": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/messages/{messageId}/ai-feedback JWT API KeyRates one of the agent's replies: 1 helpful, -1 wrong, 0 takes the rating back
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
| messageIdrequired string (uuid) | — |
Request body
{
"rating": 0
}| rating integer (int32) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/messages/{messageId}/ai-feedback" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"rating": 0
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/messages/{messageId}/attachments/{index} JWT API KeyThe media proxy: Meta's CDN URLs and WhatsApp media ids never reach the browser
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
| messageIdrequired string (uuid) | — |
| indexrequired integer (int32) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/messages/{messageId}/attachments/{index}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/messages/{messageId}/reaction JWT API KeyCreate reaction
A staff reaction on one of the guest's messages, or its removal when the emoji is left out. WhatsApp takes any emoji, Messenger the seven reactions Meta names, Instagram the heart alone.
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
| messageIdrequired string (uuid) | — |
Request body
{
"emoji": "string"
}| emoji string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/messages/{messageId}/reaction" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"emoji": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/notes JWT API KeyAn internal note: staff-only, in the thread's order, never sent to the guest
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"text": "string"
}| text string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/notes" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"text": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/order-cards JWT API KeyAn approved WhatsApp template, the only message Meta accepts after the 24-hour window
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"orderId": "00000000-0000-0000-0000-000000000000",
"language": "string"
}| orderId string (uuid) | — |
| language string | The language the GUEST reads, `ar` (the default) or `en`. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/order-cards" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"orderId": "00000000-0000-0000-0000-000000000000",
"language": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/read JWT API KeyCreate read
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/read" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/reopen JWT API KeyCreate reopen
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/reopen" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/resolve JWT API KeyCreate resolve
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/resolve" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/snooze JWT API KeyTakes the thread out of the queue until a future instant
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"until": "2026-11-27T14:05:13.212Z"
}| until string (date-time) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/snooze" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"until": "2026-11-27T14:05:13.204Z"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/snooze JWT API KeyDelete snooze
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/snooze" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/template-messages JWT API KeyCreate template-messages
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"language": "string",
"parameters": {}
}| name string | — |
| language string | The template's language code as Meta lists it, e.g. `ar` or `en_US`. |
| parameters object | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/template-messages" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"language": "string",
"parameters": {}
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/{id}/typing JWT API KeyThe typing bubble on the guest's side
A courtesy with no record: it answers whether Meta took it, and the console does not wait on the answer.
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Query parameters
| on boolean | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/typing" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/messaging/conversations/{id}/unread JWT API KeyBack among the unread for the team; the guest's read tick is left as it is
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/unread" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/messaging/conversations/{id}/voice-messages JWT API KeyOne voice recording
The browser's own container arrives here and is re-encoded for the channel before it is stored or sent, so there is nothing to caption and nothing to name.
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"file": "string"
}| file string (binary) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/{id}/voice-messages" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"file": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/messaging/conversations/bulk JWT API KeyCreate bulk
One action over up to 200 threads: resolve, reopen, assign, unassign, snooze, unsnooze or mark_read. Ids it could not act on come back as skipped rather than failing the call.
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Request body
{
"action": "string",
"ids": [
"00000000-0000-0000-0000-000000000000"
],
"assigneeUserId": "00000000-0000-0000-0000-000000000000",
"until": "2026-11-27T14:05:13.212Z"
}| action string | — |
| ids string (uuid)[] | — |
| assigneeUserId string (uuid) | — |
| until string (date-time) | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/bulk" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"action": "string",
"ids": [
"00000000-0000-0000-0000-000000000000"
],
"assigneeUserId": "00000000-0000-0000-0000-000000000000",
"until": "2026-11-27T14:05:13.205Z"
}'Request body (JSON)
Headers
/api/v1/console/messaging/conversations/bulk-resolve JWT API KeyResolves several threads at once — the end of a shift, not a loop of one call each
- Capability
reply_inbox- API key scope
cap:reply_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Request body
{
"conversationIds": [
"00000000-0000-0000-0000-000000000000"
]
}| conversationIds string (uuid)[] | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/bulk-resolve" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"conversationIds": [
"00000000-0000-0000-0000-000000000000"
]
}'Request body (JSON)
Headers
/api/v1/console/messaging/conversations/counts JWT API KeyThe queue counts for the inbox's pills: the list's filters, minus the queue flags
- Capability
view_inbox- API key scope
cap:view_inbox(the key's owner must also hold the capability)- Plan feature
messagingmust be on the branch's plan, or the call answers 403.
Query parameters
| ChannelType string | `instagram` | `messenger` | `whatsapp`. |
| ChannelId string (uuid) | — |
| GuestId string (uuid) | — |
| Search string | — |
| SearchMessages boolean | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/conversations/counts" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers