Pause the agent
Pause the agent to handle the conversation yourself. It stops even if it was preparing a reply. Resume when you want to return control to the agent.
Before you start: the conversation id, as returned by list and search conversations, in the CONVERSATION_ID variable.
Example
curl -X POST https://api.platic.ai/v1/conversations/$CONVERSATION_ID/pause \
-H "Authorization: Bearer $PLATIC_API_KEY" Pause the agent in the conversation with Ana, I'll take it from here.
Your assistant uses pause_conversation.
The SDK calls V2: see Pause the agent, Resume the agent and Hand back on the next message.
The conversation changes to operation: "supervised". The agent stops before its next step. Messages it already sent remain; an external tool call that already started finishes normally. interrupted indicates whether a reply was in progress.
While paused, the contact's messages are saved without automatic replies. You can reply manually. The pause affects only this thread: if it closes and the contact writes again, the new conversation starts with the agent. Owners and status stay the same.
If it was already paused, it returns changed: false. It also stops any reply in progress.
Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
conversationId | string | The unique id of the conversation. It is not looked up by phone number here | ✓ |
Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
workspace | string | The conversation's workspace, if the credential has several | — |
Response (pause)
No request body.
{
"status": "success",
"message": "Agent paused in this conversation",
"data": {
"id": "8fK2pQx7LmN3",
"operation": "supervised",
"changed": true,
"interrupted": true
}
} | Field | Type | Description |
|---|---|---|
id | string | The conversation id |
operation | string | Always supervised |
changed | boolean | true if this call paused the conversation; false if it was already paused |
interrupted | boolean | true if the agent was answering and was asked to stop |
Resume
After resuming, the agent waits for the next message to reply. Use reply: true to have it read what happened during the pause, including unanswered messages, and reply immediately. Use instruction to tell it what to do when resuming; this also triggers an immediate reply.
curl -X POST https://api.platic.ai/v1/conversations/$CONVERSATION_ID/resume \
-H "Authorization: Bearer $PLATIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "instruction": "The customer already paid; confirm the shipment." }' Give the conversation with Ana back to the agent. She already paid: have it confirm the shipment.
Your assistant uses resume_conversation.
If the conversation was already automatic, resuming returns changed: false and replying: false without sending another message. Only a change from paused to automatic can trigger a reply.
A conversation with open cases cannot be resumed: close them first. If you resume right after pausing, the API waits up to 5 seconds for the agent to finish stopping; if it does not, it answers 409 AGENT_STOPPING: try again in a few seconds.
Request body (resume)
The body is optional. Without it, the agent answers from the next message on.
{
"reply": true,
"instruction": "The customer already paid; confirm the shipment."
} | Field | Type | Required | Description |
|---|---|---|---|
reply | boolean | — | true so the agent reads what happened during the pause and answers now. Default: false |
instruction | string | — | What to do when picking the conversation up, up to 4,000 characters. Makes the agent answer even if reply is missing |
It takes the same path and query parameters as pause.
Response (resume)
{
"status": "success",
"message": "Agent resumed in this conversation",
"data": {
"id": "8fK2pQx7LmN3",
"operation": "automatic",
"changed": true,
"replying": true
}
} | Field | Type | Description |
|---|---|---|
id | string | The conversation id |
operation | string | Always automatic |
changed | boolean | true if this call resumed the conversation; false if it was already with the agent |
replying | boolean | true if the agent was asked to answer right now |
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | Your credential covers several workspaces and you did not send ?workspace=. details.available lists the ones you can use and details.requested repeats the one you sent |
401 | UNAUTHENTICATED | The credential is missing or invalid |
403 | FORBIDDEN | The credential cannot write conversations or has no access to this one, or it is a kind of credential that does not cover that workspace |
404 | CONVERSATION_NOT_FOUND | No conversation has that id |
409 | NOT_A_CONVERSATION | It is a comment thread: control it with threads |
409 | CONVERSATION_CLOSED | On resume: the conversation ended, expired or is spam |
409 | CASE_OPEN | On resume: it has open cases. Close them first |
409 | NO_ACTIVE_AGENT | On resume: neither the conversation nor its channel has an active agent |
409 | AGENT_STOPPING | On resume: the paused agent has not finished stopping. Try again in a few seconds |
502, 503 | SERVICE_MISCONFIGURED | Platica rejected the service credentials, or its connection is not configured |
502 | UPSTREAM_ERROR | Platica answered something unexpected |
503 | PAUSE_FAILED | On pause: the agent could not be paused. Try again |
503 | RESUME_FAILED | On resume: the agent could not be resumed. Try again |
503 | CONTINUE_FAILED | On resume with reply or instruction: the conversation is already with the agent, but it could not be asked to answer. It will answer with the next message |
If reply or instruction are not valid, the response is 400 INVALID_REQUEST and details.issues says which.
Notes
Every pause or resume that changes the conversation sends conversation.operation.updated. The source is api.conversation.paused or api.conversation.resumed, and mcp.conversation.paused or mcp.conversation.resumed when your assistant did it. Inbox actions arrive with the same event and their own source.