One consistent JSON error shape for every non-2xx response.
Every error response uses the same envelope:
{ "error": { "code": "unprocessable", "message": "The sender cannot send this message.", "details": { "reason": "sender_unavailable" } }}
code is stable. Branch your error handling on it.
message is human-readable and may change. It never echoes values you sent.
details is optional, machine-readable context.
Error codes
Code
HTTP
Meaning
invalid_request
400
Malformed JSON, unknown or mistyped field, or invalid parameter/header.
unauthenticated
401
Missing credential, or one that failed verification.
insufficient_funds
402
Balance cannot cover the price, or debt is outstanding.
forbidden
403
The account, resource, or deployment refuses this operation.
permission_denied
403
Credential lacks the permission named in details.required_permission.
not_found
404
No such route, or no such resource in this account.
method_not_allowed
405
The route exists, but does not accept this HTTP method.
conflict
409
The resource is not in a state that allows the change.
idempotency_conflict
409
The Idempotency-Key was already used for a different request.
payload_too_large
413
Request body exceeds the route limit.
unsupported_media_type
415
Request body is not of a media type the route accepts.
unprocessable
422
Well-formed request that cannot be carried out; details.reason explains why.
unsupported
422
The field or value is defined in the contract but not available yet.
rate_limited
429
Too many requests. Wait Retry-After seconds.
internal
500
Unexpected server failure.
unavailable
503
A dependency is unavailable or the request timed out. Safe to retry.
upstream_unavailable
503
A backing resource service is unavailable. Wait Retry-After seconds.
write_outcome_unknown
503
The write may have committed. Follow details.recovery (no Retry-After).
Details fields
Field
Meaning
field
The request member, query parameter, or header at fault.
reason
Narrows unprocessable and some forbidden/conflict responses, such as sender_unavailable, recipient_opted_out, price_ceiling, number_unavailable, campaign_not_approved, or registered_number.
required_permission
The missing grant on a 403 permission_denied response.
recovery
Required next step after 503 write_outcome_unknown.
Handling write_outcome_unknown
503 write_outcome_unknown means the write may already have committed. The API never retries it automatically. Follow details.recovery before issuing another write.
details.recovery
What to do
retry_same_idempotency_key
Repeat the create request with the original Idempotency-Key and identical body.
read_resource
Read the resource and compare it with your intended state. For a deletion, 404 confirms it is gone.
reconcile_tag_membership
Read the tag list and affected contacts, and settle any contacts that did not move before making another change.
Retrying
429 or 503 with Retry-After: wait at least that many seconds, then retry. Keep the same Idempotency-Key on writes.
503 unavailable without Retry-After: retry with exponential backoff.
402 insufficient_funds: add funds to your balance, then repeat.
Other 4xx responses: fix the request before retrying; sending the same request unchanged will fail again.
Every response carries a Request-Id header. Include it when contacting Sendblue support.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sendblue Omni API","description":"Messaging and calling for US numbers: SMS, MMS, iMessage, voice, recordings and webhooks.","colors":{"primary":"#006CCB","light":"#5A98F3","dark":"#005CAE"},"logo":{"light":"https://mintcdn.com/sendblue/rCD5G2VrpnzTDp2g/logo/sendblue-mark.svg?fit=max\u0026auto=format\u0026n=rCD5G2VrpnzTDp2g\u0026q=85\u0026s=9dbf898427837535b267ee768c3e8f06","dark":"https://mintcdn.com/sendblue/rCD5G2VrpnzTDp2g/logo/sendblue-mark.svg?fit=max\u0026auto=format\u0026n=rCD5G2VrpnzTDp2g\u0026q=85\u0026s=9dbf898427837535b267ee768c3e8f06","href":"/"},"favicon":"https://mintcdn.com/sendblue/rCD5G2VrpnzTDp2g/logo/sendblue-mark.svg?fit=max\u0026auto=format\u0026n=rCD5G2VrpnzTDp2g\u0026q=85\u0026s=9dbf898427837535b267ee768c3e8f06","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","javascript","python"],"prefill":true}},"background":{"color":{"dark":"#0D1014"}},"navbar":{"links":[{"href":"https://github.com/sendblue-api/omni-docs","label":"GitHub"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.sendblue.com"}},"footer":{"socials":{"github":"https://github.com/sendblue-api/omni-docs","website":"https://www.sendblue.com"},"links":[{"header":"Guides","items":[{"label":"Overview","href":"/"},{"label":"Authentication","href":"/authentication"},{"label":"Webhooks","href":"/webhooks"},{"label":"Errors","href":"/errors"}]},{"header":"Quickstarts","items":[{"label":"Send an SMS","href":"/quickstart/send-sms"},{"label":"Receive an SMS","href":"/quickstart/receive-sms"},{"label":"Place and receive a call","href":"/quickstart/calls"},{"label":"Upload and send media","href":"/quickstart/media"}]},{"header":"Sendblue","items":[{"label":"Website","href":"https://www.sendblue.com"},{"label":"Dashboard","href":"https://dashboard.sendblue.com"},{"label":"GitHub","href":"https://github.com/sendblue-api/omni-docs"}]}]},"search":{"prompt":"Search guides and endpoints..."},"seo":{"metatags":{"canonical":"https://omni-docs.sendblue.com"}},"fonts":{"heading":{"family":"Sendblue Aeonik","weight":500,"source":"fonts/aeonik-medium.woff2","format":"woff2"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":false},"contextual":{"options":["copy","view","download-spec","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sendblue","hasAudioNarration":false,"actualSubdomain":"sendblue","customDomains":[],"gitSource":{"type":"github","owner":"sendblue-api","repo":"omni-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b05d820ea158d31aef3b6a9"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b05d852ea158d31aef3bbc0","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"API reference","count":86},{"language":"default","tag":"admin","count":26},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"numbers","count":13},{"language":"default","tag":"Quickstarts","count":7},{"language":"default","tag":"campaigns","count":5},{"language":"default","tag":"contacts","count":5},{"language":"default","tag":"messages","count":5},{"language":"default","tag":"tags","count":5},{"language":"default","tag":"variables","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"errors","slug":"/errors","pageMetadata":{"title":"Errors","description":"One consistent JSON error shape for every non-2xx response.","href":"/errors"},"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: \"One consistent JSON error shape for every non-2xx response.\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Every error response uses the same envelope:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,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:`\"unprocessable\"`}),_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:`\"The sender cannot send this message.\"`}),_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:` \"details\"`}),_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:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sender_unavailable\"`})]}),`\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(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`code`})}),` is stable. Branch your error handling on it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`message`})}),` is human-readable and may change. It never echoes values you sent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`details`})}),` is optional, machine-readable context.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Malformed JSON, unknown or mistyped field, or invalid parameter/header.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unauthenticated`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing credential, or one that failed verification.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_funds`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:`Balance cannot cover the price, or debt is outstanding.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`forbidden`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`The account, resource, or deployment refuses this operation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`permission_denied`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsxs(_components.td,{children:[`Credential lacks the permission named in `,_jsx(_components.code,{children:`details.required_permission`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`No such route, or no such resource in this account.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`method_not_allowed`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`405`})}),_jsx(_components.td,{children:`The route exists, but does not accept this HTTP method.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`conflict`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`The resource is not in a state that allows the change.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`idempotency_conflict`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Idempotency-Key`}),` was already used for a different request.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payload_too_large`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`413`})}),_jsx(_components.td,{children:`Request body exceeds the route limit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported_media_type`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`415`})}),_jsx(_components.td,{children:`Request body is not of a media type the route accepts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unprocessable`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`Well-formed request that cannot be carried out; `,_jsx(_components.code,{children:`details.reason`}),` explains why.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`The field or value is defined in the contract but not available yet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limited`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsxs(_components.td,{children:[`Too many requests. Wait `,_jsx(_components.code,{children:`Retry-After`}),` seconds.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`internal`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Unexpected server failure.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unavailable`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`A dependency is unavailable or the request timed out. Safe to retry.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`upstream_unavailable`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsxs(_components.td,{children:[`A backing resource service is unavailable. Wait `,_jsx(_components.code,{children:`Retry-After`}),` seconds.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`write_outcome_unknown`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsxs(_components.td,{children:[`The write may have committed. Follow `,_jsx(_components.code,{children:`details.recovery`}),` (no `,_jsx(_components.code,{children:`Retry-After`}),`).`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`details-fields`,children:`Details fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`field`})}),_jsx(_components.td,{children:`The request member, query parameter, or header at fault.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsxs(_components.td,{children:[`Narrows `,_jsx(_components.code,{children:`unprocessable`}),` and some `,_jsx(_components.code,{children:`forbidden`}),`/`,_jsx(_components.code,{children:`conflict`}),` responses, such as `,_jsx(_components.code,{children:`sender_unavailable`}),`, `,_jsx(_components.code,{children:`recipient_opted_out`}),`, `,_jsx(_components.code,{children:`price_ceiling`}),`, `,_jsx(_components.code,{children:`number_unavailable`}),`, `,_jsx(_components.code,{children:`campaign_not_approved`}),`, or `,_jsx(_components.code,{children:`registered_number`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`required_permission`})}),_jsxs(_components.td,{children:[`The missing grant on a `,_jsx(_components.code,{children:`403 permission_denied`}),` response.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`recovery`})}),_jsxs(_components.td,{children:[`Required next step after `,_jsx(_components.code,{children:`503 write_outcome_unknown`}),`.`]})]})]})]}),`\n`,_jsxs(Heading,{level:`2`,id:`handling-write_outcome_unknown`,children:[`Handling `,_jsx(_components.code,{children:`write_outcome_unknown`})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`503 write_outcome_unknown`}),` means the write may already have committed. The API never retries it automatically. Follow `,_jsx(_components.code,{children:`details.recovery`}),` before issuing another write.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`details.recovery`})}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`retry_same_idempotency_key`})}),_jsxs(_components.td,{children:[`Repeat the create request with the original `,_jsx(_components.code,{children:`Idempotency-Key`}),` and identical body.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`read_resource`})}),_jsxs(_components.td,{children:[`Read the resource and compare it with your intended state. For a deletion, `,_jsx(_components.code,{children:`404`}),` confirms it is gone.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reconcile_tag_membership`})}),_jsx(_components.td,{children:`Read the tag list and affected contacts, and settle any contacts that did not move before making another change.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`retrying`,children:`Retrying`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`429`}),` or `,_jsx(_components.code,{children:`503`}),` with `,_jsx(_components.code,{children:`Retry-After`}),`:`]}),` wait at least that many seconds, then retry. Keep the same `,_jsx(_components.code,{children:`Idempotency-Key`}),` on writes.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`503 unavailable`}),` without `,_jsx(_components.code,{children:`Retry-After`}),`:`]}),` retry with exponential backoff.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`402 insufficient_funds`}),`:`]}),` add funds to your balance, then repeat.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Other `,_jsx(_components.code,{children:`4xx`}),` responses:`]}),` fix the request before retrying; sending the same request unchanged will fail again.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Every response carries a `,_jsx(_components.code,{children:`Request-Id`}),` header. Include it when contacting Sendblue support.`]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Errors","description":"One consistent JSON error shape for every non-2xx response.","href":"/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Error codes","slug":"error-codes","depth":2,"children":[]},{"title":"Details fields","slug":"details-fields","depth":2,"children":[]},{"title":"Handling write_outcome_unknown","slug":"handling-write_outcome_unknown","depth":2,"children":[]},{"title":"Retrying","slug":"retrying","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sendblue","siteName":"Sendblue Omni API","title":"Errors - Sendblue Omni API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T18:33:07.458Z","originalFileLocation":"errors.mdx"},"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=\"One consistent JSON error shape for every non-2xx response.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sendblue Omni API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sendblue/O3h-IGQMpGrY9Bhr/_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/sendblue/O3h-IGQMpGrY9Bhr/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sendblue/O3h-IGQMpGrY9Bhr/_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/sendblue/O3h-IGQMpGrY9Bhr/_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/sendblue/O3h-IGQMpGrY9Bhr/_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/sendblue/O3h-IGQMpGrY9Bhr/_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/sendblue/O3h-IGQMpGrY9Bhr/_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/sendblue/O3h-IGQMpGrY9Bhr/_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/sendblue/O3h-IGQMpGrY9Bhr/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Errors - Sendblue Omni API\">\u003cmeta data-mint-head property=\"og:description\" content=\"One consistent JSON error shape for every non-2xx response.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sendblue Omni API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://omni-docs.sendblue.com/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sendblue.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Errors\u0026amp;description=One+consistent+JSON+error+shape+for+every+non-2xx+response.\u0026amp;theme=f3b8d66fbc8a7ce35ce2c795\u0026amp;signature=2076fd8d7e04995f45d420d506e48102fc52dda7f902bf207801101a2865ca23\">\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 - Sendblue Omni API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One consistent JSON error shape for every non-2xx response.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sendblue.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Errors\u0026amp;description=One+consistent+JSON+error+shape+for+every+non-2xx+response.\u0026amp;theme=f3b8d66fbc8a7ce35ce2c795\u0026amp;signature=2076fd8d7e04995f45d420d506e48102fc52dda7f902bf207801101a2865ca23\">\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/sendblue/O3h-IGQMpGrY9Bhr/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sendblue Omni API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006CCB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://omni-docs.sendblue.com/errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/errors.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://omni-docs.sendblue.com/#organization\",\"name\":\"Sendblue Omni API\",\"url\":\"https://omni-docs.sendblue.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sendblue/rCD5G2VrpnzTDp2g/logo/sendblue-mark.svg?fit=max\u0026auto=format\u0026n=rCD5G2VrpnzTDp2g\u0026q=85\u0026s=9dbf898427837535b267ee768c3e8f06\"}},{\"@type\":\"WebSite\",\"@id\":\"https://omni-docs.sendblue.com#website\",\"name\":\"Sendblue Omni API\",\"url\":\"https://omni-docs.sendblue.com\",\"publisher\":{\"@id\":\"https://omni-docs.sendblue.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://omni-docs.sendblue.com/errors#webpage\",\"url\":\"https://omni-docs.sendblue.com/errors\",\"name\":\"Errors\",\"description\":\"One consistent JSON error shape for every non-2xx response.\",\"dateModified\":\"2026-11-24T18:33:07.458Z\",\"isPartOf\":{\"@id\":\"https://omni-docs.sendblue.com#website\"},\"breadcrumb\":{\"@id\":\"https://omni-docs.sendblue.com/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://omni-docs.sendblue.com/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts\",\"item\":\"https://omni-docs.sendblue.com/idempotency\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Errors\",\"item\":\"https://omni-docs.sendblue.com/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://omni-docs.sendblue.com/errors#article\",\"headline\":\"Errors\",\"name\":\"Errors\",\"description\":\"One consistent JSON error shape for every non-2xx response.\",\"url\":\"https://omni-docs.sendblue.com/errors\",\"mainEntityOfPage\":{\"@id\":\"https://omni-docs.sendblue.com/errors#webpage\"},\"dateModified\":\"2026-11-24T18:33:07.458Z\",\"publisher\":{\"@id\":\"https://omni-docs.sendblue.com/#organization\"},\"isPartOf\":{\"@id\":\"https://omni-docs.sendblue.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sendblue Omni API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sendblue Omni API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/errors.md","siteName":"Sendblue Omni API","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Sendblue Omni API","href":""},{"title":"Authentication","href":"/authentication"}]},{"group":"Core concepts","pages":[{"title":"Idempotency","description":"Repeat a write safely with the Idempotency-Key header.","href":"/idempotency"},{"title":"Errors","href":"/errors"},{"title":"Pagination","description":"List endpoints return a page of items and an opaque cursor for the next page.","href":"/pagination"},{"title":"Webhooks","href":"/webhooks"}]},{"group":"Quickstarts","pages":[{"title":"Send an SMS","href":"/quickstart/send-sms"},{"title":"Receive an SMS","href":"/quickstart/receive-sms"},{"title":"Place and receive a call","href":"/quickstart/calls"},{"title":"Record a call","href":"/quickstart/record-a-call"},{"title":"Upload and send media","href":"/quickstart/media"},{"title":"Warm handoff","href":"/quickstart/warm-handoff"},{"title":"Request iMessage numbers","href":"/quickstart/imessage-numbers"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/account/create-the-account-of-the-signed-in-persons-company"}]}]},"basePath":"","title":"Errors - Sendblue Omni API","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}