Rate-limited responses include a Retry-After header (seconds). Back off and retry rather than looping immediately.
otp_send_failed, template_create_failed, and send_failed wrap the real downstream error text in message — read it, since the specific reason (e.g. “Session window closed. Use a template.”) is usually more actionable than the generic code.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Tanvik API","description":"Developer documentation for the Tanvik WhatsApp API — OTP, templates, messaging, and webhooks for Indian SMBs.","colors":{"primary":"#5B5BD6","light":"#7B7BE6","dark":"#5B5BD6"},"logo":{"light":"https://mintcdn.com/tanvik/RWAPbR-5OLmn_ZEl/logo/light.svg?fit=max\u0026auto=format\u0026n=RWAPbR-5OLmn_ZEl\u0026q=85\u0026s=2db10f1077984e763a030bc91a9f7205","dark":"https://mintcdn.com/tanvik/RWAPbR-5OLmn_ZEl/logo/dark.svg?fit=max\u0026auto=format\u0026n=RWAPbR-5OLmn_ZEl\u0026q=85\u0026s=a78c160363b3d474f3f070308d6495f3"},"favicon":"https://mintcdn.com/tanvik/RWAPbR-5OLmn_ZEl/favicon.svg?fit=max\u0026auto=format\u0026n=RWAPbR-5OLmn_ZEl\u0026q=85\u0026s=753c878c1efa64165985bf29fb95ece8","navbar":{"links":[{"href":"mailto:support@tanvik.io","label":"Support"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.tanvik.io"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tanvik","hasAudioNarration":false,"actualSubdomain":"tanvik","customDomains":["developers.tanvik.io"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-tanvik-d16e69fd","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"8610e498-b790-4b10-9192-b6643ee7c7c6","liveDeploymentHistoryId":"6a58846d6a3d1c512ad87086","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95bfed5a6abdcaffc7fcc:success","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"WhatsApp","count":6},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Claude / MCP","count":4}]},"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":"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":"llms-txt-v2","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":"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":"vite-origin","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":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"errors","slug":"/errors","pageMetadata":{"title":"Errors","description":"Error codes, formats, and how to handle them","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: \"Error codes, formats, and how to handle them\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Tanvik API uses conventional HTTP status codes and a consistent JSON error body so failures are easy to handle programmatically.`}),`\n`,_jsx(Heading,{level:`2`,id:`error-response-shape`,children:`Error response shape`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,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:`\"invalid_request\"`}),_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:`\"to is required\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`})]}),`\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(Heading,{level:`2`,id:`http-status-codes`,children:`HTTP status codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`200`})}),_jsx(_components.td,{children:`Request succeeded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Malformed request — check required fields and formats`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing, invalid, or revoked API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Key is valid but the account’s plan doesn’t include this feature`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Resource (message, template, webhook) not found`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`Request understood but rejected downstream (WhatsApp, OTP logic)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit exceeded — 120 requests/minute per key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Something went wrong on our end`})]})]})]}),`\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:`Status`}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`missing_api_key`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`Authorization`}),` header sent`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_api_key`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Key is malformed, doesn’t match any account, or was revoked`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`feature_not_enabled`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Your plan doesn’t include API access`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limited`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[`More than 120 requests/minute on this key — see `,_jsx(_components.code,{children:`Retry-After`}),` header`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`A required field is missing or malformed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`no_default_otp_template`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[`No approved authentication-category template exists; create one or pass `,_jsx(_components.code,{children:`template`}),` explicitly`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`otp_send_failed`})}),_jsx(_components.td,{children:`varies`}),_jsxs(_components.td,{children:[`WhatsApp/OTP send failed downstream — `,_jsx(_components.code,{children:`message`}),` has the underlying reason`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`otp_expired`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`The OTP code has passed its validity window`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`otp_max_attempts`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsxs(_components.td,{children:[`Too many incorrect verification attempts for this `,_jsx(_components.code,{children:`otp_id`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`otp_not_found`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`No pending OTP matches the given `,_jsx(_components.code,{children:`otp_id`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`otp_verify_failed`})}),_jsx(_components.td,{children:`varies`}),_jsx(_components.td,{children:`Unexpected failure verifying the code`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`template_create_failed`})}),_jsx(_components.td,{children:`varies`}),_jsxs(_components.td,{children:[`Template submission was rejected — `,_jsx(_components.code,{children:`message`}),` includes the reason`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`template_not_found`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`No template with that `,_jsx(_components.code,{children:`id`}),` on this account`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`send_failed`})}),_jsx(_components.td,{children:`varies`}),_jsxs(_components.td,{children:[`Message send failed — check `,_jsx(_components.code,{children:`message`}),` for the specific reason (e.g. closed session window, insufficient wallet balance)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`too_many_recipients`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`More than 100 recipients in one `,_jsx(_components.code,{children:`/v1/messages`}),` call`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message_not_found`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`No message with that `,_jsx(_components.code,{children:`id`}),` on this account`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`webhook_not_found`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`No webhook with that `,_jsx(_components.code,{children:`id`}),` on this account`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`No matching route for this method/path`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`internal_error`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Unexpected server-side failure`})]})]})]}),`\n`,_jsxs(Heading,{level:`2`,id:`handling-429s`,children:[`Handling `,_jsx(_components.code,{children:`429`}),`s`]}),`\n`,_jsxs(_components.p,{children:[`Rate-limited responses include a `,_jsx(_components.code,{children:`Retry-After`}),` header (seconds). Back off and retry rather than looping immediately.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`otp_send_failed`}),`, `,_jsx(_components.code,{children:`template_create_failed`}),`, and `,_jsx(_components.code,{children:`send_failed`}),` wrap the real downstream error text in `,_jsx(_components.code,{children:`message`}),` — read it, since the specific reason (e.g. “Session window closed. Use a template.”) is usually more actionable than the generic code.`]})})]})}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","description":"Error codes, formats, and how to handle them","href":"/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Error response shape","slug":"error-response-shape","depth":2,"children":[]},{"title":"HTTP status codes","slug":"http-status-codes","depth":2,"children":[]},{"title":"Error codes","slug":"error-codes","depth":2,"children":[]},{"title":"Handling 429s","slug":"handling-429s","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"tanvik","siteName":"Tanvik API","title":"Errors - Tanvik API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-13T18:45:11.813Z","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=\"Error codes, formats, and how to handle them\">\u003cmeta data-mint-head name=\"application-name\" content=\"Tanvik 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/tanvik/1HWV1YRABrv5EiBo/_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/tanvik/1HWV1YRABrv5EiBo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tanvik/1HWV1YRABrv5EiBo/_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/tanvik/1HWV1YRABrv5EiBo/_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/tanvik/1HWV1YRABrv5EiBo/_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/tanvik/1HWV1YRABrv5EiBo/_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/tanvik/1HWV1YRABrv5EiBo/_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/tanvik/1HWV1YRABrv5EiBo/_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/tanvik/1HWV1YRABrv5EiBo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Errors - Tanvik API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Error codes, formats, and how to handle them\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Tanvik API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.tanvik.io/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tanvik.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Errors\u0026amp;description=Error+codes%2C+formats%2C+and+how+to+handle+them\u0026amp;theme=371f45a3d2ded2d94e14518c\u0026amp;signature=a94f28548788b2f35906a759e349ce1f4a40eee9aa96d49ae7f658a2a6bbcbb8\">\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 - Tanvik API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Error codes, formats, and how to handle them\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tanvik.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Errors\u0026amp;description=Error+codes%2C+formats%2C+and+how+to+handle+them\u0026amp;theme=371f45a3d2ded2d94e14518c\u0026amp;signature=a94f28548788b2f35906a759e349ce1f4a40eee9aa96d49ae7f658a2a6bbcbb8\">\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/tanvik/1HWV1YRABrv5EiBo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Tanvik API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B5BD6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.tanvik.io/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://developers.tanvik.io/#organization\",\"name\":\"Tanvik API\",\"url\":\"https://developers.tanvik.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tanvik/RWAPbR-5OLmn_ZEl/logo/light.svg?fit=max\u0026auto=format\u0026n=RWAPbR-5OLmn_ZEl\u0026q=85\u0026s=2db10f1077984e763a030bc91a9f7205\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.tanvik.io#website\",\"name\":\"Tanvik API\",\"url\":\"https://developers.tanvik.io\",\"publisher\":{\"@id\":\"https://developers.tanvik.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.tanvik.io/errors#webpage\",\"url\":\"https://developers.tanvik.io/errors\",\"name\":\"Errors\",\"description\":\"Error codes, formats, and how to handle them\",\"dateModified\":\"2026-07-13T18:45:11.813Z\",\"isPartOf\":{\"@id\":\"https://developers.tanvik.io#website\"},\"breadcrumb\":{\"@id\":\"https://developers.tanvik.io/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.tanvik.io/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://developers.tanvik.io/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Errors\",\"item\":\"https://developers.tanvik.io/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developers.tanvik.io/errors#article\",\"headline\":\"Errors\",\"name\":\"Errors\",\"description\":\"Error codes, formats, and how to handle them\",\"url\":\"https://developers.tanvik.io/errors\",\"mainEntityOfPage\":{\"@id\":\"https://developers.tanvik.io/errors#webpage\"},\"dateModified\":\"2026-07-13T18:45:11.813Z\",\"publisher\":{\"@id\":\"https://developers.tanvik.io/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.tanvik.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Tanvik API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Tanvik API","nav":{"global":null,"groups":[{"group":"Guides","pages":[{"title":"Introduction","href":"/index"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","description":"Authenticate your API requests with a Tanvik API key","href":"/authentication"},{"title":"Errors","href":"/errors"},{"title":"Webhooks","sidebarTitle":"Webhooks","description":"How Tanvik delivers events to your server","href":"/webhooks-overview"}]},{"group":"WhatsApp","pages":[{"title":"Send OTP","href":"/whatsapp/send-otp"},{"title":"Verify OTP","href":"/whatsapp/verify-otp"},{"title":"Create Templates","href":"/whatsapp/create-templates"},{"title":"Send Templates","href":"/whatsapp/send-templates"},{"title":"Conversation API","href":"/whatsapp/messages"},{"title":"WhatsApp Webhook","href":"/whatsapp/webhook"}]},{"group":"Claude / MCP","icon":"robot","pages":[{"title":"Overview","sidebarTitle":"Overview","icon":"robot","href":"/mcp/overview"},{"title":"Connect Claude","sidebarTitle":"Connect Claude","icon":"plug","href":"/mcp/connect"},{"title":"Permissions","sidebarTitle":"Permissions","icon":"toggle-on","href":"/mcp/permissions"},{"title":"Available tools","sidebarTitle":"Available tools","icon":"screwdriver-wrench","href":"/mcp/tools"}]}]},"basePath":"","title":"Errors - Tanvik API","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":[],"chunks":[]}