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"
  }
}
FieldTypeDescription
codenumberThe HTTP status
errorstringFixed text for the status
details.codestringStable error code. Decide based on this field
details.messagestringExplanation for people. It can change; don't compare against it
details.issuesarrayOn 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

StatusWhat it meansDefault details.codeWhat to do
400The request is malformed: a field is missing, there is an extra one, or a value doesn't have the expected formatINVALID_REQUESTFix what details.issues points out and send it again
401Credential missing, invalid, expired or revokedUNAUTHENTICATEDCheck the Authorization header or generate another credential. See Authentication
402The workspace reached its credit limitPAYMENT_REQUIREDCheck your plan
403The credential or the person doesn't have permissionFORBIDDENAsk for the missing permission. See Authentication and workspace
404The resource doesn't exist or belongs to another workspaceNOT_FOUNDCheck the id and, if your credential covers several workspaces, the ?workspace=
409The change clashes with the current state of the resourceCONFLICTRead details.code: each conflict says how to resolve it
410The resource is no longer availableGONEStop using it. An expired conversation search (SEARCH_SESSION_EXPIRED) is repeated without pageToken
412The conversation changed since the version you sent in If-Resource-VersionVERSION_MISMATCHRead it again and repeat. See Idempotency
413The body or the file is too largePAYLOAD_TOO_LARGESplit the content
422The request is well formed, but its content is not validUNPROCESSABLE_ENTITYFix what details.issues or details.fields points out
429Too many requests or too much work in progressRATE_LIMITEDWait and retry. See rate limits
500Unexpected failureINTERNAL_ERRORRetry later. If you were creating something, first check whether it already exists
502A service the operation depends on failedUPSTREAM_ERRORBefore retrying, check the resource: the operation may have finished
503Service temporarily unavailableTEMPORARILY_UNAVAILABLERetry, respecting Retry-After if present
504A service didn't respond in timeUPSTREAM_TIMEOUTBefore 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

Statusdetails.codeWhen it happensWhat to do
401UNAUTHENTICATEDThe Authorization header is missing, or the credential is invalid, expired or revokedCheck the header or generate another credential
400INVALID_REQUESTA 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 oneSend ?workspace= with one of details.available
403INSUFFICIENT_SCOPEA read-only OAuth token tried to write. details.requiredScope says which permission is missing, and so does the WWW-Authenticate headerAuthorize again, asking for that permission
403FORBIDDENThe credential or the person doesn't have permission for that operation or that resourceAsk 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.

Statusdetails.codeWhen it happensWhat to do
400INVALID_REQUEST, INVALID_INPUTBody, id or parameter with an invalid format. details.issues or details.fields say whichFix those fields
404AGENT_NOT_FOUNDThe agent doesn't exist, was deleted or belongs to another workspaceCheck the agentId and the workspace
409CONFLICTSomeone else changed this at the same timeTry again
500INTERNAL_ERRORUnexpected failureRetry later. If you were creating something, first check whether it already exists
503TEMPORARILY_UNAVAILABLEA service didn't respondRetry, 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

Statusdetails.codeWhen it happensWhat to do
404VERSION_NOT_FOUNDThe version doesn't exist on that agentCheck the versionId with list versions
409NOT_PREVIOUSLY_PUBLISHEDRollback to a version that was never publishedUse publish version
409COPY_INCOMPLETEActivating or publishing a copy with files that didn't finish connecting themDelete the copy and copy again
422INVALID_CONFIGThe 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 nowFix those fields. To check without saving, use validate changes
422INVALID_SUBAGENT_LINKLink to an agent that doesn't exist, belongs to another workspace, is itself or forms a cycleFix the link
422INVALID_ESCALATIONCreating 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 publishedUse an active escalation from the library or remove it from assistance.escalations
422UNSUPPORTED_REASONING_EFFORTThe 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 savedUse one of details.supportedEfforts, or remove the suffix to use the recommended one. See reasoning level
422MODEL_FALLBACKS_REQUIRE_OWN_KEYAdding 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 savedConnect 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
429RATE_LIMITEDToo many requestsWait at least as long as Retry-After says
503SUPPORT_SERVICE_UNAVAILABLEThe escalations couldn't be checked when creating, publishing or connecting. Nothing is created or publishedRetry 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

