Errors
Read details.code to identify the error. Find that code in the tables below and follow the suggested action. details.message helps explain the case, but your application should decide from the stable code.
Format
Every error has the same shape:
{
"code": 404,
"error": "Not Found - The resource doesn't exist",
"details": {
"code": "VERSION_NOT_FOUND",
"message": "Version v9 of agent Xq8mTe2LwP4kZ1aB9cDf not found"
}
} | Field | Type | Description |
|---|---|---|
code | number | The HTTP status |
error | string | Fixed text for the status |
details.code | string | Stable error code. Decide based on this field |
details.message | string | Explanation for people. It can change; don't compare against it |
details.issues | array | On validation errors: one item per problem, with path (an array, for example ["schedule", "activateAt"]), message and, sometimes, code |
details.* | — | Other fields that depend on the error, such as available, requested, fields, nextStep or channelsUrl. Each endpoint says which ones it sends in its Errors section |
details is always an object with code and message, even when the error has no code of its own: in that case details.code is the one for the status (see By status).
By status
| Status | What it means | Default details.code | What to do |
|---|---|---|---|
400 | The request is malformed: a field is missing, there is an extra one, or a value doesn't have the expected format | INVALID_REQUEST | Fix what details.issues points out and send it again |
401 | Credential missing, invalid, expired or revoked | UNAUTHENTICATED | Check the Authorization header or generate another credential. See Authentication |
402 | The workspace reached its credit limit | PAYMENT_REQUIRED | Check your plan |
403 | The credential or the person doesn't have permission | FORBIDDEN | Ask for the missing permission. See Authentication and workspace |
404 | The resource doesn't exist or belongs to another workspace | NOT_FOUND | Check the id and, if your credential covers several workspaces, the ?workspace= |
409 | The change clashes with the current state of the resource | CONFLICT | Read details.code: each conflict says how to resolve it |
410 | The resource is no longer available | GONE | Stop using it. An expired conversation search (SEARCH_SESSION_EXPIRED) is repeated without pageToken |
412 | The conversation changed since the version you sent in If-Resource-Version | VERSION_MISMATCH | Read it again and repeat. See Idempotency |
413 | The body or the file is too large | PAYLOAD_TOO_LARGE | Split the content |
422 | The request is well formed, but its content is not valid | UNPROCESSABLE_ENTITY | Fix what details.issues or details.fields points out |
429 | Too many requests or too much work in progress | RATE_LIMITED | Wait and retry. See rate limits |
500 | Unexpected failure | INTERNAL_ERROR | Retry later. If you were creating something, first check whether it already exists |
502 | A service the operation depends on failed | UPSTREAM_ERROR | Before retrying, check the resource: the operation may have finished |
503 | Service temporarily unavailable | TEMPORARILY_UNAVAILABLE | Retry, respecting Retry-After if present |
504 | A service didn't respond in time | UPSTREAM_TIMEOUT | Before retrying, check the resource: the operation may have finished |
On /mcp and on calls with an expired OAuth token, the 401 also carries the WWW-Authenticate header so the MCP client authorizes again. See MCP Authentication.
Authentication and workspace
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 401 | UNAUTHENTICATED | The Authorization header is missing, or the credential is invalid, expired or revoked | Check the header or generate another credential |
| 400 | INVALID_REQUEST | A route requires one workspace and you omitted ?workspace=, or selected an unauthorized one. details.available lists the allowed ones and details.requested shows the requested one | Send ?workspace= with one of details.available |
| 403 | INSUFFICIENT_SCOPE | A read-only OAuth token tried to write. details.requiredScope says which permission is missing, and so does the WWW-Authenticate header | Authorize again, asking for that permission |
| 403 | FORBIDDEN | The credential or the person doesn't have permission for that operation or that resource | Ask for the missing permission |
{
"code": 401,
"error": "Unauthorized - Invalid or expired API key",
"details": {
"code": "UNAUTHENTICATED",
"message": "Invalid or expired API key"
}
} {
"code": 400,
"error": "Bad Request - The request has validation errors",
"details": {
"code": "INVALID_REQUEST",
"message": "Must specify a valid workspace",
"available": ["Wk3nL0pQ2rS4tU6v", "Ab1cD2eF3gH4iJ5k"]
}
} Common codes
They show up in agents, files, evals and tools.
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_REQUEST, INVALID_INPUT | Body, id or parameter with an invalid format. details.issues or details.fields say which | Fix those fields |
| 404 | AGENT_NOT_FOUND | The agent doesn't exist, was deleted or belongs to another workspace | Check the agentId and the workspace |
| 409 | CONFLICT | Someone else changed this at the same time | Try again |
| 500 | INTERNAL_ERROR | Unexpected failure | Retry later. If you were creating something, first check whether it already exists |
| 503 | TEMPORARILY_UNAVAILABLE | A service didn't respond | Retry, respecting Retry-After if present |
CONFLICT can come up in the operations that save the draft, the publication, a suite, the suites that run on publish, a file or its connection to an agent. If two people change the same thing at once, the last change wins; for agents, the previous one stays in the version history.
Agents
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 404 | VERSION_NOT_FOUND | The version doesn't exist on that agent | Check the versionId with list versions |
| 409 | NOT_PREVIOUSLY_PUBLISHED | Rollback to a version that was never published | Use publish version |
| 409 | COPY_INCOMPLETE | Activating or publishing a copy with files that didn't finish connecting them | Delete the copy and copy again |
| 422 | INVALID_CONFIG | The configuration is not valid. details.issues lists the field path for each problem. Nothing is saved. If it has a name from the earlier shape, such as runtime, the message says where it is now | Fix those fields. To check without saving, use validate changes |
| 422 | INVALID_SUBAGENT_LINK | Link to an agent that doesn't exist, belongs to another workspace, is itself or forms a cycle | Fix the link |
| 422 | INVALID_ESCALATION | Creating an agent, publishing a version or connecting an escalation that doesn't exist or is archived. details.escalations lists each one with escalationId and reason (not_found or archived). Nothing is created or published | Use an active escalation from the library or remove it from assistance.escalations |
| 422 | UNSUPPORTED_REASONING_EFFORT | The suffix of model or of a model in fallbackModels asks for a reasoning level that model doesn't accept. details.model says which model, details.effort the requested level and details.supportedEfforts the ones it accepts. Nothing is saved | Use one of details.supportedEfforts, or remove the suffix to use the recommended one. See reasoning level |
| 422 | MODEL_FALLBACKS_REQUIRE_OWN_KEY | Adding to fallbackModels a fallback the agent didn't have, without your own key connected in the workspace. Also when restoring a version that includes a fallback the draft no longer has. Nothing is saved | Connect a key, or send only the fallbacks the agent already has. Keeping, removing or reordering them, or emptying the list, doesn't require a key. See fallback models |
| 429 | RATE_LIMITED | Too many requests | Wait at least as long as Retry-After says |
| 503 | SUPPORT_SERVICE_UNAVAILABLE | The escalations couldn't be checked when creating, publishing or connecting. Nothing is created or published | Retry later |
{
"code": 422,
"error": "Unprocessable Entity - Unable to process the request",
"details": {
"code": "INVALID_CONFIG",
"message": "The configuration is not valid",
"issues": [
{
"path": ["guardrails", "conversationStrikeThreshold"],
"message": "Number must be less than or equal to 10"
}
]
}
} Agent tools
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 404 | TOOL_NOT_FOUND | The tool doesn't exist in the workspace catalog | Check the toolId with list tools |
| 404 | TOOL_NOT_CONNECTED | Pausing or disconnecting a tool the agent doesn't have connected | Connect it first |
The errors for custom APIs, MCP servers and secrets are in each one's introduction: Custom APIs, MCP servers and Secrets.
Files
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_INPUT | Invalid body, id or parameter. details.fields names each field. | Fix those fields and send it again. |
| 403 | RESOURCE_NOT_ACCESSIBLE | The credential or the person doesn't have the permission the operation requires (see permissions). | Ask for Integrations or permission to edit the agents. |
| 404 | RESOURCE_NOT_ACCESSIBLE | The file or the processing job doesn't exist in this workspace, or the agent doesn't use that file. | Check the ids and the workspace (?workspace=). |
| 409 | KNOWLEDGE_NOT_ENABLED | Files are not enabled in this workspace. | Contact support. |
| 409 | FILE_NOT_READY | The file has no content ready: activating it, connecting it or asking for a suggestion. | Wait for its processing job to finish in ready. |
| 409 | FILE_JOB_IN_PROGRESS | There is already an open processing job on that file (one per file). | Wait for it to finish and try again. |
| 409 | SOURCE_UNAVAILABLE | Reprocessing a file with no stored original and no page to read. | Replace it with a new file. |
| 409 | COPY_INCOMPLETE | An agent copy didn't finish connecting its files. | Delete the copy and copy again. |
| 409 | DOWNLOAD_NOT_READY, DOWNLOAD_BLOCKED, FILE_UNAVAILABLE | The requested download is still processing, didn't pass review, or the file is being deleted. | Wait, or request another download. |
| 409 | CONFLICT | When deleting a file: who uses it changed or the confirmationToken expired. | Request the list of agents again and confirm again. |
| 409 | IDEMPOTENCY_KEY_REUSED | The same Idempotency-Key was reused with different content. | Use a new key for a different request. |
| 410 | FILE_DELETED | The file was already deleted. details.operationId says which deletion. | Stop using it. |
| 410 | JOB_GONE, DOWNLOAD_GONE | The processing job or the download is no longer kept. | Read the file again. |
| 413 | SIZE_LIMIT_EXCEEDED | The file is over 50 MiB, or the request is too large. | Split the file. |
| 422 | INVALID_INPUT | A value that is valid in form but not in context: refresh on a file that isn't url, or a scheduled date in the past or more than 366 days out. | Fix the field in details.fields. |
| 422 | ACTIVATION_POLICY_MISMATCH | attachment.activateOnReady: false. | Don't send it: the connection activates when processing finishes. |
| 422 | CONTENT_REQUIRES_DOWNLOAD | The text is over 1 MiB for include=content. | Ask for include=download. |
| 422 | INVALID_CONTENT_TYPE, SOURCE_LIMIT_EXCEEDED | The type isn't supported, or the source exceeds the limits. | Use a format from the list or split the source. |
| 429 | QUOTA_EXCEEDED | There are 30 open processing jobs in the workspace, counting automatic refreshes, or too many requests. | Wait a few minutes and try again. |
| 429 | STORAGE_LIMIT_EXCEEDED | The workspace reached its file limit (1,000) or storage limit (3 GiB). | Delete files you no longer use. |
| 503 | KNOWLEDGE_ENGINE_UNAVAILABLE, TEMPORARILY_UNAVAILABLE, ACCEPTANCE_INCOMPLETE, DOWNLOAD_UNAVAILABLE | A service didn't respond, or accepting the request couldn't be completed. An AI suggestion responds 503 INTERNAL_ERROR if the model doesn't answer. | Retry later. |
A processing job that fails is not an HTTP error: get processing job responds 200 with status: "failed" and the reason in error.code.
Evals
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 404 | EVAL_VERSION_NOT_FOUND | The requested version doesn't exist (for example v9 on an agent with five versions). | Use draft, published or a version that exists. |
| 404 | EVAL_NOT_FOUND | The scenario, suite, launch or trial doesn't exist in this workspace, or the launch belongs to another agent. | Check the ids and that the launch, the run and the trial belong to that agent. |
| 409 | EVAL_CONFLICT | The change clashes with what already exists; for example, there is already a scenario with that scenarioId. | Pick another scenarioId, or save a new version of the existing one. |
| 409 | EVAL_SUITE_STALE | The suite is archived or one of its scenarios no longer exists. It happens when estimating, when starting a run and when choosing what runs on publish. | Pick another suite or replace it with scenarios that exist. |
| 409 | EVAL_SCENARIO_IN_USE | Archiving a scenario that an unarchived suite still uses. details.suiteIds names them. | Remove it from those suites with replace suite and archive it again. |
| 409 | EVAL_SCENARIO_READONLY | Archiving a platform scenario. | It can't be done. Remove it from your suites if you don't want to run it. |
| 429 | EVAL_CAPACITY | Too many trials in one launch (more than 64 by default; the estimate warns with too_many_trials), or too many evals running. | Pick fewer versions, scenarios or trials, or retry later. Suites that run on publish retry on their own. |
| 503 | EVAL_ENGINE_UNAVAILABLE, TEMPORARILY_UNAVAILABLE | The evals service didn't respond. | Retry later. If you were starting a run, check list runs first. |
These are errors of the HTTP call. What happens inside a run is not an HTTP error: a trial that fails is a result of the run, and you read it in results.
Conversations
Conversations (/v2/conversations): reads, search, counts and actions such as pause, resume, wait, tags and assignees. Each endpoint lists its own codes in its Errors section. V2 errors carry extra fields in details: retryable, currentVersion, caseIds, unknownTags, availableTags, invalidAssigneeIds or engine, depending on the code.
Reads and search
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_REQUEST | A parameter, body field or header is not valid. details.issues says which. | Fix those fields. |
| 400 | INVALID_FIELD, INVALID_INCLUDE | fields or include names something that doesn't exist. details.allowed lists what you can ask for. | Use a value from details.allowed. |
| 400 | INVALID_FILTER | A search or count filter can't be applied. | Change or remove that filter. |
| 400 | INVALID_CURSOR | The pageToken belongs to another query, filter set, order, workspace or credential. | Repeat the first request without pageToken. |
| 403 | FORBIDDEN | The credential has no access to conversations in this workspace. | Use a credential with the Conversations permission. |
| 404 | CONVERSATION_NOT_FOUND | No conversation has that id, or it is outside the credential's reach. V2 never looks up by phone number or by the old conversationId key. | Use the id from list conversations. |
| 404 | MESSAGE_NOT_FOUND | No visible message has that id in the conversation. System events answer the same way. | Use the id from the conversation's messages. |
| 404 | NOT_A_CONVERSATION | The id is a comment post. details.postId and details.href say where to read it. | Use Posts. |
| 410 | SEARCH_SESSION_EXPIRED | The search's pageToken is older than 15 minutes. | Repeat the search without pageToken. |
| 503 | SEARCH_UNAVAILABLE | Search or counting is temporarily unavailable. details.retryable is true; details.engine says which search failed when only one was needed. | Retry with backoff. |
Actions
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_REQUEST | Invalid body, query or header; for example, title on a conversation that isn't a team chat, or a bulk call with repeated IDs or more than 100. details.issues says what. | Fix the request. |
| 403 | INSUFFICIENT_SCOPE, FORBIDDEN | The credential can only read conversations (a read-only token or a role without write access), or it may only read this conversation. | Use a credential that can change conversations. |
| 404 | CONVERSATION_NOT_FOUND | The conversation doesn't exist or is outside the credential's reach. | Check the id and the ?workspace=. |
| 409 | IDEMPOTENCY_KEY_REUSED | The Idempotency-Key was already used with a different body. | Use a new key for a new action. See Idempotency. |
| 409 | IDEMPOTENCY_IN_PROGRESS | The first request with this key is still running. | Retry shortly with the same key. |
| 409 | CASE_OPEN | Archiving a conversation with an open case. details.caseIds lists them. | Close or decline the cases first. |
| 409 | CONVERSATION_ARCHIVED | The action doesn't apply to an archived conversation: pause, resume, wait, finish, change the agent or the assignees. | Reopen it first. |
| 409 | CONVERSATION_SPAM | The action doesn't apply to a conversation marked as spam: finish, reopen or change the assignees. | Unmark spam first. |
| 409 | CONVERSATION_BUSY | The agent is answering right now (changing the agent, resuming). | Retry in a few seconds, or pause first. |
| 409 | CONVERSATION_CHANGED | The conversation changed while it was being archived. | Try again. |
| 409 | STATUS_TRANSITION_NOT_ALLOWED | The current status doesn't allow the action; for example, finishing a conversation that is still initiated. | Read the conversation and pick an action that fits its status. |
| 409 | THREAD_CLOSED | Reopening an archived conversation on a channel that doesn't reuse the thread. | Nothing to do: the contact's next message opens a new conversation. |
| 409 | AGENT_NOT_ACTIVE | Changing the agent to one that isn't active. | Activate the agent or pick another one. |
| 409 | NO_ACTIVE_AGENT | Resuming or waiting on a conversation without an active agent, neither on it nor on its channel. | Assign or activate an agent. |
| 409 | AGENT_STOPPING | Resuming or waiting right after a pause, while the previous reply is still stopping. | Retry in a few seconds. The SDK retries it on its own. |
| 409 | ASSISTANT_CONTINUATION_INVALID | Resuming a chat with Platica's assistant that can no longer continue; for example, the person it served left the workspace. Nothing changed. | Leave it with the team. |
| 412 | VERSION_MISMATCH | If-Resource-Version is not the conversation's current version. details.currentVersion has it. Nothing changed. | Read the conversation again, decide again and repeat. |
| 422 | UNKNOWN_TAG | A tag doesn't exist in the workspace. details.unknownTags and details.availableTags say which do and don't. | Create the tag or use an existing one. |
| 422 | TOO_MANY_TAGS | The conversation would end with more than 20 tags. | Remove some first. |
| 422 | INVALID_ASSIGNEE | A member is not active in the workspace. details.invalidAssigneeIds lists them. | Use active members' IDs or emails. |
| 422 | TOO_MANY_ASSIGNEES | The conversation would end with more than 50 assignees. | Assign fewer people, or use assignedToTeam. |
| 503 | CONTINUE_FAILED | Resuming: the conversation went back to the agent, but its reply could not be started. details.retryable is true. | Repeat with the same Idempotency-Key. |
| 503 | ACTION_FAILED | The outcome could not be confirmed. details.retryable is true. | Repeat with the same Idempotency-Key: an action that already ran is not run again. |
A bulk action answers 200 with one result per conversation: the codes above appear in each failed item's error.code, not as the HTTP status.
Conversations V1
The V1 routes (/v1/conversations, including /v1/conversations/{conversationId}/pause and /resume) keep their own codes. See Update a conversation (V1) and Pause the agent (V1).
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 403 | FORBIDDEN | The credential can't write conversations or has no access to that one. | Use a credential with that permission. |
| 404 | CONVERSATION_NOT_FOUND | There is no conversation with that id in this workspace. Here it doesn't look up by phone number. | Use the id from list conversations. |
| 409 | NOT_A_CONVERSATION | The id belongs to a comment thread. | Use threads. |
| 409 | CONVERSATION_CLOSED | Resuming a conversation that is finished, expired or in spam. | It cannot be resumed in that state. |
| 409 | CASE_OPEN | Resuming a conversation with open cases. | Close them first. |
| 409 | NO_ACTIVE_AGENT | Resuming a conversation with no active agent, neither on it nor on its channel. | Assign or activate an agent. |
| 409 | AGENT_STOPPING | Resuming right after pausing, while the agent is still stopping. | Try again in a few seconds. |
| 409 | CONVERSATION_BUSY | Updating a conversation: an internal chat is being expired while the agent answers. | Try again in a moment. |
| 409 | INVALID_STATUS_TRANSITION | Updating a conversation: the status change is not allowed, for example on an expired conversation of an external channel. | Check the transition rules. |
| 503 | PAUSE_FAILED, RESUME_FAILED | Pausing or resuming: the change could not be completed. | Try again. |
| 503 | CONTINUE_FAILED | Resuming with reply or instruction: the conversation is now with the agent, but it couldn't be asked to answer. | Nothing: it will answer with the next message. |
Contacts
Contacts (/v1/clients). The details of each operation are in Contacts.
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_PHONE_NUMBER | The phone number is not valid | Send it in E.164 format |
| 400 | TAG_NOT_FOUND | Adding a tag that does not exist in the workspace. details.invalidTags says which | Create the tag first |
| 400 | NO_CLIENTS, TOO_MANY_CLIENTS | Tagging with nothing to tag, or with more than 500 contacts | Use topN or split the list |
| 404 | CLIENT_NOT_FOUND | No contact in the workspace has that identifier, or it is outside the reach of the user's role | Check the identifier and the ?workspace= |
| 404 | SEARCH_NOT_FOUND | The searchId does not exist | Search again |
| 409 | MULTIPLE_CONTACTS_MATCH | Several contacts share that email. details.clientIds lists them | Use the contact's ID |
| 410 | SEARCH_EXPIRED | The searchId is older than 12 hours | Search again |
Messages
Messages (/v1/messages) and scheduled messages (/v1/messages/scheduled). The details of each operation are in Messages and in scheduled messages.
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_SCHEDULE | delay is out of range, or scheduleTime is not valid, is in the past or is more than 30 days ahead. details.issues points at the field | Fix that field |
| 404 | CONVERSATION_NOT_FOUND | No conversation matches that conversationId | Check the id |
| 404 | SCHEDULED_MESSAGE_NOT_FOUND | No scheduled message has that messageId | Check the id |
| 409 | MULTIPLE_CONVERSATIONS_MATCH, CHANNEL_MISMATCH, CONTACT_INVALID | The conversationId matches several internal conversations, the conversation is not of that mailbox, or the contact cannot receive the email | Use the conversation id and check the channel |
| 409 | SCHEDULE_NOT_RESCHEDULABLE, SCHEDULE_NOT_CANCELLABLE, SCHEDULE_VERSION_CONFLICT | The scheduled message can no longer be changed, or it changed while you changed it. details.status shows the current state | Get it again and decide from its status |
| 422 | SERVICE_WINDOW_CLOSED | The service window is closed | Send a template |
| 422 | CONVERSATION_PHONE_MISSING, UNSUPPORTED_MESSAGE_TYPE | The WhatsApp conversation has no phone number, or the message type is not allowed on an internal conversation | Check the conversation and the type |
Cases and escalations
Cases and escalations (/v1/cases, /v1/escalations). An agent's escalations respond with the codes from Agents, such as INVALID_ESCALATION and SUPPORT_SERVICE_UNAVAILABLE, plus those from connect escalation.
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_REQUEST | A field or parameter is not valid, the body includes an unknown field, or a person is not a member of the workspace. details.issues says what. | Fix those fields. |
| 400 | CUSTOM_FIELD_NOT_FOUND, CUSTOM_FIELD_INCOMPATIBLE | A data field of an escalation links a contact custom field that doesn't exist, or whose type doesn't match the data field's kind. details.issues says which. | Use an id from custom fields and a compatible kind. |
| 403 | FORBIDDEN | The credential can't perform that operation: for example, a person who is neither owner nor admin edits an escalation, or takes a case for someone else. | Use a credential with that permission. |
| 404 | ESCALATION_NOT_FOUND, CASE_NOT_FOUND, CONVERSATION_NOT_FOUND | The escalation, the case or the conversation doesn't exist in this workspace. | Check the ids and the workspace (?workspace=). |
| 409 | ESCALATION_ARCHIVED | Editing an archived escalation, or opening a case from it. | Use an active escalation. |
| 409 | CASE_CLOSED | Changing, taking or adding a note to a closed case. | A closed case isn't reopened: open another one. |
| 409 | CONFLICT | Someone else changed the escalation at the same time. | Try again. |
| 503 | TEMPORARILY_UNAVAILABLE | Cases and escalations are not responding for a moment. It carries Retry-After. | Retry after that time. |
Opening a case that already exists, without all the data, or from an escalation only the agent uses is not an error: it responds 200 with result: "duplicate_open", "missing_fields" or "manual_not_allowed". See open case.
WhatsApp templates
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | TEMPLATE_NOT_APPROVED | Sending a template that is not approved. details.status says its state | Wait for Meta to approve it, or use another one |
| 404 | TEMPLATE_NOT_FOUND, WABA_NOT_FOUND | The template, its version in that language or the WhatsApp account doesn't exist in this workspace. If the language is missing, details.languages lists the available languages | Check the name, the language and the wabaId |
| 409 | TEMPLATE_NOT_EDITABLE | Editing a template that is not approved, rejected or paused | Wait for Meta to finish reviewing it |
| 409 | WHATSAPP_TOKEN_INVALID, WHATSAPP_PERMISSION_DENIED, WHATSAPP_ACCOUNT_RESTRICTED | The WhatsApp connection doesn't work, lacks permission, or Meta restricted the account. details.metaCode and details.upstreamMessage contain Meta’s response | Reconnect WhatsApp in Platica or check the account in Meta |
| 429 | RATE_LIMITED | Meta limited the account's requests | Wait a few minutes |
| 502, 504 | UPSTREAM_ERROR, UPSTREAM_TIMEOUT | Meta didn't respond | Retry later |
In campaigns, a template that doesn't exist responds 400 TEMPLATE_NOT_FOUND. The details of each operation are in Templates and in send template.
Agent templates
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | AGENT_TEMPLATE_SLOT_REQUIRED | Skipping a required to-do | Resolve it in the agent |
| 402 | CREDIT_LIMIT_REACHED | Installing a template with no credit in the workspace. Nothing is created | Check your plan |
| 404 | AGENT_TEMPLATE_NOT_FOUND, AGENT_TEMPLATE_SETUP_NOT_FOUND, AGENT_TEMPLATE_SLOT_NOT_FOUND | The template doesn't exist, the agent doesn't come from a template, or there is no to-do with that slotId | Check the slug, the agentId and the slotId |
| 409 | AGENT_TEMPLATE_SETUP_INCOMPLETE | Finishing the template with required to-dos not done | See which ones with get to-dos |
| 409 | AGENT_TEMPLATE_SETUP_CLOSED | Changing a list that is already finished or dismissed | It's no longer needed: the agent keeps everything |
See the introduction to agent templates.
AI providers
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_PROVIDER | The provider is not openai, google, anthropic or xai | Use one of the four |
| 404 | PROVIDER_NOT_FOUND | Testing or changing the fallback of a provider with no key | Connect the key first |
| 429 | VERIFICATION_RATE_LIMITED | There were already 10 tests of that provider in the last hour | Wait |
| 503 | VERIFICATION_FAILED, SECRET_KEYRING_UNAVAILABLE | The key couldn't be tested, or the secrets store isn't responding | Check the provider before retrying |
See the introduction to AI providers.
Channels and connections
Channels (/v1/channels) and channel connections (/v1/channels/connections). The details of each operation are in Channels.
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 400 | INVALID_REQUEST | The type is missing, the type doesn't exist, expiresInMinutes is outside 15 to 10080, or a limit or pageToken is not valid. details.issues says which | Fix those fields |
| 400 | INVALID_ASSETS | The chosen assets don't come as a list of platformId | Send the list of availableAssets you want to connect |
| 404 | CHANNEL_NOT_FOUND, CONNECTION_NOT_FOUND, AGENT_NOT_FOUND | The channel, the connection or the agent doesn't exist in this workspace | Check the ids and the workspace (?workspace=) |
| 409 | USE_WEBCHATS | Connecting webchat or webpage | Create them with web chats |
| 409 | CHANNEL_TYPE_NOT_AVAILABLE | Telegram, SMS and voice can't be connected yet. details.channelsUrl opens the channel list in Platica | Wait until they are available |
| 409 | SHARE_LINK_NOT_AVAILABLE | Requesting a share link for WhatsApp, email, Gmail or Outlook: those are connected in the Platica wizard | Use authorizeIn |
| 409 | CONNECTION_FINISHED, CONNECTION_INSTALLING, CONNECTION_IN_PROGRESS, CONNECTION_NOT_AWAITING_SELECTION | The connection already finished (details.status says how), is being installed, was already authorized, or isn't waiting for a choice of what to connect | Check the connection; to start over, create another one |
| 409 | ASSET_CONNECTED_ELSEWHERE, NO_CONNECTABLE_ASSETS | The page or account is already connected in another workspace, or the authorization brought nothing to connect | Disconnect it from the other workspace, or authorize with another account |
| 409 | MANAGE_IN_PLATICA | Disconnecting or removing a channel that is still managed from Platica | Do it in Platica |
| 503 | CHANNEL_NOT_CONFIGURED, OPERATION_UNCONFIRMED | The type isn't available in this environment, or the operation couldn't be confirmed | Check the status before retrying |
Tags, custom fields, webhooks and workspaces
| Status | details.code | When it happens | What to do |
|---|---|---|---|
| 404 | TAG_NOT_FOUND | The tag doesn't exist in this workspace | Check the id with list tags |
| 404 | CUSTOM_FIELD_NOT_FOUND | The custom field doesn't exist in this workspace | Check the id with list fields |
| 409 | CUSTOM_FIELD_ALREADY_EXISTS | There is already a field with that name | Use another name or edit the existing one |
| 400 | CUSTOM_FIELD_LIMIT_REACHED | The workspace already has the maximum number of active fields (details.limit, currently 25) | Delete the ones you no longer use |
| 404 | WEBHOOK_NOT_FOUND | The webhook doesn't exist in this workspace | Check the id |
| 404 | WORKSPACE_NOT_FOUND | The workspace doesn't exist or your credential doesn't cover it | Check the id with workspaces |
Rate limits
| Limit | Value |
|---|---|
| Requests per second | 30 per API key |
If you need higher limits for your integration, contact the team at help@platic.ai so we can evaluate your case.
When you get a 429 or a 503, wait before retrying. If the response carries the Retry-After header, wait at least that many seconds; if not, use exponential backoff. The API doesn't send X-RateLimit-* headers.
Best practices
- Decide based on
details.code, not ondetails.message: the code is stable and the message can change - Retry with increasing delays (exponential backoff) for
502,503and504, after checking whether the operation already succeeded - Fix the request first when a
4xxindicates invalid input or missing permissions; rate limits and temporary conflicts may allow retries - Respect
Retry-Afterwhen it comes in a429or a503 - Send an
Idempotency-Keyon supported routes to avoid duplicating a change when retrying after a timeout - Log
details.codeanddetails.messagefor every error: they are the first thing support will ask you for
Before retrying a 502 or 504 from a synchronous endpoint, check the resource: the operation may
have finished even though the HTTP connection failed. A 409 for a busy conversation can be
retried with backoff. A 409 with details.code CONTACT_BLOCKED can't: the agent doesn't
answer a blocked contact, so you have to unblock it first.
Technical support
| Channel | Contact |
|---|---|
| Integrations and API | help@platic.ai |
| General Support | help@platic.ai |
For a faster resolution, include in your request: the endpoint used, the request body, the response received and your API key (only the last 4 characters, for security).