Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.
Every API error comes back in the same format, with a fixed code for your integration to handle and
a text message for people to read.
{ "error": { "code": "ERR_API_FORBIDDEN_SCOPE", "message": "O token não tem permissão de POST no módulo \"contacts\"." }}
string
required
Fixed identifier of the error. Use this code to decide what your integration does. The message
text may change over time, so do not rely on it.
string
required
Description in Portuguese, meant to show up in logs and on support screens.
any
Extra information, when there is any, such as the list of invalid fields. Most errors do not
include this field.
Treat any response outside the 2xx range as an error before reading data. When the call
fails, data does not exist, and reading response.data.id throws a TypeError that hides the
real cause.
Authentication and permission codes
Code
Status
What to do
ERR_API_UNAUTHORIZED
401
Missing, invalid, revoked or expired token, or an unauthorized IP. The response is the same in all of these cases. Check the token in the panel.
ERR_API_FORBIDDEN_SCOPE
403
The token does not have permission for that method on that module. The message says which one. Adjust the token’s permissions.
ERR_API_NOT_ENABLED
403
The company’s plan does not include the public API.
ERR_NO_PERMISSION
403
The operation requires an access level the token does not have.
ERR_SELF_SERVICE_DISABLED
403
Feature available only on self-service installations, such as user invitations.
When a 401 suddenly starts showing up, the most common cause is that the token has expired or
your server’s outbound IP has changed. Check the token’s expiry date before investigating the
network.
Request codes
Code
Status
What to do
ERR_API_VALIDATION
400 or 422
A required field is missing or some value is not accepted. The message says what the problem is.
ERR_API_INVALID_JSON
400
The body is not valid JSON. Check quotes, commas and the Content-Type: application/json header.
ERR_API_INVALID_PARAMETER
400
A parameter has an invalid format, such as text where a number is expected or a date that does not exist.
ERR_API_NOT_FOUND
404
The record does not exist, or the id sent is not a number.
ERR_API_ROUTE_NOT_FOUND
404
The method or path does not exist. Check the verb and whether the base URL includes /api/v1.
ERR_API_CONFLICT
409
A record with that data already exists.
ERR_API_INVALID_REFERENCE
422
One of the ids sent in the body does not exist.
ERR_API_PAYLOAD_TOO_LARGE
413
The body is larger than allowed.
ERR_API_UPLOAD
413 or 422
The file is larger than allowed or the upload was not accepted.
ERR_API_RATE_LIMIT
429
The company reached its limit of requests per minute. Wait for the time given in Retry-After.
ERR_API_IDEMPOTENCY_KEY_INVALID
400
Idempotency-Key longer than 200 characters.
ERR_API_IDEMPOTENCY_KEY_REUSED
409
The same key has already been used with a different body.
ERR_API_IDEMPOTENCY_IN_PROGRESS
409
Another attempt with that key is still in progress.
ERR_API_INTERNAL
500
A failure on our side. It is worth retrying after a few seconds. If it keeps happening, contact support with the method and path.
An id from another company returns 404, exactly like an id that does not exist. This is on
purpose: the API does not confirm that a record exists outside your account.
Business-rule codes
These codes show up when the request is correct, but the current state of the resource does not
allow the operation.
Messages
Code
Status
Meaning
ERR_API_BODY_REQUIRED
400
A text message without the body field.
ERR_API_TEMPLATE_REQUIRED
400
A template message without the template field. It also shows up when scheduling a message on an official WhatsApp channel without a template.
ERR_API_INTERACTIVE_REQUIRED
400
An interactive message without the interactive field.
ERR_API_MEDIA_REQUIRED
400
A media message without a file.
ERR_API_CHANNEL_NOT_FOUND
404
The channel does not exist in this company.
ERR_API_TICKET_NOT_FOUND
404
The ticket sent in ticketId does not exist in this company.
ERR_API_JOB_NOT_FOUND
404
The jobId does not exist or belongs to another company.
ERR_API_TEMPLATE_MEDIA_NOT_ALLOWED
400
The template provided does not accept media in the header.
ERR_API_CONTACT_NOT_IDENTIFIED
400
None of ticketId, contactId or number, or only number on a channel without a phone number.
ERR_API_CONTACT_NOT_FOUND
404
The contactId does not exist in this company.
ERR_API_CONTACT_UNREACHABLE
422
The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels).
ERR_API_INTERACTIVE_INVALID
422
Webchat: interactive is outside the WhatsApp format or limits, or is of a type that does not exist on webchat. The message includes the field and the reason.
ERR_API_NO_WHATSAPP_CREDITS
402
WhatsApp Business channel with billing enabled and the company out of credit. The message is not queued.
ERR_API_ACTIVE_CONTACTS_LIMIT_REACHED
402
The company reached its monthly active contacts limit and the recipient has not exchanged messages with it this month. Contacts that already counted this month keep receiving; the count resets on the 1st. Does not apply to web_whatsapp channels. The message is not queued.
Channels
Code
Status
Meaning
ERR_API_CHANNEL_NOT_FOUND
404
The channel does not exist in this company.
Webchat
Code
Status
Meaning
ERR_WEBCHAT_NOT_FOUND
404
The slug is not an active webchat of this company.
ERR_WEBCHAT_SESSION_NOT_FOUND
404
The session does not exist on this webchat.
ERR_WEBCHAT_SESSION_CLOSED
410
The session was closed. Open another one (with externalId, the same one is reopened).
ERR_WEBCHAT_SESSION_BLOCKED
403
The session is blocked for sending too many messages (1 hour).
ERR_WEBCHAT_VISITOR_DATA_REQUIRED
422
Required initial visitor data is missing. The message lists the fields (e.g. name,phone).
ERR_WEBCHAT_MESSAGE_EMPTY
422
Message with no text and no file.
ERR_WEBCHAT_MESSAGE_TOO_LONG
422
Text above 4,096 characters.
ERR_WEBCHAT_MEDIA_TOO_LARGE
413
File above 10 MB.
ERR_WEBCHAT_MEDIA_INVALID_TYPE
422
File type not accepted (the type is read from the contents, not the name).
ERR_WEBCHAT_UPLOAD_LIMIT
429
The webchat’s file volume for the last hour is used up.
ERR_WEBCHAT_INTERACTIVE_REPLY_INVALID
422
interactiveReply with an option that is not in the message, or a message the visitor cannot see.
ERR_WEBCHAT_LOCATION_INVALID
422
location out of range (latitude from -90 to 90, longitude from -180 to 180).
Tickets
Code
Status
Meaning
ERR_NO_TICKET_FOUND
404
The ticket does not exist in this company.
ERR_API_TRANSFER_TARGET_REQUIRED
400
To transfer, provide the destination queue or user.
ERR_API_TICKET_CLOSED
409
automation: true on a closed conversation whose protocol is no longer open.
ERR_API_TICKET_IN_NPS
409
automation on a conversation that is in the satisfaction survey.
ERR_API_TICKET_IN_SERVICE
409
automation: true on a conversation with an assigned agent. Remove the agent first, with POST /tickets/{id}/transfer and userId: null.
Tags
Code
Status
Meaning
ERR_NO_TAG_FOUND
404
The tag does not exist or was deleted.
Wrap-up types
Code
Status
Meaning
ERR_API_QUEUE_NOT_FOUND
422
One of the queues in queues does not exist in this company.
Campaigns
Code
Status
Meaning
ERR_NO_CAMPAIGN_FOUND
404
The campaign does not exist in this company.
CRM
Code
Status
Meaning
ERR_CRM_CARD_INVALID_DUE
400
The card’s due date (due) is not a valid date or is outside the years 1000 to 9999.
ERR_NO_BOARD_FOUND
404
The board does not exist in this company.
ERR_NO_BOARD_LIST_FOUND
404
The stage does not exist on the board, or the destination stage belongs to another board.
ERR_NO_CARD_FOUND
404
The card does not exist in this company.
ERR_NO_CONTACT_FOUND
404
The contact does not exist in this company or, when choosing the card’s primary contact, is not linked to it.
Reports
Code
Status
Meaning
ERR_COMPANY_OR_DATE_NOT_DEFINED
400
date_start or date_finish is missing.
ERR_API_VALIDATION
422
The date is not in the YYYY-MM-DD or YYYY-MM-DD HH:mm:ss format, or the conversations report campaignSlug was sent more than once or has more than 80 characters.
ERR_DATE_NOT_DEFINED
400
Dashboard, on the tabs with a period: the period is missing or not in the YYYY-MM-DD format.
ERR_DATE_INTERVAL_INVALID
400
Dashboard: the start of the period is after the end.
ERR_DATE_RANGE_TOO_LONG
400
Dashboard: the period is longer than 365 days.
ERR_DASHBOARD_MONITOR_NOT_ENABLED
403
Dashboard: Monitoring is not enabled in the company’s plan.
Scheduled messages
Code
Status
Meaning
ERR_API_SCHEDULE_ALREADY_SENT
409
The scheduled message has already been sent and cannot be changed.
ERR_API_SCHEDULE_CANCELED
409
The scheduled message was canceled.
ERR_API_SCHEDULE_NOT_EDITABLE
409
The current state of the scheduled message does not allow editing.
ERR_API_SCHEDULE_SEND_AT_IN_THE_PAST
400
The given sendAt is already in the past. Scheduled messages can only be created or moved to a future date.
ERR_API_SCHEDULE_FUTURE_SEND_AT_REQUIRED
400
Rescheduling a failed (ERRO) or expired (EXPIRADA) message whose date has already passed requires a future sendAt.
Users
Code
Status
Meaning
ERR_API_USER_ID_REQUIRED
400
The operation requires the user’s id.
ERR_API_USER_NO_WRITABLE_FIELDS
400
No editable field was sent. Email and password belong to the user’s global account and cannot be edited through the API.
ERR_API_INVITE_ALREADY_ACCEPTED
409
The invitation has already been accepted and the person is already a member of the company. To remove their access, use PUT /users/{id}/active.
ERR_API_PROFILE_NOT_FOUND
422
The profileId is not a profile of this company. See the profiles in GET /profiles.
How to handle each type of error
Each status range calls for a different reaction. A 400 comes back the same if you repeat the
call without changing anything. A 429, on the other hand, should be repeated after the indicated
wait, or the operation is lost.
async function handle(res) { if (res.ok) return res.status === 204 ? null : (await res.json()).data; const { error } = await res.json().catch(() => ({ error: {} })); switch (res.status) { case 401: // Do not repeat: the token will not get better on its own. Alert whoever operates it. throw new CredentialError(error.code, error.message); case 403: case 404: case 409: case 422: // Final: repeating gives the same result. Fix the call. throw new RequestError(error.code, error.message, error.details); case 429: throw new TemporaryError(Number(res.headers.get('Retry-After') ?? 60)); default: // 5xx: server failure. A retry with increasing backoff is worth it. throw new TemporaryError(5); }}
def handle(res): if res.ok: return None if res.status_code == 204 else res.json().get("data") error = res.json().get("error", {}) if res.content else {} if res.status_code == 401: raise CredentialError(error.get("code"), error.get("message")) if res.status_code in (403, 404, 409, 422): raise RequestError(error.get("code"), error.get("message"), error.get("details")) if res.status_code == 429: raise TemporaryError(int(res.headers.get("Retry-After", 60))) raise TemporaryError(5)
Always record the error.code in your log, together with the method and path you called. With
that information, support can locate the request, and it all fits on one line.
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Connecta DESK","description":"Documentação da API pública do Connecta DESK.","colors":{"primary":"#6600CB","light":"#A700E3","dark":"#4D0099"},"logo":{"light":"https://mintcdn.com/connectacx/Zc_LQh8Yyx38544Q/logo/light.png?fit=max\u0026auto=format\u0026n=Zc_LQh8Yyx38544Q\u0026q=85\u0026s=85d9b71a8b3fdb4f14dba571d7c0299c","dark":"https://mintcdn.com/connectacx/Zc_LQh8Yyx38544Q/logo/dark.png?fit=max\u0026auto=format\u0026n=Zc_LQh8Yyx38544Q\u0026q=85\u0026s=e1cd298dfd51f2fcd900d86d88642aba"},"favicon":"https://mintcdn.com/connectacx/s1UZNYBcmXRITwHp/favicon.png?fit=max\u0026auto=format\u0026n=s1UZNYBcmXRITwHp\u0026q=85\u0026s=b1882dd2c71739a63327ee90b4ca912b","api":{"openapi":"api-reference/openapi.yaml"},"navbar":{"primary":{"type":"button","label":"Acessar plataforma","href":"https://app.connectadesk.com"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/connectacx","instagram":"https://www.instagram.com/connecta.cx"}},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"languages":[{"language":"pt-BR","default":true,"navbar":{"primary":{"type":"button","label":"Acessar plataforma","href":"https://app.connectadesk.com"}},"href":"introduction"},{"language":"en","navbar":{"primary":{"type":"button","label":"Access platform","href":"https://app.connectadesk.com"}},"href":"en/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"connectacx","hasAudioNarration":false,"actualSubdomain":"connectacx","customDomains":["docs.connectadesk.com"],"gitSource":{"type":"github","owner":"connectacx","repo":"connecta-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0a21a7a6507e80616728dc","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"pt-BR","tag":"Referência da API","count":155},{"language":"en","tag":"API Reference","count":155},{"language":"pt-BR","tag":"Endpoints","count":154},{"language":"en","tag":"Endpoints","count":154},{"language":"pt-BR","tag":"CRM","count":25},{"language":"en","tag":"CRM","count":25},{"language":"pt-BR","tag":"Produtos","count":14},{"language":"pt-BR","tag":"Relatórios","count":14},{"language":"en","tag":"Products","count":14},{"language":"en","tag":"Reports","count":14},{"language":"pt-BR","tag":"Documentação","count":13},{"language":"pt-BR","tag":"Campanhas","count":13},{"language":"pt-BR","tag":"Campos personalizados","count":13},{"language":"en","tag":"Documentation","count":13},{"language":"en","tag":"Campaigns","count":13},{"language":"en","tag":"Custom fields","count":13},{"language":"pt-BR","tag":"Contatos","count":10},{"language":"en","tag":"Contacts","count":10},{"language":"pt-BR","tag":"Qualificações","count":8},{"language":"en","tag":"Wrap-up types","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/essentials/erros","slug":"/en/essentials/erros","pageMetadata":{"title":"Errors","sidebarTitle":"Errors","description":"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.","href":"/en/essentials/erros"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,CodeGroup,Heading,Note,ResponseField,Table,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Every API error comes back in the same format, with a fixed code for your integration to handle and\na text message for people to read.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ERR_API_FORBIDDEN_SCOPE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"O token não tem permissão de POST no módulo `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`contacts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(ResponseField,{name:`error.code`,type:`string`,required:true,id:`param-error-code`,children:_jsx(_components.p,{children:`Fixed identifier of the error. Use this code to decide what your integration does. The message\ntext may change over time, so do not rely on it.`})}),`\n`,_jsx(ResponseField,{name:`error.message`,type:`string`,required:true,id:`param-error-message`,children:_jsx(_components.p,{children:`Description in Portuguese, meant to show up in logs and on support screens.`})}),`\n`,_jsx(ResponseField,{name:`error.details`,type:`any`,id:`param-error-details`,children:_jsx(_components.p,{children:`Extra information, when there is any, such as the list of invalid fields. Most errors do not\ninclude this field.`})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Treat any response outside the `,_jsx(_components.code,{children:`2xx`}),` range as an error `,_jsx(_components.strong,{children:`before`}),` reading `,_jsx(_components.code,{children:`data`}),`. When the call\nfails, `,_jsx(_components.code,{children:`data`}),` does not exist, and reading `,_jsx(_components.code,{children:`response.data.id`}),` throws a `,_jsx(_components.code,{children:`TypeError`}),` that hides the\nreal cause.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-and-permission-codes`,children:`Authentication and permission codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_UNAUTHORIZED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Missing, invalid, revoked or expired token, or an unauthorized IP. The response is the same in all of these cases. Check the token in the panel.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_FORBIDDEN_SCOPE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`The token does not have permission for that method on that module. The message says which one. Adjust the token’s permissions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_NOT_ENABLED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`The company’s plan does not include the public API.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_PERMISSION`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`The operation requires an access level the token does not have.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_SELF_SERVICE_DISABLED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Feature available only on self-service installations, such as user invitations.`})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`When a `,_jsx(_components.code,{children:`401`}),` suddenly starts showing up, the most common cause is that the token has expired or\nyour server’s outbound IP has changed. Check the token’s expiry date before investigating the\nnetwork.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-codes`,children:`Request codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_VALIDATION`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400 or 422`}),_jsx(_components.td,{children:`A required field is missing or some value is not accepted. The message says what the problem is.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_INVALID_JSON`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`The body is not valid JSON. Check quotes, commas and the `,_jsx(_components.code,{children:`Content-Type: application/json`}),` header.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_INVALID_PARAMETER`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`A parameter has an invalid format, such as text where a number is expected or a date that does not exist.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The record does not exist, or the id sent is not a number.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_ROUTE_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`The method or path does not exist. Check the verb and whether the base URL includes `,_jsx(_components.code,{children:`/api/v1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_CONFLICT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`A record with that data already exists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_INVALID_REFERENCE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`One of the ids sent in the body does not exist.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_PAYLOAD_TOO_LARGE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`413`}),_jsx(_components.td,{children:`The body is larger than allowed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_UPLOAD`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`413 or 422`}),_jsx(_components.td,{children:`The file is larger than allowed or the upload was not accepted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_RATE_LIMIT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[`The company reached its limit of requests per minute. Wait for the time given in `,_jsx(_components.code,{children:`Retry-After`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_IDEMPOTENCY_KEY_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),` longer than 200 characters.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_IDEMPOTENCY_KEY_REUSED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`The same key has already been used with a different body.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_IDEMPOTENCY_IN_PROGRESS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`Another attempt with that key is still in progress.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_INTERNAL`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`A failure on our side. It is worth retrying after a few seconds. If it keeps happening, contact support with the method and path.`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`An id from another company returns `,_jsx(_components.code,{children:`404`}),`, exactly like an id that does not exist. This is on\npurpose: the API does not confirm that a record exists outside your account.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`business-rule-codes`,children:`Business-rule codes`}),`\n`,_jsx(_components.p,{children:`These codes show up when the request is correct, but the current state of the resource does not\nallow the operation.`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Messages`,icon:`send`,id:`messages`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_BODY_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`text`}),` message without the `,_jsx(_components.code,{children:`body`}),` field.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_TEMPLATE_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`template`}),` message without the `,_jsx(_components.code,{children:`template`}),` field. It also shows up when scheduling a message on an official WhatsApp channel without a template.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_INTERACTIVE_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`An `,_jsx(_components.code,{children:`interactive`}),` message without the `,_jsx(_components.code,{children:`interactive`}),` field.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_MEDIA_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`media`}),` message without a file.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_CHANNEL_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The channel does not exist in this company.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_TICKET_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`The ticket sent in `,_jsx(_components.code,{children:`ticketId`}),` does not exist in this company.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_JOB_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`jobId`}),` does not exist or belongs to another company.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_TEMPLATE_MEDIA_NOT_ALLOWED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`The template provided does not accept media in the header.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_CONTACT_NOT_IDENTIFIED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`None of `,_jsx(_components.code,{children:`ticketId`}),`, `,_jsx(_components.code,{children:`contactId`}),` or `,_jsx(_components.code,{children:`number`}),`, or only `,_jsx(_components.code,{children:`number`}),` on a channel without a phone number.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_CONTACT_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`contactId`}),` does not exist in this company.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_CONTACT_UNREACHABLE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`The contact cannot receive on this channel: no previous conversation on it (channels without a phone number; on Webchat, no visitor session on this webchat) or no phone number (phone channels).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_INTERACTIVE_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[`Webchat: `,_jsx(_components.code,{children:`interactive`}),` is outside the WhatsApp format or limits, or is of a type that does not exist on webchat. The `,_jsx(_components.code,{children:`message`}),` includes the field and the reason.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_NO_WHATSAPP_CREDITS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsx(_components.td,{children:`WhatsApp Business channel with billing enabled and the company out of credit. The message is not queued.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_ACTIVE_CONTACTS_LIMIT_REACHED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsxs(_components.td,{children:[`The company reached its monthly active contacts limit and the recipient has not exchanged messages with it this month. Contacts that already counted this month keep receiving; the count resets on the 1st. Does not apply to `,_jsx(_components.code,{children:`web_whatsapp`}),` channels. The message is not queued.`]})]})]})]})}),_jsx(Accordion,{title:`Channels`,icon:`smartphone`,id:`channels`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_CHANNEL_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The channel does not exist in this company.`})]})})]})}),_jsx(Accordion,{title:`Webchat`,icon:`messages-square`,id:`webchat`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`slug`}),` is not an active webchat of this company.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_SESSION_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The session does not exist on this webchat.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_SESSION_CLOSED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`410`}),_jsxs(_components.td,{children:[`The session was closed. Open another one (with `,_jsx(_components.code,{children:`externalId`}),`, the same one is reopened).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_SESSION_BLOCKED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`The session is blocked for sending too many messages (1 hour).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_VISITOR_DATA_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[`Required initial visitor data is missing. The `,_jsx(_components.code,{children:`message`}),` lists the fields (e.g. `,_jsx(_components.code,{children:`name,phone`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_MESSAGE_EMPTY`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Message with no text and no file.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_MESSAGE_TOO_LONG`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Text above 4,096 characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_MEDIA_TOO_LARGE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`413`}),_jsx(_components.td,{children:`File above 10 MB.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_MEDIA_INVALID_TYPE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`File type not accepted (the type is read from the contents, not the name).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_UPLOAD_LIMIT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`The webchat’s file volume for the last hour is used up.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_INTERACTIVE_REPLY_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`interactiveReply`}),` with an option that is not in the message, or a message the visitor cannot see.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_WEBCHAT_LOCATION_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`location`}),` out of range (latitude from -90 to 90, longitude from -180 to 180).`]})]})]})]})}),_jsx(Accordion,{title:`Tickets`,icon:`message-square`,id:`tickets`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_TICKET_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The ticket does not exist in this company.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_TRANSFER_TARGET_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`To transfer, provide the destination queue or user.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_TICKET_CLOSED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`automation: true`}),` on a closed conversation whose protocol is no longer open.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_TICKET_IN_NPS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`automation`}),` on a conversation that is in the satisfaction survey.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_TICKET_IN_SERVICE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`automation: true`}),` on a conversation with an assigned agent. Remove the agent first, with `,_jsx(_components.code,{children:`POST /tickets/{id}/transfer`}),` and `,_jsx(_components.code,{children:`userId: null`}),`.`]})]})]})]})}),_jsx(Accordion,{title:`Tags`,icon:`tags`,id:`tags`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_TAG_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The tag does not exist or was deleted.`})]})})]})}),_jsx(Accordion,{title:`Wrap-up types`,icon:`award`,id:`wrap-up-types`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_QUEUE_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[`One of the queues in `,_jsx(_components.code,{children:`queues`}),` does not exist in this company.`]})]})})]})}),_jsx(Accordion,{title:`Campaigns`,icon:`megaphone`,id:`campaigns`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_CAMPAIGN_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The campaign does not exist in this company.`})]})})]})}),_jsx(Accordion,{title:`CRM`,icon:`kanban`,id:`crm`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_CRM_CARD_INVALID_DUE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`The card’s due date (`,_jsx(_components.code,{children:`due`}),`) is not a valid date or is outside the years 1000 to 9999.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_BOARD_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The board does not exist in this company.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_BOARD_LIST_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The stage does not exist on the board, or the destination stage belongs to another board.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_CARD_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The card does not exist in this company.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_NO_CONTACT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The contact does not exist in this company or, when choosing the card’s primary contact, is not linked to it.`})]})]})]})}),_jsx(Accordion,{title:`Reports`,icon:`chart-column`,id:`reports`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_COMPANY_OR_DATE_NOT_DEFINED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`date_start`}),` or `,_jsx(_components.code,{children:`date_finish`}),` is missing.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_VALIDATION`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[`The date is not in the `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` or `,_jsx(_components.code,{children:`YYYY-MM-DD HH:mm:ss`}),` format, or the conversations report `,_jsx(_components.code,{children:`campaignSlug`}),` was sent more than once or has more than 80 characters.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_DATE_NOT_DEFINED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`Dashboard, on the tabs with a period: the period is missing or not in the `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` format.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_DATE_INTERVAL_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Dashboard: the start of the period is after the end.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_DATE_RANGE_TOO_LONG`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Dashboard: the period is longer than 365 days.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_DASHBOARD_MONITOR_NOT_ENABLED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Dashboard: Monitoring is not enabled in the company’s plan.`})]})]})]})}),_jsx(Accordion,{title:`Scheduled messages`,icon:`calendar`,id:`scheduled-messages`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_SCHEDULE_ALREADY_SENT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`The scheduled message has already been sent and cannot be changed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_SCHEDULE_CANCELED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`The scheduled message was canceled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_SCHEDULE_NOT_EDITABLE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`The current state of the scheduled message does not allow editing.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_SCHEDULE_SEND_AT_IN_THE_PAST`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`The given `,_jsx(_components.code,{children:`sendAt`}),` is already in the past. Scheduled messages can only be created or moved to a future date.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_SCHEDULE_FUTURE_SEND_AT_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`Rescheduling a failed (`,_jsx(_components.code,{children:`ERRO`}),`) or expired (`,_jsx(_components.code,{children:`EXPIRADA`}),`) message whose date has already passed requires a future `,_jsx(_components.code,{children:`sendAt`}),`.`]})]})]})]})}),_jsx(Accordion,{title:`Users`,icon:`user-cog`,id:`users`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_USER_ID_REQUIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`The operation requires the user’s id.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_USER_NO_WRITABLE_FIELDS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`No editable field was sent. Email and password belong to the user’s global account and cannot be edited through the API.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_INVITE_ALREADY_ACCEPTED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[`The invitation has already been accepted and the person is already a member of the company. To remove their access, use `,_jsx(_components.code,{children:`PUT /users/{id}/active`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ERR_API_PROFILE_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`profileId`}),` is not a profile of this company. See the profiles in `,_jsx(_components.code,{children:`GET /profiles`}),`.`]})]})]})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-handle-each-type-of-error`,children:`How to handle each type of error`}),`\n`,_jsxs(_components.p,{children:[`Each status range calls for a different reaction. A `,_jsx(_components.code,{children:`400`}),` comes back the same if you repeat the\ncall without changing anything. A `,_jsx(_components.code,{children:`429`}),`, on the other hand, should be repeated after the indicated\nwait, or the operation is lost.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`25`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 204`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {} }));`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` switch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 401`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Do not repeat: the token will not get better on its own. Alert whoever operates it.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` CredentialError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 403`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 404`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 409`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 422`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Final: repeating gives the same result. Fix the call.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` RequestError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`details`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 429`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TemporaryError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Retry-After'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`??`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 60`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // 5xx: server failure. A retry with increasing backoff is worth it.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TemporaryError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`16`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.ok:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.status_code `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 204`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.json().get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` error `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.json().get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {}) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.content `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.status_code `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 401`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CredentialError(error.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), error.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.status_code `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`403`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`404`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`409`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`422`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` RequestError(error.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), error.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), error.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res.status_code `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 429`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TemporaryError(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(res.headers.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Retry-After\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`60`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)))`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` TemporaryError(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Always record the `,_jsx(_components.code,{children:`error.code`}),` in your log, together with the method and path you called. With\nthat information, support can locate the request, and it all fits on one line.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Errors","sidebarTitle":"Errors","description":"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.","href":"/en/essentials/erros"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication and permission codes","slug":"authentication-and-permission-codes","depth":2,"children":[]},{"title":"Request codes","slug":"request-codes","depth":2,"children":[]},{"title":"Business-rule codes","slug":"business-rule-codes","depth":2,"children":[]},{"title":"How to handle each type of error","slug":"how-to-handle-each-type-of-error","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"connectacx","siteName":"Connecta DESK","title":"Errors - Connecta DESK","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/essentials/erros","matchLevel":1},"en":{"href":"/en/essentials/erros","matchLevel":0}}},"lastModified":"2026-11-28T00:35:02.802Z","originalFileLocation":"en/essentials/erros.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Connecta DESK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Errors - Connecta DESK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Connecta DESK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.connectadesk.com/en/essentials/erros\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://connectacx.mintlify.site/_mintlify/api/og/v2?division=Essentials\u0026amp;title=Errors\u0026amp;description=Format+of+Connecta+DESK+API+error+responses%2C+the+table+of+ERR_+codes+and+how+to+handle+each+type+of+failure+in+your+integration.\u0026amp;theme=ec01e76e0b1dcb7d20511983\u0026amp;signature=75792444817aa2ab0fd7cee630e49734b8ad609a1a7c6b0b9bf17e0d18491223\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Errors - Connecta DESK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://connectacx.mintlify.site/_mintlify/api/og/v2?division=Essentials\u0026amp;title=Errors\u0026amp;description=Format+of+Connecta+DESK+API+error+responses%2C+the+table+of+ERR_+codes+and+how+to+handle+each+type+of+failure+in+your+integration.\u0026amp;theme=ec01e76e0b1dcb7d20511983\u0026amp;signature=75792444817aa2ab0fd7cee630e49734b8ad609a1a7c6b0b9bf17e0d18491223\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/connectacx/mVa3BfMA-rex3vQM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Connecta DESK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6600CB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.connectadesk.com/en/essentials/erros\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/essentials/erros.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.connectadesk.com/en/essentials/erros\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.connectadesk.com/essentials/erros\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.connectadesk.com/essentials/erros\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.connectadesk.com/#organization\",\"name\":\"Connecta DESK\",\"url\":\"https://docs.connectadesk.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/connectacx/Zc_LQh8Yyx38544Q/logo/light.png?fit=max\u0026auto=format\u0026n=Zc_LQh8Yyx38544Q\u0026q=85\u0026s=85d9b71a8b3fdb4f14dba571d7c0299c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.connectadesk.com#website\",\"name\":\"Connecta DESK\",\"url\":\"https://docs.connectadesk.com\",\"publisher\":{\"@id\":\"https://docs.connectadesk.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.connectadesk.com/en/essentials/erros#webpage\",\"url\":\"https://docs.connectadesk.com/en/essentials/erros\",\"name\":\"Errors\",\"description\":\"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.\",\"dateModified\":\"2026-11-28T00:35:02.802Z\",\"isPartOf\":{\"@id\":\"https://docs.connectadesk.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.connectadesk.com/en/essentials/erros#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.connectadesk.com/en/essentials/erros#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Essentials\",\"item\":\"https://docs.connectadesk.com/en/essentials/permissoes\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Errors\",\"item\":\"https://docs.connectadesk.com/en/essentials/erros\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.connectadesk.com/en/essentials/erros#article\",\"headline\":\"Errors\",\"name\":\"Errors\",\"description\":\"Format of Connecta DESK API error responses, the table of ERR_ codes and how to handle each type of failure in your integration.\",\"url\":\"https://docs.connectadesk.com/en/essentials/erros\",\"mainEntityOfPage\":{\"@id\":\"https://docs.connectadesk.com/en/essentials/erros#webpage\"},\"dateModified\":\"2026-11-28T00:35:02.802Z\",\"publisher\":{\"@id\":\"https://docs.connectadesk.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.connectadesk.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Connecta DESK\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Connecta DESK\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/essentials/erros.md","siteName":"Connecta DESK","nav":{"global":null,"languages":[{"language":"pt-BR","default":true,"navbar":{"primary":{"type":"button","label":"Acessar plataforma","href":"https://app.connectadesk.com"}},"pages":[{"title":"pt-BR","href":"/essentials/erros"}]},{"language":"en","navbar":{"primary":{"type":"button","label":"Access platform","href":"https://app.connectadesk.com"}},"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Connecta DESK API","sidebarTitle":"Introduction","href":"/en/introduction"},{"title":"First call","sidebarTitle":"First call","href":"/en/quickstart"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/en/authentication"}]},{"group":"Essentials","pages":[{"title":"Token permissions","sidebarTitle":"Permissions","href":"/en/essentials/permissoes"},{"title":"Requests and responses","sidebarTitle":"Requests and responses","href":"/en/essentials/requisicoes-e-respostas"},{"title":"Pagination","sidebarTitle":"Pagination","href":"/en/essentials/paginacao"},{"title":"Idempotency","sidebarTitle":"Idempotency","href":"/en/essentials/idempotencia"},{"title":"Usage limits","sidebarTitle":"Usage limits","description":"Request limit per company on the Connecta DESK API: RateLimit headers, the 429 response and what to do when you reach the limit.","href":"/en/essentials/limites-de-uso"},{"title":"Errors","sidebarTitle":"Errors","href":"/en/essentials/erros"}]},{"group":"Guides","pages":[{"title":"Building an integration","sidebarTitle":"Building an integration","description":"A complete example with the Connecta DESK API, from the e-commerce order to the registered contact, the message sent and the card on the CRM board.","href":"/en/guides/primeira-integracao"},{"title":"Sending messages","sidebarTitle":"Sending messages","href":"/en/guides/enviar-mensagens"},{"title":"Webchat","sidebarTitle":"Webchat","href":"/en/guides/webchat"},{"title":"Token security","sidebarTitle":"Token security","href":"/en/guides/seguranca-do-token"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/en/api-reference/introduction"}]}]}]},"basePath":"","title":"Errors - Connecta DESK","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}