Statusdetails.codeWhen it happensWhat to do
404TOOL_NOT_FOUNDThe tool doesn't exist in the workspace catalogCheck the toolId with list tools
404TOOL_NOT_CONNECTEDPausing or disconnecting a tool the agent doesn't have connectedConnect it first

The errors for custom APIs, MCP servers and secrets are in each one's introduction: Custom APIs, MCP servers and Secrets.


Files

Statusdetails.codeWhen it happensWhat to do
400INVALID_INPUTInvalid body, id or parameter. details.fields names each field.Fix those fields and send it again.
403RESOURCE_NOT_ACCESSIBLEThe credential or the person doesn't have the permission the operation requires (see permissions).Ask for Integrations or permission to edit the agents.
404RESOURCE_NOT_ACCESSIBLEThe 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=).
409KNOWLEDGE_NOT_ENABLEDFiles are not enabled in this workspace.Contact support.
409FILE_NOT_READYThe file has no content ready: activating it, connecting it or asking for a suggestion.Wait for its processing job to finish in ready.
409FILE_JOB_IN_PROGRESSThere is already an open processing job on that file (one per file).Wait for it to finish and try again.
409SOURCE_UNAVAILABLEReprocessing a file with no stored original and no page to read.Replace it with a new file.
409COPY_INCOMPLETEAn agent copy didn't finish connecting its files.Delete the copy and copy again.
409DOWNLOAD_NOT_READY, DOWNLOAD_BLOCKED, FILE_UNAVAILABLEThe requested download is still processing, didn't pass review, or the file is being deleted.Wait, or request another download.
409CONFLICTWhen deleting a file: who uses it changed or the confirmationToken expired.Request the list of agents again and confirm again.
409IDEMPOTENCY_KEY_REUSEDThe same Idempotency-Key was reused with different content.Use a new key for a different request.
410FILE_DELETEDThe file was already deleted. details.operationId says which deletion.Stop using it.
410JOB_GONE, DOWNLOAD_GONEThe processing job or the download is no longer kept.Read the file again.
413SIZE_LIMIT_EXCEEDEDThe file is over 50 MiB, or the request is too large.Split the file.
422INVALID_INPUTA 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.
422ACTIVATION_POLICY_MISMATCHattachment.activateOnReady: false.Don't send it: the connection activates when processing finishes.
422CONTENT_REQUIRES_DOWNLOADThe text is over 1 MiB for include=content.Ask for include=download.
422INVALID_CONTENT_TYPE, SOURCE_LIMIT_EXCEEDEDThe type isn't supported, or the source exceeds the limits.Use a format from the list or split the source.
429QUOTA_EXCEEDEDThere are 30 open processing jobs in the workspace, counting automatic refreshes, or too many requests.Wait a few minutes and try again.
429STORAGE_LIMIT_EXCEEDEDThe workspace reached its file limit (1,000) or storage limit (3 GiB).Delete files you no longer use.
503KNOWLEDGE_ENGINE_UNAVAILABLE, TEMPORARILY_UNAVAILABLE, ACCEPTANCE_INCOMPLETE, DOWNLOAD_UNAVAILABLEA 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.

Evals

Statusdetails.codeWhen it happensWhat to do
404EVAL_VERSION_NOT_FOUNDThe requested version doesn't exist (for example v9 on an agent with five versions).Use draft, published or a version that exists.
404EVAL_NOT_FOUNDThe 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.
409EVAL_CONFLICTThe 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.
409EVAL_SUITE_STALEThe 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.
409EVAL_SCENARIO_IN_USEArchiving a scenario that an unarchived suite still uses. details.suiteIds names them.Remove it from those suites with replace suite and archive it again.
409EVAL_SCENARIO_READONLYArchiving a platform scenario.It can't be done. Remove it from your suites if you don't want to run it.
429EVAL_CAPACITYToo 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.
503EVAL_ENGINE_UNAVAILABLE, TEMPORARILY_UNAVAILABLEThe evals service didn't respond.Retry later. If you were starting a run, check list runs first.

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

