Reopen a conversation
Make a finished or archived conversation active again, supervised by your team. Reopening never writes to the contact. An archived conversation reopens only on channels that reuse the same thread.
Example
curl -X POST "https://api.platic.ai/v2/conversations/$CONVERSATION_ID/reopen?fields=id,status,operation" \
-H "Authorization: Bearer $PLATIC_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" const { data, meta } = await platic.conversations.reopen("8Yc2kQ1mZ0rTq4Lp7WvX");
console.log(data.status, data.operation); // "active", "supervised" The SDK sends an Idempotency-Key on every action and reuses it when it retries. A thread its channel does not reuse throws ConflictError with code THREAD_CLOSED.
Reopen the archived team chat about the Acme launch.
Your assistant uses reopen_conversation_v2.
What happens
The conversation becomes active and supervised: your team handles it and the agent does not reply until you resume it or hand it back. Nothing is sent to the contact.
| Current status | Result |
|---|---|
finished | active, supervised. The agent's memory of the conversation stays the same cycle |
archived, on a channel that reuses the thread | active, supervised, with a new memory cycle (meta.effects.newMemoryCycle: true). The history stays |
archived, on any other channel | 409 THREAD_CLOSED. The thread is closed for good on its channel; the contact's next message opens a new conversation |
active or initiated | Nothing changes: meta.changed: false, no write and no webhook |
spam | 409 CONVERSATION_SPAM. Unmark it first |
Channels that reuse the thread: team chats (platform: "platica"), chats created through the Chat API, and connected Gmail or Outlook mailboxes. On WhatsApp, Instagram, Messenger and other channels, an archived thread cannot be reopened.
Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
conversationId | string | The conversation's id. See How IDs work | ✓ |
Headers
| Header | Description | Required |
|---|---|---|
Idempotency-Key | Makes the call safe to retry. 1 to 255 visible ASCII characters; a UUID works. See Retries | — |
This action does not take If-Resource-Version: sending it returns 400 INVALID_REQUEST.
Query parameters
| Parameter | Type | Description |
|---|---|---|
fields | string | Fields of the conversation to return, comma-separated. Replaces the defaults; id is always returned. The fields are the same as in Get a conversation |
include | string | Relations to resolve in included: agents, channels, assignees |
workspace | string | The workspace, for an API key that covers several. Other credentials always act on their own workspace |
Request body
No body. Send nothing or {}; any field returns 400 INVALID_REQUEST.
Response
The answer is the conversation after the change, read with fields and include as in Get a conversation, and a meta that says what the action did. This example used ?fields=id,status,operation.
{
"status": "success",
"data": {
"id": "8Yc2kQ1mZ0rTq4Lp7WvX",
"status": "active",
"operation": "supervised"
},
"meta": {
"fields": ["id", "status", "operation"],
"include": [],
"requestId": "req_7f3c",
"resourceVersion": "MTc2NDYxMjAwMC4xMjM0NTY3ODk",
"action": "reopen",
"changed": true,
"effects": {
"newMemoryCycle": false
},
"replayed": false
}
} | Field | Description |
|---|---|
data | The conversation as it is now, with the selected fields |
included | Related records, only when you sent include |
meta.action | Always reopen |
meta.changed | false when the conversation was already active: nothing was written and no webhook was sent |
meta.effects.newMemoryCycle | true when an archived conversation was reopened with a new memory cycle; false for a finished one |
meta.resourceVersion | The conversation's version after the change |
meta.replayed | true when this is the stored outcome of an earlier call with the same Idempotency-Key. Nothing ran again; data and resourceVersion show the conversation as it is now |
meta.fields · meta.include | Fields and relations applied |
meta.requestId | ID of the request, for support |
meta.warnings | Only when there is something to report. CONVERSATION_NOT_READABLE: the action was applied, but your credential can no longer read the conversation, so data has only id |
Retries
Send an Idempotency-Key so a retry after a lost answer is safe. A key belongs to one credential, one action and one conversation.
- Same key, same body: you get the first outcome with
meta.replayed: true. Nothing runs again.fieldsandincludemay change: they only choose what the answer shows. - Same key, different body:
409 IDEMPOTENCY_KEY_REUSED. - First call still running:
409 IDEMPOTENCY_IN_PROGRESS. Retry in a few seconds with the same key. - Lifetime: keys are kept for one day. A call that fails does not keep its key, so retrying it runs the action again.
Your access is checked again on every retry. More in Idempotency.
Errors
| Status | details.code | When it happens |
|---|---|---|
400 | INVALID_REQUEST | The body, a query parameter or a header is not valid, including If-Resource-Version. details.issues says which |
400 | INVALID_REQUEST | The workspace in ?workspace= is not covered by the credential. details.available lists the ones it covers |
400 | INVALID_FIELD | A name in fields does not exist. details.allowed lists the accepted ones |
400 | INVALID_INCLUDE | A name in include does not exist. details.allowed lists the accepted ones |
401 | UNAUTHENTICATED | The credential is missing or invalid |
403 | FORBIDDEN | The credential cannot change conversations, or your role can read this conversation but not change it |
403 | INSUFFICIENT_SCOPE | An OAuth token without the platica:write scope. details.requiredScope says which one is missing |
404 | CONVERSATION_NOT_FOUND | No conversation has that id in the workspace, or it is out of your credential's reach |
409 | THREAD_CLOSED | The conversation is archived and its channel does not reuse the thread. The contact's next message opens a new conversation |
409 | CONVERSATION_SPAM | The conversation is marked as spam. Unmark it first |
409 | STATUS_TRANSITION_NOT_ALLOWED | The conversation could not be reopened in its current state |
409 | CONVERSATION_BUSY | The conversation is busy with another change. Try again in a few seconds |
409 | IDEMPOTENCY_KEY_REUSED | The Idempotency-Key was already used with a different body |
409 | IDEMPOTENCY_IN_PROGRESS | The first call with this Idempotency-Key is still running. Retry shortly with the same key |
503 | ACTION_FAILED | The outcome could not be confirmed (details.retryable: true). Repeat with the same Idempotency-Key: an action that already ran is not run again |
The general error format is in Errors.
Notes
A call that reopens the conversation sends conversation.status.updated and conversation.operation.updated, with source: "api.conversation.v2", or "mcp.conversation.v2" when your assistant did it.