Repeat a write safely with the Idempotency-Key header.
Writes that cost money, create durable resources, or reach a carrier require an Idempotency-Key header: a unique string of 1 to 128 visible ASCII characters for the write you intend.
If a network timeout or 503 leaves you unsure whether the request succeeded, send the exact same request again with the same Idempotency-Key:
Same key, same request — returns the original result, and the work happens once.
Same key, different request — returns 409 idempotency_conflict.
Generate a fresh UUIDv4 for each new logical write, persist it alongside your local intent before calling the API, and reuse that exact key on retries.
Operations that require Idempotency-Key
The API reference marks Idempotency-Key on every endpoint that accepts it. All 18 live operations that require it:
Area
Operations
Messaging & media
POST /messages, POST /media
Voice
POST /calls
Numbers & 10DLC
POST /numbers, POST /numbers/orders, POST /brands, PATCH /brands/{brand_id}, POST /campaigns
Company resources
POST /contacts, POST /tags, POST /variables
Accounts & billing
POST /accounts, POST /admin/subaccounts, POST /admin/keys, POST /admin/billing/top_ups
Webhooks
POST /admin/webhooks, POST /admin/webhooks/{webhook_id}/rotate_secret, POST /admin/webhooks/{webhook_id}/deliveries/{delivery_id}/replay
Resource-specific behaviour
Resource
Replay behaviour
Messages & calls
Repeating a key produces one message or one call, even across this API and the Twilio-compatible API under /t.
Brands & campaigns
Replaying returns the original registration and charges once. A different payload under the same key answers 409 idempotency_conflict.
Number purchases
Purchases are keyed by account and phone number. Repeating a purchase for the same number — under any key — joins the first order and never places a second.
Top-ups
Repeating a key with the same amount returns the original checkout.
API keys
First success returns 201 with secret. An identical retry returns 200 without secret. After revocation, a retry returns 404.
Webhook endpoints
First success returns 201 with the signing secret. An identical retry returns 200 without secret.
Media uploads
Repeating the same key with the same MIME type and bytes returns the same upload while live. A different file returns 409, and an expired or deleted upload returns 404.
Contacts, tags & variables
Repeating the same key and body returns the original created record, even if it was later edited or deleted.
{"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":"idempotency","slug":"/idempotency","pageMetadata":{"title":"Idempotency","description":"Repeat a write safely with the Idempotency-Key header.","href":"/idempotency"},"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: \"Repeat a write safely with the Idempotency-Key header.\"\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,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Writes that cost money, create durable resources, or reach a carrier require an `,_jsx(_components.code,{children:`Idempotency-Key`}),` header: a unique string of 1 to 128 visible ASCII characters for the write you intend.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://omni-api.sendblue.com/messages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SENDBLUE_KEY_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SENDBLUE_KEY_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: 7c1e0e0a-2f3b-4c55-9a43-0a4f5f0f2b11\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"to\":\"+14155550101\",\"from\":\"+14155550100\",\"body\":\"Your code is 482913\"}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If a network timeout or `,_jsx(_components.code,{children:`503`}),` leaves you unsure whether the request succeeded, send the exact same request again with the same `,_jsx(_components.code,{children:`Idempotency-Key`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Same key, same request`}),` — returns the original result, and the work happens once.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Same key, different request`}),` — returns `,_jsx(_components.code,{children:`409 idempotency_conflict`}),`.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Generate a fresh UUIDv4 for each new logical write, persist it alongside your local intent before calling the API, and reuse that exact key on retries.`})}),`\n`,_jsxs(Heading,{level:`2`,id:`operations-that-require-idempotency-key`,children:[`Operations that require `,_jsx(_components.code,{children:`Idempotency-Key`})]}),`\n`,_jsxs(_components.p,{children:[`The API reference marks `,_jsx(_components.code,{children:`Idempotency-Key`}),` on every endpoint that accepts it. All 18 live operations that require it:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Area`}),_jsx(_components.th,{children:`Operations`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Messaging \u0026 media`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /messages`}),`, `,_jsx(_components.code,{children:`POST /media`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Voice`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /calls`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Numbers \u0026 10DLC`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /numbers`}),`, `,_jsx(_components.code,{children:`POST /numbers/orders`}),`, `,_jsx(_components.code,{children:`POST /brands`}),`, `,_jsx(_components.code,{children:`PATCH /brands/{brand_id}`}),`, `,_jsx(_components.code,{children:`POST /campaigns`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Company resources`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /contacts`}),`, `,_jsx(_components.code,{children:`POST /tags`}),`, `,_jsx(_components.code,{children:`POST /variables`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Accounts \u0026 billing`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /accounts`}),`, `,_jsx(_components.code,{children:`POST /admin/subaccounts`}),`, `,_jsx(_components.code,{children:`POST /admin/keys`}),`, `,_jsx(_components.code,{children:`POST /admin/billing/top_ups`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Webhooks`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`POST /admin/webhooks`}),`, `,_jsx(_components.code,{children:`POST /admin/webhooks/{webhook_id}/rotate_secret`}),`, `,_jsx(_components.code,{children:`POST /admin/webhooks/{webhook_id}/deliveries/{delivery_id}/replay`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`resource-specific-behaviour`,children:`Resource-specific behaviour`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Resource`}),_jsx(_components.th,{children:`Replay behaviour`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Messages \u0026 calls`})}),_jsxs(_components.td,{children:[`Repeating a key produces one message or one call, even across this API and the Twilio-compatible API under `,_jsx(_components.code,{children:`/t`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Brands \u0026 campaigns`})}),_jsxs(_components.td,{children:[`Replaying returns the original registration and charges once. A different payload under the same key answers `,_jsx(_components.code,{children:`409 idempotency_conflict`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Number purchases`})}),_jsx(_components.td,{children:`Purchases are keyed by account and phone number. Repeating a purchase for the same number — under any key — joins the first order and never places a second.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Top-ups`})}),_jsx(_components.td,{children:`Repeating a key with the same amount returns the original checkout.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`API keys`})}),_jsxs(_components.td,{children:[`First success returns `,_jsx(_components.code,{children:`201`}),` with `,_jsx(_components.code,{children:`secret`}),`. An identical retry returns `,_jsx(_components.code,{children:`200`}),` without `,_jsx(_components.code,{children:`secret`}),`. After revocation, a retry returns `,_jsx(_components.code,{children:`404`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Webhook endpoints`})}),_jsxs(_components.td,{children:[`First success returns `,_jsx(_components.code,{children:`201`}),` with the signing `,_jsx(_components.code,{children:`secret`}),`. An identical retry returns `,_jsx(_components.code,{children:`200`}),` without `,_jsx(_components.code,{children:`secret`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Media uploads`})}),_jsxs(_components.td,{children:[`Repeating the same key with the same MIME type and bytes returns the same upload while live. A different file returns `,_jsx(_components.code,{children:`409`}),`, and an expired or deleted upload returns `,_jsx(_components.code,{children:`404`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Contacts, tags \u0026 variables`})}),_jsx(_components.td,{children:`Repeating the same key and body returns the original created record, even if it was later edited or deleted.`})]})]})]})]})}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":"Idempotency","description":"Repeat a write safely with the Idempotency-Key header.","href":"/idempotency"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Operations that require Idempotency-Key","slug":"operations-that-require-idempotency-key","depth":2,"children":[]},{"title":"Resource-specific behaviour","slug":"resource-specific-behaviour","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sendblue","siteName":"Sendblue Omni API","title":"Idempotency - Sendblue Omni API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T18:33:07.458Z","originalFileLocation":"idempotency.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=\"Repeat a write safely with the Idempotency-Key header.\">\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=\"Idempotency - Sendblue Omni API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Repeat a write safely with the Idempotency-Key header.\">\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/idempotency\">\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=Idempotency\u0026amp;description=Repeat+a+write+safely+with+the+Idempotency-Key+header.\u0026amp;theme=f3b8d66fbc8a7ce35ce2c795\u0026amp;signature=d1cd3c27cc144ddbf453a2d0bab0f1fe5a288f297bdba4df26772f0d54e944e7\">\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=\"Idempotency - Sendblue Omni API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Repeat a write safely with the Idempotency-Key header.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sendblue.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Idempotency\u0026amp;description=Repeat+a+write+safely+with+the+Idempotency-Key+header.\u0026amp;theme=f3b8d66fbc8a7ce35ce2c795\u0026amp;signature=d1cd3c27cc144ddbf453a2d0bab0f1fe5a288f297bdba4df26772f0d54e944e7\">\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/idempotency\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/idempotency.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/idempotency#webpage\",\"url\":\"https://omni-docs.sendblue.com/idempotency\",\"name\":\"Idempotency\",\"description\":\"Repeat a write safely with the Idempotency-Key header.\",\"dateModified\":\"2026-11-24T18:33:07.458Z\",\"isPartOf\":{\"@id\":\"https://omni-docs.sendblue.com#website\"},\"breadcrumb\":{\"@id\":\"https://omni-docs.sendblue.com/idempotency#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://omni-docs.sendblue.com/idempotency#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sendblue Omni API\",\"item\":\"https://omni-docs.sendblue.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Idempotency\",\"item\":\"https://omni-docs.sendblue.com/idempotency\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://omni-docs.sendblue.com/idempotency#article\",\"headline\":\"Idempotency\",\"name\":\"Idempotency\",\"description\":\"Repeat a write safely with the Idempotency-Key header.\",\"url\":\"https://omni-docs.sendblue.com/idempotency\",\"mainEntityOfPage\":{\"@id\":\"https://omni-docs.sendblue.com/idempotency#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":"/idempotency.md","siteName":"Sendblue Omni API","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Sendblue Omni API","href":""},{"title":"Authentication","description":"One credential per request, sent as a bearer token or key-pair headers.","href":"/authentication"}]},{"group":"Core concepts","pages":[{"title":"Idempotency","href":"/idempotency"},{"title":"Errors","description":"One consistent JSON error shape for every non-2xx response.","href":"/errors"},{"title":"Pagination","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":"Idempotency - Sendblue Omni API","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}