Statusdetails.codeWhen it happensWhat to do
400INVALID_REQUESTA parameter, body field or header is not valid. details.issues says which.Fix those fields.
400INVALID_FIELD, INVALID_INCLUDEfields or include names something that doesn't exist. details.allowed lists what you can ask for.Use a value from details.allowed.
400INVALID_FILTERA search or count filter can't be applied.Change or remove that filter.
400INVALID_CURSORThe pageToken belongs to another query, filter set, order, workspace or credential.Repeat the first request without pageToken.
403FORBIDDENThe credential has no access to conversations in this workspace.Use a credential with the Conversations permission.
404CONVERSATION_NOT_FOUNDNo 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.
404MESSAGE_NOT_FOUNDNo visible message has that id in the conversation. System events answer the same way.Use the id from the conversation's messages.
404NOT_A_CONVERSATIONThe id is a comment post. details.postId and details.href say where to read it.Use Posts.
410SEARCH_SESSION_EXPIREDThe search's pageToken is older than 15 minutes.Repeat the search without pageToken.
503SEARCH_UNAVAILABLESearch or counting is temporarily unavailable. details.retryable is true; details.engine says which search failed when only one was needed.Retry with backoff.

Actions

Statusdetails.codeWhen it happensWhat to do
400INVALID_REQUESTInvalid 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.
403INSUFFICIENT_SCOPE, FORBIDDENThe 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.
404CONVERSATION_NOT_FOUNDThe conversation doesn't exist or is outside the credential's reach.Check the id and the ?workspace=.
409IDEMPOTENCY_KEY_REUSEDThe Idempotency-Key was already used with a different body.Use a new key for a new action. See Idempotency.
409IDEMPOTENCY_IN_PROGRESSThe first request with this key is still running.Retry shortly with the same key.
409CASE_OPENArchiving a conversation with an open case. details.caseIds lists them.Close or decline the cases first.
409CONVERSATION_ARCHIVEDThe action doesn't apply to an archived conversation: pause, resume, wait, finish, change the agent or the assignees.Reopen it first.
409CONVERSATION_SPAMThe action doesn't apply to a conversation marked as spam: finish, reopen or change the assignees.Unmark spam first.
409CONVERSATION_BUSYThe agent is answering right now (changing the agent, resuming).Retry in a few seconds, or pause first.
409CONVERSATION_CHANGEDThe conversation changed while it was being archived.Try again.
409STATUS_TRANSITION_NOT_ALLOWEDThe 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.
409THREAD_CLOSEDReopening an archived conversation on a channel that doesn't reuse the thread.Nothing to do: the contact's next message opens a new conversation.
409AGENT_NOT_ACTIVEChanging the agent to one that isn't active.Activate the agent or pick another one.
409NO_ACTIVE_AGENTResuming or waiting on a conversation without an active agent, neither on it nor on its channel.Assign or activate an agent.
409AGENT_STOPPINGResuming 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.
409ASSISTANT_CONTINUATION_INVALIDResuming 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.
412VERSION_MISMATCHIf-Resource-Version is not the conversation's current version. details.currentVersion has it. Nothing changed.Read the conversation again, decide again and repeat.
422UNKNOWN_TAGA 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.
422TOO_MANY_TAGSThe conversation would end with more than 20 tags.Remove some first.
422INVALID_ASSIGNEEA member is not active in the workspace. details.invalidAssigneeIds lists them.Use active members' IDs or emails.
422TOO_MANY_ASSIGNEESThe conversation would end with more than 50 assignees.Assign fewer people, or use assignedToTeam.
503CONTINUE_FAILEDResuming: the conversation went back to the agent, but its reply could not be started. details.retryable is true.Repeat with the same Idempotency-Key.
503ACTION_FAILEDThe 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).

Statusdetails.codeWhen it happensWhat to do
403FORBIDDENThe credential can't write conversations or has no access to that one.Use a credential with that permission.
404CONVERSATION_NOT_FOUNDThere is no conversation with that id in this workspace. Here it doesn't look up by phone number.Use the id from list conversations.
409NOT_A_CONVERSATIONThe id belongs to a comment thread.Use threads.
409CONVERSATION_CLOSEDResuming a conversation that is finished, expired or in spam.It cannot be resumed in that state.
409CASE_OPENResuming a conversation with open cases.Close them first.
409NO_ACTIVE_AGENTResuming a conversation with no active agent, neither on it nor on its channel.Assign or activate an agent.
409AGENT_STOPPINGResuming right after pausing, while the agent is still stopping.Try again in a few seconds.
409CONVERSATION_BUSYUpdating a conversation: an internal chat is being expired while the agent answers.Try again in a moment.
409INVALID_STATUS_TRANSITIONUpdating a conversation: the status change is not allowed, for example on an expired conversation of an external channel.Check the transition rules.
503PAUSE_FAILED, RESUME_FAILEDPausing or resuming: the change could not be completed.Try again.
503CONTINUE_FAILEDResuming 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.

