Update conversation status

PATCH/v2/agents/{agentId}/conversations/{conversationId}/status

Mark a conversation as open, resolved or handoff, for example when your own system closes a case that the agent started.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Changes the status of one conversation. Call it when something outside Askocto decides the outcome, for example when your order system closes a case that the agent started, or when you want a person to take over.

Request

PATCH /v2/agents/{agentId}/conversations/{conversationId}/status

Path parameters:

Name Type Required Description
agentId string Yes The ID of the agent, starting with agt_.
conversationId string Yes The ID of the conversation, starting with conv_.

Body fields:

Name Type Required Description
status string Yes The new status: open, resolved or handoff.

A handoff conversation is passed to your team and can be followed up in the Helpdesk. Moving a conversation to resolved or handoff also sends the matching conversation.resolved or conversation.handoff webhook, see the Webhooks guide. Setting the status a conversation already has changes nothing and still succeeds.

Example request

curl -X PATCH https://api.askocto.co/v2/agents/agt_8f3k2m/conversations/conv_8h4v1y/status \
  -H "Authorization: Bearer $OCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "status": "resolved" }'
const response = await fetch(
  "https://api.askocto.co/v2/agents/agt_8f3k2m/conversations/conv_8h4v1y/status",
  {
    method: "PATCH",
    headers: {
      Authorization: `Bearer ${process.env.OCTO_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ status: "resolved" }),
  },
)

const conversation = await response.json()
console.log(conversation.id, conversation.status)

Example response

A successful call returns 200 OK with the updated conversation.

{
  "id": "conv_8h4v1y",
  "agentId": "agt_8f3k2m",
  "userId": "usr_6k9d2r",
  "channel": "whatsapp",
  "status": "resolved",
  "messageCount": 9,
  "createdAt": "2026-03-19T09:12:00Z",
  "updatedAt": "2026-03-20T15:42:00Z"
}

Response fields

The response is the full conversation object, with the fields described in Get a conversation. The status field shows the new value and updatedAt is the time of the change.

To find the conversations that need attention, filter with status=handoff in List conversations.

Errors

Status Code When
400 invalid_request status is missing or is not open, resolved or handoff.
401 unauthorized The API key is missing, malformed or deleted.
404 not_found The agent or the conversation does not exist in your workspace.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

Something unclear or missing? Tell us and we will fix the page.