Take a case
SDK platic.cases.accept()
Take a case to handle the conversation as a person. With an API key, send userId; with OAuth, the token’s user takes the case. That person is recorded in acceptedBy and added to the case’s assignees and conversation’s owners.
The case stays open and the conversation becomes supervised, even if keepReplying is true.
Example
curl -X POST https://api.platic.ai/v1/cases/$CASE_ID/accept \
-H "Authorization: Bearer $PLATIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "userId": "ana@example.com", "notifyCustomer": true }' await platic.cases.accept("case_123", { userId: "ana@example.com", notifyCustomer: true }); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
caseId | string | Case id | ✓ |
Request body
{
"userId": "support@acme.com",
"notifyCustomer": true
} | Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | - | Who takes it: user id or email of a member. Required with an API key. With an OAuth token the person of the token takes it; if you send another person it answers 403 |
notifyCustomer | boolean | - | Whether you want to tell the contact that a person is now handling it. The response returns it and it is saved in the log, but the API does not write to the contact: send them the notice yourself. Default, false |
Response
200 OK. result is accepted, or already_accepted if that person already had it; in that case nothing changes and notifyCustomer comes as false.
{
"status": "success",
"data": {
"result": "accepted",
"case": {
"id": "Es4kP9wLx2QmZ7bN1cVd",
"workspaceId": "Wk5rT8yUi2OpAs4d",
"number": 143,
"folio": "INV-0143",
"escalationId": "Et7hQ2mVx9LpRk3s",
"escalationSnapshot": {
"name": "Invoice error",
"prefix": "INV",
"color": "#2563EB",
"keepReplying": false,
"canClose": false,
"waitMessage": null,
"inactivityCloseHours": null,
"untakenDiscardHours": 72,
"allowManual": true
},
"status": "open",
"priority": "normal",
"summary": "Asks to fix the tax ID on the invoice for order 48213.",
"fields": {"order_number": "48213", "tax_id": "ACME010101AB1"},
"contactId": "Ct3fG5hJ7kL9mN1p",
"conversationId": "Cv8hN2lP4qR6sT0u",
"channelId": "Ch2wE4rT6yU8iO0p",
"platform": "whatsapp",
"relatedConversationIds": [],
"postId": null,
"threadId": null,
"agentId": "Ag6bV8nM1qW3eR5t",
"openedBy": {"kind": "agent", "id": "Ag6bV8nM1qW3eR5t"},
"assigneeIds": ["Us9fG3hJ6kL2mN8b", "Us2qW4eR6tY8uI0o"],
"acceptedBy": "Us2qW4eR6tY8uI0o",
"acceptedAt": "2026-11-12T15:12:00.000Z",
"lastActivityAt": "2026-11-12T15:12:00.000Z",
"maxOpenAt": "2026-11-26T15:04:00.000Z",
"autoCloseAt": null,
"discardAt": null,
"discardWarnAt": null,
"discardWarnedAt": null,
"closedAt": null,
"closedBy": null,
"closeReason": null,
"closeNote": null,
"createdAt": "2026-11-12T15:04:00.000Z",
"updatedAt": "2026-11-12T15:12:00.000Z",
"assigneeEmails": ["billing@acme.com", "support@acme.com"],
"acceptedByEmail": "support@acme.com"
},
"notifyCustomer": true,
"conversation": {
"conversationId": "Cv8hN2lP4qR6sT0u",
"threadId": null,
"openCount": 1,
"operationBefore": "assistance",
"operation": "supervised",
"operationChanged": true,
"ownersAdded": ["Us2qW4eR6tY8uI0o"],
"ownersAddedEmails": ["support@acme.com"],
"post": null
}
}
} | Field | Type | Description |
|---|---|---|
result | string | accepted or already_accepted |
case | object | The case as it ended up, with the fields in get a case |
notifyCustomer | boolean | What you asked for in notifyCustomer. If it is true, send the contact the notice yourself |
conversation | object | How the conversation ended up. See the conversation object |
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | With an API key, userId is missing (userId is required). Also if the person is not a member of the workspace |
403 | FORBIDDEN | With an OAuth token, userId is another person. A person only takes cases for themselves |
404 | CASE_NOT_FOUND | The case does not exist in this workspace |
409 | CASE_CLOSED | The case is already closed |
The errors that come up on any operation are in the introduction.
Tip
To tell the contact, send a message to the conversation after taking the case.
Notes
- If another person had already taken it, it moves to whoever takes it now. The log keeps whoever had it in
previousUserId. - Taking does not close the case. To finish it, close it.
- If the conversation changed, the
conversation.operation.updatedandconversation.owners.updatedwebhooks also arrive withsourceapi.case.accepted. - From an AI agent, the tool is
accept_case.