Statusdetails.codeWhen it happensWhat to do
400INVALID_PHONE_NUMBERThe phone number is not validSend it in E.164 format
400TAG_NOT_FOUNDAdding a tag that does not exist in the workspace. details.invalidTags says whichCreate the tag first
400NO_CLIENTS, TOO_MANY_CLIENTSTagging with nothing to tag, or with more than 500 contactsUse topN or split the list
404CLIENT_NOT_FOUNDNo contact in the workspace has that identifier, or it is outside the reach of the user's roleCheck the identifier and the ?workspace=
404SEARCH_NOT_FOUNDThe searchId does not existSearch again
409MULTIPLE_CONTACTS_MATCHSeveral contacts share that email. details.clientIds lists themUse the contact's ID
410SEARCH_EXPIREDThe searchId is older than 12 hoursSearch again

Messages

Messages (/v1/messages) and scheduled messages (/v1/messages/scheduled). The details of each operation are in Messages and in scheduled messages.

Statusdetails.codeWhen it happensWhat to do
400INVALID_SCHEDULEdelay 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 fieldFix that field
404CONVERSATION_NOT_FOUNDNo conversation matches that conversationIdCheck the id
404SCHEDULED_MESSAGE_NOT_FOUNDNo scheduled message has that messageIdCheck the id
409MULTIPLE_CONVERSATIONS_MATCH, CHANNEL_MISMATCH, CONTACT_INVALIDThe conversationId matches several internal conversations, the conversation is not of that mailbox, or the contact cannot receive the emailUse the conversation id and check the channel
409SCHEDULE_NOT_RESCHEDULABLE, SCHEDULE_NOT_CANCELLABLE, SCHEDULE_VERSION_CONFLICTThe scheduled message can no longer be changed, or it changed while you changed it. details.status shows the current stateGet it again and decide from its status
422SERVICE_WINDOW_CLOSEDThe service window is closedSend a template
422CONVERSATION_PHONE_MISSING, UNSUPPORTED_MESSAGE_TYPEThe WhatsApp conversation has no phone number, or the message type is not allowed on an internal conversationCheck 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.

Statusdetails.codeWhen it happensWhat to do
400INVALID_REQUESTA 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.
400CUSTOM_FIELD_NOT_FOUND, CUSTOM_FIELD_INCOMPATIBLEA 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.
403FORBIDDENThe 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.
404ESCALATION_NOT_FOUND, CASE_NOT_FOUND, CONVERSATION_NOT_FOUNDThe escalation, the case or the conversation doesn't exist in this workspace.Check the ids and the workspace (?workspace=).
409ESCALATION_ARCHIVEDEditing an archived escalation, or opening a case from it.Use an active escalation.
409CASE_CLOSEDChanging, taking or adding a note to a closed case.A closed case isn't reopened: open another one.
409CONFLICTSomeone else changed the escalation at the same time.Try again.
503TEMPORARILY_UNAVAILABLECases 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

Statusdetails.codeWhen it happensWhat to do
400TEMPLATE_NOT_APPROVEDSending a template that is not approved. details.status says its stateWait for Meta to approve it, or use another one
404TEMPLATE_NOT_FOUND, WABA_NOT_FOUNDThe 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 languagesCheck the name, the language and the wabaId
409TEMPLATE_NOT_EDITABLEEditing a template that is not approved, rejected or pausedWait for Meta to finish reviewing it
409WHATSAPP_TOKEN_INVALID, WHATSAPP_PERMISSION_DENIED, WHATSAPP_ACCOUNT_RESTRICTEDThe WhatsApp connection doesn't work, lacks permission, or Meta restricted the account. details.metaCode and details.upstreamMessage contain Meta’s responseReconnect WhatsApp in Platica or check the account in Meta
429RATE_LIMITEDMeta limited the account's requestsWait a few minutes
502, 504UPSTREAM_ERROR, UPSTREAM_TIMEOUTMeta didn't respondRetry 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

