API reference
Inbox
Conversations, messages, and approving AI drafts
For concepts and a walkthrough, read Inbox and approvals.
- GET
/conversationsList conversations - GET
/conversations/{id}Get a conversation - GET
/conversations/{id}/messagesList messages in a conversation - POST
/conversations/{id}/messagesSend a reply written by a person - POST
/conversations/messages/{messageId}/approveApprove an AI draft and release it for delivery - POST
/conversations/{id}/hand-backHand a conversation back to the AI
List conversations
/conversationsFilter on status=AWAITING_HUMAN for the agent worklist: threads the AI escalated or where a draft is waiting for approval.
Query parameters
statusenumAWAITING_HUMAN is the agent worklist: the AI escalated or held a draft.
One of
OPEN,PENDING,AWAITING_HUMAN,SNOOZED,RESOLVED,CLOSED,SPAMassigneeIdstring (uuid)cursorstringlimitintegerMax 100
Response fields 200
itemsConversationSummary[]requirednextCursorstring | nullrequiredOpaque. Pass back verbatim as
cursor. Null means the end.hasMorebooleanrequired
ConversationSummary
idstring (uuid)requiredcontactNamestring | nullrequiredstatusstringrequiredlastMessageAtstring (date-time) | nullrequiredlastMessagePreviewstring | nullrequiredunreadCountintegerrequiredMin -9007199254740991
providerKeystringrequiredWhich platform this thread is on.
Responses
- 200A page of conversations, most recent first.
- 401Missing, malformed, revoked or expired API key.
- 404Not found, or not visible to this organization.
- 422Request failed validation.
- 429Rate limited.
- 500Unexpected error. The correlationId ties it to our logs.
curl "https://api.getengageai.app/conversations" \
-H "Authorization: Bearer $ENGAGE_API_KEY"{
"items": [
{
"id": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
"contactName": "Jamie Chen",
"status": "string",
"lastMessageAt": "2026-10-16T09:30:00.000Z",
"lastMessagePreview": "do the trailhead boots come in a UK 11?",
"unreadCount": 0,
"providerKey": "telegram_bot"
}
],
"nextCursor": null,
"hasMore": false
}Get a conversation
/conversations/{id}The thread header plus its handoff state: the open escalation, with the reason the AI asked for a human, and whether an agent currently holds the thread.
Path parameters
idstring (uuid)required
Response fields 200
idstring (uuid)requiredcontactNamestring | nullrequiredstatusstringrequiredlastMessageAtstring (date-time) | nullrequiredlastMessagePreviewstring | nullrequiredunreadCountintegerrequiredMin -9007199254740991
providerKeystringrequiredWhich platform this thread is on.
humanTakeoverUntilstring (date-time) | nullrequiredWhile in the future, automation stands down: an agent is handling this thread.
escalationobject | nullrequiredThe unresolved escalation, if any. Resolved by handing the thread back.
ConversationDetail
idstring (uuid)requiredcontactNamestring | nullrequiredstatusstringrequiredlastMessageAtstring (date-time) | nullrequiredlastMessagePreviewstring | nullrequiredunreadCountintegerrequiredMin -9007199254740991
providerKeystringrequiredWhich platform this thread is on.
humanTakeoverUntilstring (date-time) | nullrequiredWhile in the future, automation stands down: an agent is handling this thread.
escalationobject | nullrequiredThe unresolved escalation, if any. Resolved by handing the thread back.
Responses
- 200The conversation.
- 401Missing, malformed, revoked or expired API key.
- 404Not found, or not visible to this organization.
- 422Request failed validation.
- 429Rate limited.
- 500Unexpected error. The correlationId ties it to our logs.
curl "https://api.getengageai.app/conversations/$ID" \
-H "Authorization: Bearer $ENGAGE_API_KEY"{
"id": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
"contactName": "Jamie Chen",
"status": "string",
"lastMessageAt": "2026-10-16T09:30:00.000Z",
"lastMessagePreview": "string",
"unreadCount": 0,
"providerKey": "telegram_bot",
"humanTakeoverUntil": "2026-10-16T09:30:00.000Z",
"escalation": {
"id": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
"reason": "string",
"detail": "string",
"createdAt": "2026-10-16T09:30:00.000Z"
}
}List messages in a conversation
/conversations/{id}/messagesIncludes AI drafts awaiting approval, which carry status DRAFT.
Path parameters
idstring (uuid)required
Query parameters
cursorstringlimitintegerMax 100
Response fields 200
itemsMessage[]requirednextCursorstring | nullrequiredOpaque. Pass back verbatim as
cursor. Null means the end.hasMorebooleanrequired
Message
idstring (uuid)requiredconversationIdstring (uuid)requireddirectionenumrequiredOne of
INBOUND,OUTBOUNDsenderTypeenumrequiredAI plus status DRAFT is a reply waiting for approval.
One of
CONTACT,AI,HUMAN_AGENT,SYSTEMtextstring | nullrequiredcontentTypestringrequiredcontentobjectrequiredNormalised, platform-neutral content.
statusenumrequiredOne of
PENDING,DRAFT,QUEUED,SENDING,SENT,DELIVERED,READ,FAILED,DEAD_LETTERED,RECEIVEDexternalMessageIdstring | nullrequiredcreatedAtstring (date-time)required
Responses
- 200A page of messages, most recent first.
- 401Missing, malformed, revoked or expired API key.
- 404Not found, or not visible to this organization.
- 422Request failed validation.
- 429Rate limited.
- 500Unexpected error. The correlationId ties it to our logs.
curl "https://api.getengageai.app/conversations/$ID/messages" \
-H "Authorization: Bearer $ENGAGE_API_KEY"{
"items": [
{
"id": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
"conversationId": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
"direction": "INBOUND",
"senderType": "CONTACT",
"text": "Yes — the Trailhead Mid GTX goes up to a UK 13, so an 11 is in the range.",
"contentType": "string",
"content": {},
"status": "PENDING",
"externalMessageId": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
"createdAt": "2026-10-16T09:30:00.000Z"
}
],
"nextCursor": null,
"hasMore": false
}Send a reply written by a person
/conversations/{id}/messagesQueues the text for delivery through the same pipeline as every other reply, and takes the thread over: automation stands down for an hour, refreshed on each reply, so the AI never talks over an agent. Hand the thread back when you are done. Refused with 409 REPLY_WINDOW_CLOSED once the platform's reply window has passed.
- Body
- application/json
Path parameters
idstring (uuid)required
Request body
textstringrequiredMax 8000 characters
idempotencyKeystringSend the same key on a retry and the reply is sent once.
Min 8 characters · Max 64 characters
Response fields 201
status"queued"requiredmessageIdstring (uuid)required
Responses
- 201Queued for delivery.
- 401Missing, malformed, revoked or expired API key.
- 404Not found, or not visible to this organization.
- 422Request failed validation.
- 429Rate limited.
- 500Unexpected error. The correlationId ties it to our logs.
curl -X POST "https://api.getengageai.app/conversations/$ID/messages" \
-H "Authorization: Bearer $ENGAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Yes — the Trailhead Mid GTX goes up to a UK 13, so an 11 is in the range.",
"idempotencyKey": "string"
}'{
"status": "queued",
"messageId": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91"
}Approve an AI draft and release it for delivery
/conversations/messages/{messageId}/approveReleases a held draft into the same delivery pipeline an auto-sent reply uses, so there is exactly one send path regardless of who authorised it. An edit is recorded against the generation that produced the draft.
- Body
- application/json
Path parameters
messageIdstring (uuid)required
Request body
editedTextstringSupply when the agent changed the draft before approving. The edit is recorded against the generation that produced it — the delta between what the model wrote and what a human was willing to send is the best evaluation signal the product has.
Max 8000 characters
Response fields 201
status"queued"required
Responses
- 201Queued for delivery.
- 401Missing, malformed, revoked or expired API key.
- 404Not found, or not visible to this organization.
- 422Request failed validation.
- 429Rate limited.
- 500Unexpected error. The correlationId ties it to our logs.
curl -X POST "https://api.getengageai.app/conversations/messages/$MESSAGE_ID/approve" \
-H "Authorization: Bearer $ENGAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"editedText": "Yes, the Trailhead Mid GTX comes in UK 4 to 13, so an 11 is available."
}'{
"status": "queued"
}Hand a conversation back to the AI
/conversations/{id}/hand-backResolves the open escalation and ends any takeover, so the AI answers the next customer message as the channel is configured to.
Path parameters
idstring (uuid)required
Response fields 201
status"handed_back"required
Responses
- 201Handed back.
- 401Missing, malformed, revoked or expired API key.
- 404Not found, or not visible to this organization.
- 422Request failed validation.
- 429Rate limited.
- 500Unexpected error. The correlationId ties it to our logs.
curl -X POST "https://api.getengageai.app/conversations/$ID/hand-back" \
-H "Authorization: Bearer $ENGAGE_API_KEY"{
"status": "handed_back"
}