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

await platic.cases.accept("case_123", { userId: "ana@example.com", notifyCustomer: true });

Path parameters

ParameterTypeDescriptionRequired
caseIdstringCase id✓

Request body

{
  "userId": "support@acme.com",
  "notifyCustomer": true
}
ParameterTypeRequiredDescription
userIdstring-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
notifyCustomerboolean-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
    }
  }
}
FieldTypeDescription
resultstringaccepted or already_accepted
caseobjectThe case as it ended up, with the fields in get a case
notifyCustomerbooleanWhat you asked for in notifyCustomer. If it is true, send the contact the notice yourself
conversationobjectHow the conversation ended up. See the conversation object

Errors

Statusdetails.codeWhen
400INVALID_REQUESTWith an API key, userId is missing (userId is required). Also if the person is not a member of the workspace
403FORBIDDENWith an OAuth token, userId is another person. A person only takes cases for themselves
404CASE_NOT_FOUNDThe case does not exist in this workspace
409CASE_CLOSEDThe case is already closed

The errors that come up on any operation are in the introduction.

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.updated and conversation.owners.updated webhooks also arrive with source api.case.accepted.
  • From an AI agent, the tool is accept_case.