Statusdetails.codeWhen it happensWhat to do
400AGENT_TEMPLATE_SLOT_REQUIREDSkipping a required to-doResolve it in the agent
402CREDIT_LIMIT_REACHEDInstalling a template with no credit in the workspace. Nothing is createdCheck your plan
404AGENT_TEMPLATE_NOT_FOUND, AGENT_TEMPLATE_SETUP_NOT_FOUND, AGENT_TEMPLATE_SLOT_NOT_FOUNDThe template doesn't exist, the agent doesn't come from a template, or there is no to-do with that slotIdCheck the slug, the agentId and the slotId
409AGENT_TEMPLATE_SETUP_INCOMPLETEFinishing the template with required to-dos not doneSee which ones with get to-dos
409AGENT_TEMPLATE_SETUP_CLOSEDChanging a list that is already finished or dismissedIt's no longer needed: the agent keeps everything

See the introduction to agent templates.


AI providers

Statusdetails.codeWhen it happensWhat to do
400INVALID_PROVIDERThe provider is not openai, google, anthropic or xaiUse one of the four
404PROVIDER_NOT_FOUNDTesting or changing the fallback of a provider with no keyConnect the key first
429VERIFICATION_RATE_LIMITEDThere were already 10 tests of that provider in the last hourWait
503VERIFICATION_FAILED, SECRET_KEYRING_UNAVAILABLEThe key couldn't be tested, or the secrets store isn't respondingCheck 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.

Statusdetails.codeWhen it happensWhat to do
400INVALID_REQUESTThe 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 whichFix those fields
400INVALID_ASSETSThe chosen assets don't come as a list of platformIdSend the list of availableAssets you want to connect
404CHANNEL_NOT_FOUND, CONNECTION_NOT_FOUND, AGENT_NOT_FOUNDThe channel, the connection or the agent doesn't exist in this workspaceCheck the ids and the workspace (?workspace=)
409USE_WEBCHATSConnecting webchat or webpageCreate them with web chats
409CHANNEL_TYPE_NOT_AVAILABLETelegram, SMS and voice can't be connected yet. details.channelsUrl opens the channel list in PlaticaWait until they are available
409SHARE_LINK_NOT_AVAILABLERequesting a share link for WhatsApp, email, Gmail or Outlook: those are connected in the Platica wizardUse authorizeIn
409CONNECTION_FINISHED, CONNECTION_INSTALLING, CONNECTION_IN_PROGRESS, CONNECTION_NOT_AWAITING_SELECTIONThe connection already finished (details.status says how), is being installed, was already authorized, or isn't waiting for a choice of what to connectCheck the connection; to start over, create another one
409ASSET_CONNECTED_ELSEWHERE, NO_CONNECTABLE_ASSETSThe page or account is already connected in another workspace, or the authorization brought nothing to connectDisconnect it from the other workspace, or authorize with another account
409MANAGE_IN_PLATICADisconnecting or removing a channel that is still managed from PlaticaDo it in Platica
503CHANNEL_NOT_CONFIGURED, OPERATION_UNCONFIRMEDThe type isn't available in this environment, or the operation couldn't be confirmedCheck the status before retrying

Tags, custom fields, webhooks and workspaces

Statusdetails.codeWhen it happensWhat to do
404TAG_NOT_FOUNDThe tag doesn't exist in this workspaceCheck the id with list tags
404CUSTOM_FIELD_NOT_FOUNDThe custom field doesn't exist in this workspaceCheck the id with list fields
409CUSTOM_FIELD_ALREADY_EXISTSThere is already a field with that nameUse another name or edit the existing one
400CUSTOM_FIELD_LIMIT_REACHEDThe workspace already has the maximum number of active fields (details.limit, currently 25)Delete the ones you no longer use
404WEBHOOK_NOT_FOUNDThe webhook doesn't exist in this workspaceCheck the id
404WORKSPACE_NOT_FOUNDThe workspace doesn't exist or your credential doesn't cover itCheck the id with workspaces

Rate limits

LimitValue
Requests per second30 per API key

Best practices

  1. Decide based on details.code, not on details.message: the code is stable and the message can change
  2. Retry with increasing delays (exponential backoff) for 502, 503 and 504, after checking whether the operation already succeeded
  3. Fix the request first when a 4xx indicates invalid input or missing permissions; rate limits and temporary conflicts may allow retries
  4. Respect Retry-After when it comes in a 429 or a 503
  5. Send an Idempotency-Key on supported routes to avoid duplicating a change when retrying after a timeout
  6. Log details.code and details.message for every error: they are the first thing support will ask you for

Technical support

ChannelContact
Integrations and APIhelp@platic.ai
General Supporthelp@platic.ai