How the Heyy API reports errors and how to handle them.
The Heyy API uses conventional HTTP response codes to indicate success or failure. Response codes in the 2xx range indicate success. Codes in the 4xx range indicate a client error—the request failed given the information provided. Codes in the 5xx range indicate an error on Heyy’s servers.
Every error response uses the same structure: success set to false and a single error object with messageKey and message.
{ "success": false, "error": { "messageKey": "contact_not_found", "message": "No contact could be found for this resource identifier. Please make sure to use the correct contact ID." }}
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Heyy Help Center","colors":{"primary":"#FE3265","light":"#FE3265","dark":"#FE3265"},"logo":{"light":"https://mintcdn.com/heyy-c8bd5c9e/cOuWPkt81GyZiNr6/assets/logo.svg?fit=max\u0026auto=format\u0026n=cOuWPkt81GyZiNr6\u0026q=85\u0026s=15d8f051f3dbe3cb5e5d0241b7a50372","dark":"https://mintcdn.com/heyy-c8bd5c9e/cOuWPkt81GyZiNr6/assets/logo.svg?fit=max\u0026auto=format\u0026n=cOuWPkt81GyZiNr6\u0026q=85\u0026s=15d8f051f3dbe3cb5e5d0241b7a50372","href":"https://app.heyy.io"},"favicon":"https://mintcdn.com/heyy-c8bd5c9e/yDd_iArPMYbdrfO5/favicon.svg?fit=max\u0026auto=format\u0026n=yDd_iArPMYbdrfO5\u0026q=85\u0026s=c04875889f1d50bf2447289aa0b31f4f","api":{"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"https://wa.me/16504570123","label":"Contact support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.heyy.io"}},"footer":{"socials":{"instagram":"https://www.instagram.com/heyy_hq","linkedin":"https://www.linkedin.com/company/heyyio","x":"https://x.com/Heyy_hq","website":"https://app.heyy.io"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Satoshi","weight":700,"source":"fonts/Satoshi-Variable.woff2","format":"woff2"}},"icons":{"library":"lucide"},"integrations":{"telemetry":{"enabled":true}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"heyy-c8bd5c9e","hasAudioNarration":false,"actualSubdomain":"heyy-c8bd5c9e","customDomains":["docs.heyy.io"],"gitSource":{"type":"github","owner":"heyy-io","repo":"heyy-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ac63f1943f8b0b9e9831153","collectionId":"42fb144c-e7fc-4b9a-8074-ef745a9f2295","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ac63f1943f8b0b9e9831153"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ac63f1943f8b0b9e9831153","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Help Center","count":124},{"language":"default","tag":"API Reference","count":115},{"language":"default","tag":"HEYY API","count":101},{"language":"default","tag":"AI EMPLOYEES","count":33},{"language":"default","tag":"AUTOMATIONS","count":32},{"language":"default","tag":"Chat","count":20},{"language":"default","tag":"MANAGING YOUR INBOX","count":18},{"language":"default","tag":"Contact","count":18},{"language":"default","tag":"MESSAGING CHANNELS","count":17},{"language":"default","tag":"Triggers","count":15}]},"assistantConfig":{},"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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".changelog-month-header{position:relative;padding-block:40px}.changelog-month-bg{position:absolute;top:0;left:50%;width:100vw;height:100%;transform:translateX(-50%);margin-inline:0;z-index:1;background-color:rgb(var(--gray-50)/.5);mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,.6));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(229 229 229 / 0.2)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e\");border-top:1px solid rgb(0 0 0/.05);border-bottom:1px solid rgb(0 0 0/.05)}.dark .changelog-month-bg{background-color:rgb(var(--gray-800)/.25);mask-image:linear-gradient(0deg,rgba(255,255,255,.3),rgba(255,255,255,.8));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(255 255 255 / 0.05)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e\");border-top:1px solid rgb(255 255 255/.05);border-bottom:1px solid rgb(255 255 255/.05)}.changelog-month-content{position:relative;z-index:2}.changelog-month-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;opacity:.6;margin-bottom:8px;font-weight:500}"}],"page":{"pagePath":"api-reference/v2/error-handling","slug":"/api-reference/v2/error-handling","pageMetadata":{"title":"Error Handling","description":"How the Heyy API reports errors and how to handle them.","href":"/api-reference/v2/error-handling"},"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: \"How the Heyy API reports errors 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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The Heyy API uses conventional HTTP response codes to indicate success or failure. Response codes in the `,_jsx(_components.strong,{children:`2xx`}),` range indicate success. Codes in the `,_jsx(_components.strong,{children:`4xx`}),` range indicate a client error—the request failed given the information provided. Codes in the `,_jsx(_components.strong,{children:`5xx`}),` range indicate an error on Heyy’s servers.`]}),`\n`,_jsx(Heading,{level:`2`,id:`http-error-codes-in-use`,children:`HTTP error codes in use`}),`\n`,_jsx(_components.p,{children:`The API uses the following HTTP codes to communicate errors:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP Code`}),_jsx(_components.th,{children:`Error type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Client error`}),_jsx(_components.td,{children:`Returned when there is a type mismatch in the request body, invalid fields, or other structural issues in the request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Unauthorized`}),_jsx(_components.td,{children:`Returned when the request could not be authenticated (e.g. missing or invalid API key).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Not found`}),_jsx(_components.td,{children:`Returned when the requested resource does not exist.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Too many requests`}),_jsxs(_components.td,{children:[`Returned when you exceed the `,_jsx(_components.a,{href:`/api-reference/v2/rate-limiting`,children:`rate limit`}),`. Throttle requests and use the rate limit headers to retry appropriately.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Unexpected error`}),_jsx(_components.td,{children:`Returned when an unexpected problem occurs on our servers. Retry with exponential backoff.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-object`,children:`Error object`}),`\n`,_jsxs(_components.p,{children:[`Every error response uses the same structure: `,_jsx(_components.code,{children:`success`}),` set to `,_jsx(_components.code,{children:`false`}),` and a single `,_jsx(_components.code,{children:`error`}),` object with `,_jsx(_components.code,{children:`messageKey`}),` and `,_jsx(_components.code,{children:`message`}),`.`]}),`\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:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_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:` \"messageKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"contact_not_found\"`}),_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:`\"No contact could be found for this resource identifier. Please make sure to use the correct contact ID.\"`})]}),`\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`]})})})]})}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":"Error Handling","description":"How the Heyy API reports errors and how to handle them.","href":"/api-reference/v2/error-handling"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"HTTP error codes in use","slug":"http-error-codes-in-use","depth":2,"children":[]},{"title":"Error object","slug":"error-object","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"heyy-c8bd5c9e","siteName":"Heyy Help Center","title":"Error Handling - Heyy Help Center","navMaps":{"firstHrefInVersion":{"Version 3":{"href":"/api-reference/v3/error-handling","matchLevel":1},"Version 2":{"href":"/api-reference/v2/error-handling","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-07-14T15:46:56.989Z","originalFileLocation":"api-reference/v2/error-handling.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=\"How the Heyy API reports errors and how to handle them.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Heyy Help Center\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Error Handling - Heyy Help Center\">\u003cmeta data-mint-head property=\"og:description\" content=\"How the Heyy API reports errors and how to handle them.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Heyy Help Center\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.heyy.io/api-reference/v2/error-handling\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://heyy-c8bd5c9e.mintlify.app/_mintlify/api/og/v2?division=GETTING+STARTED\u0026amp;title=Error+Handling\u0026amp;description=How+the+Heyy+API+reports+errors+and+how+to+handle+them.\u0026amp;theme=ef3232fe885046deda1ba629\u0026amp;signature=0a7965478c8b773c513c91e0116550309b8775042e5e759524277e2b38fbdfd0\">\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=\"Error Handling - Heyy Help Center\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How the Heyy API reports errors and how to handle them.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://heyy-c8bd5c9e.mintlify.app/_mintlify/api/og/v2?division=GETTING+STARTED\u0026amp;title=Error+Handling\u0026amp;description=How+the+Heyy+API+reports+errors+and+how+to+handle+them.\u0026amp;theme=ef3232fe885046deda1ba629\u0026amp;signature=0a7965478c8b773c513c91e0116550309b8775042e5e759524277e2b38fbdfd0\">\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/heyy-c8bd5c9e/2DDPHeItlA7vAAJv/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Heyy Help Center\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FE3265\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.heyy.io/api-reference/v2/error-handling\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/error-handling.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.heyy.io/#organization\",\"name\":\"Heyy Help Center\",\"url\":\"https://docs.heyy.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/heyy-c8bd5c9e/cOuWPkt81GyZiNr6/assets/logo.svg?fit=max\u0026auto=format\u0026n=cOuWPkt81GyZiNr6\u0026q=85\u0026s=15d8f051f3dbe3cb5e5d0241b7a50372\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.heyy.io#website\",\"name\":\"Heyy Help Center\",\"url\":\"https://docs.heyy.io\",\"publisher\":{\"@id\":\"https://docs.heyy.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.heyy.io/api-reference/v2/error-handling#webpage\",\"url\":\"https://docs.heyy.io/api-reference/v2/error-handling\",\"name\":\"Error Handling\",\"description\":\"How the Heyy API reports errors and how to handle them.\",\"dateModified\":\"2026-07-14T15:46:56.989Z\",\"isPartOf\":{\"@id\":\"https://docs.heyy.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.heyy.io/api-reference/v2/error-handling#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.heyy.io/api-reference/v2/error-handling#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"GETTING STARTED\",\"item\":\"https://docs.heyy.io/api-reference/v2/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error Handling\",\"item\":\"https://docs.heyy.io/api-reference/v2/error-handling\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.heyy.io/api-reference/v2/error-handling#article\",\"headline\":\"Error Handling\",\"name\":\"Error Handling\",\"description\":\"How the Heyy API reports errors and how to handle them.\",\"url\":\"https://docs.heyy.io/api-reference/v2/error-handling\",\"mainEntityOfPage\":{\"@id\":\"https://docs.heyy.io/api-reference/v2/error-handling#webpage\"},\"dateModified\":\"2026-07-14T15:46:56.989Z\",\"publisher\":{\"@id\":\"https://docs.heyy.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.heyy.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Heyy Help Center\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Heyy Help Center","nav":{"global":null,"tabs":[{"tab":"Help Center","icon":"life-buoy","pages":[{"title":"Help Center","href":"/help"}]},{"tab":"API Reference","icon":"code","versions":[{"version":"Version 3","tag":"Latest","pages":[{"title":"Version 3","href":"/api-reference/v3/error-handling"}]},{"version":"Version 2","tag":"Sunset Oct 1, 2026","groups":[{"group":"GETTING STARTED","pages":[{"title":"Overview","href":"/api-reference/v2/overview"},{"title":"Authentication","href":"/api-reference/v2/authentication"},{"title":"Versioning","href":"/api-reference/v2/versioning"},{"title":"Rate Limiting","description":"How API rate limits work and how to handle 429 responses.","href":"/api-reference/v2/rate-limiting"},{"title":"Error Handling","href":"/api-reference/v2/error-handling"}]},{"group":"HEYY API","pages":[{"group":"Attribute","expanded":false,"pages":[{"title":"Get attributes","description":null,"deprecated":null,"version":null,"sidebarTitle":"Get attributes","openapi":"/api-reference/openapi-v2.json get /attributes","href":"/api-reference/v2/get-attributes"},{"title":"Create attribute","deprecated":null,"version":null,"sidebarTitle":"Post attributes","openapi":"/api-reference/openapi-v2.json post /attributes","href":"/api-reference/v2/post-attributes"},{"title":"Delete attribute","deprecated":null,"version":null,"sidebarTitle":"Delete attributes attributeid","openapi":"/api-reference/openapi-v2.json delete /attributes/{attributeId}","href":"/api-reference/v2/delete-attributes-attributeid"}]},{"group":"Automation","expanded":false,"pages":[{"title":"Get automations","deprecated":null,"version":null,"sidebarTitle":"Get channelid workflows","openapi":"/api-reference/openapi-v2.json get /{channelId}/workflows","href":"/api-reference/v2/get-channelid-workflows"},{"title":"Trigger automation","deprecated":null,"version":null,"sidebarTitle":"Post channelid workflows workflowid","openapi":"/api-reference/openapi-v2.json post /{channelId}/workflows/{workflowId}","href":"/api-reference/v2/post-channelid-workflows-workflowid"}]},{"group":"Broadcast","expanded":false,"pages":[{"title":"Get broadcasts","deprecated":null,"version":null,"sidebarTitle":"Get channelid broadcasts","openapi":"/api-reference/openapi-v2.json get /{channelId}/broadcasts","href":"/api-reference/v2/get-channelid-broadcasts"},{"title":"Create broadcast","deprecated":null,"version":null,"sidebarTitle":"Post channelid broadcasts","openapi":"/api-reference/openapi-v2.json post /{channelId}/broadcasts","href":"/api-reference/v2/post-channelid-broadcasts"},{"title":"Get broadcast by id","deprecated":null,"version":null,"sidebarTitle":"Get channelid broadcasts broadcastid","openapi":"/api-reference/openapi-v2.json get /{channelId}/broadcasts/{broadcastId}","href":"/api-reference/v2/get-channelid-broadcasts-broadcastid"},{"title":"Update broadcast","deprecated":null,"version":null,"sidebarTitle":"Put channelid broadcasts broadcastid","openapi":"/api-reference/openapi-v2.json put /{channelId}/broadcasts/{broadcastId}","href":"/api-reference/v2/put-channelid-broadcasts-broadcastid"},{"title":"Delete broadcast","deprecated":null,"version":null,"sidebarTitle":"Delete channelid broadcasts broadcastid","openapi":"/api-reference/openapi-v2.json delete /{channelId}/broadcasts/{broadcastId}","href":"/api-reference/v2/delete-channelid-broadcasts-broadcastid"},{"title":"Start broadcast","deprecated":null,"version":null,"sidebarTitle":"Post channelid broadcasts broadcastid start","openapi":"/api-reference/openapi-v2.json post /{channelId}/broadcasts/{broadcastId}/start","href":"/api-reference/v2/post-channelid-broadcasts-broadcastid-start"},{"title":"Get broadcast recipients","deprecated":null,"version":null,"sidebarTitle":"Get channelid broadcasts broadcastid recipients","openapi":"/api-reference/openapi-v2.json get /{channelId}/broadcasts/{broadcastId}/recipients","href":"/api-reference/v2/get-channelid-broadcasts-broadcastid-recipients"},{"title":"Add recipients to broadcast","deprecated":null,"version":null,"sidebarTitle":"Post channelid broadcasts broadcastid recipients","openapi":"/api-reference/openapi-v2.json post /{channelId}/broadcasts/{broadcastId}/recipients","href":"/api-reference/v2/post-channelid-broadcasts-broadcastid-recipients"},{"title":"Remove recipients from broadcast","deprecated":null,"version":null,"sidebarTitle":"Delete channelid broadcasts broadcastid recipients","openapi":"/api-reference/openapi-v2.json delete /{channelId}/broadcasts/{broadcastId}/recipients","href":"/api-reference/v2/delete-channelid-broadcasts-broadcastid-recipients"}]},{"group":"Business","expanded":false,"pages":[{"title":"Get business","deprecated":null,"version":null,"sidebarTitle":"Get business","openapi":"/api-reference/openapi-v2.json get /business","href":"/api-reference/v2/get-business"}]},{"group":"Channel","expanded":false,"pages":[{"title":"Get channels","deprecated":null,"version":null,"sidebarTitle":"Get channels","openapi":"/api-reference/openapi-v2.json get /channels","href":"/api-reference/v2/get-channels"},{"title":"Get channel by id","deprecated":null,"version":null,"sidebarTitle":"Get channels channelid","openapi":"/api-reference/openapi-v2.json get /channels/{channelId}","href":"/api-reference/v2/get-channels-channelid"}]},{"group":"Chat","expanded":false,"pages":[{"title":"Get chats","deprecated":null,"version":null,"sidebarTitle":"Get channelid chats","openapi":"/api-reference/openapi-v2.json get /{channelId}/chats","href":"/api-reference/v2/get-channelid-chats"},{"title":"Get chat by id","deprecated":null,"version":null,"sidebarTitle":"Get channelid chats chatid","openapi":"/api-reference/openapi-v2.json get /{channelId}/chats/{chatId}","href":"/api-reference/v2/get-channelid-chats-chatid"},{"title":"Update chat","deprecated":null,"version":null,"sidebarTitle":"Put channelid chats chatid","openapi":"/api-reference/openapi-v2.json put /{channelId}/chats/{chatId}","href":"/api-reference/v2/put-channelid-chats-chatid"}]},{"group":"Contact","expanded":false,"pages":[{"title":"Get contacts","deprecated":null,"version":null,"sidebarTitle":"Get contacts","openapi":"/api-reference/openapi-v2.json get /contacts","href":"/api-reference/v2/get-contacts"},{"title":"Create contact","deprecated":null,"version":null,"sidebarTitle":"Post contacts","openapi":"/api-reference/openapi-v2.json post /contacts","href":"/api-reference/v2/post-contacts"},{"title":"Get contact by id","deprecated":null,"version":null,"sidebarTitle":"Get contacts contactid","openapi":"/api-reference/openapi-v2.json get /contacts/{contactId}","href":"/api-reference/v2/get-contacts-contactid"},{"title":"Update contact","deprecated":null,"version":null,"sidebarTitle":"Put contacts contactid","openapi":"/api-reference/openapi-v2.json put /contacts/{contactId}","href":"/api-reference/v2/put-contacts-contactid"},{"title":"Delete contact","deprecated":null,"version":null,"sidebarTitle":"Delete contacts contactid","openapi":"/api-reference/openapi-v2.json delete /contacts/{contactId}","href":"/api-reference/v2/delete-contacts-contactid"},{"title":"Add contact attribute","deprecated":null,"version":null,"sidebarTitle":"Post contacts contactid attributes","openapi":"/api-reference/openapi-v2.json post /contacts/{contactId}/attributes","href":"/api-reference/v2/post-contacts-contactid-attributes"},{"title":"Remove contact attribute","deprecated":null,"version":null,"sidebarTitle":"Delete contacts contactid attributes","openapi":"/api-reference/openapi-v2.json delete /contacts/{contactId}/attributes","href":"/api-reference/v2/delete-contacts-contactid-attributes"}]},{"group":"File","expanded":false,"pages":[{"title":"Upload file","deprecated":null,"version":null,"sidebarTitle":"Post upload file","openapi":"/api-reference/openapi-v2.json post /upload_file","href":"/api-reference/v2/post-upload_file"}]},{"group":"Label","expanded":false,"pages":[{"title":"Get labels","deprecated":null,"version":null,"sidebarTitle":"Get labels","openapi":"/api-reference/openapi-v2.json get /labels","href":"/api-reference/v2/get-labels"},{"title":"Create label","deprecated":null,"version":null,"sidebarTitle":"Post labels","openapi":"/api-reference/openapi-v2.json post /labels","href":"/api-reference/v2/post-labels"},{"title":"Delete label","deprecated":null,"version":null,"sidebarTitle":"Delete labels labelid","openapi":"/api-reference/openapi-v2.json delete /labels/{labelId}","href":"/api-reference/v2/delete-labels-labelid"}]},{"group":"Message Template","expanded":false,"pages":[{"title":"Get message templates","deprecated":null,"version":null,"sidebarTitle":"Get message templates","openapi":"/api-reference/openapi-v2.json get /message_templates","href":"/api-reference/v2/get-message_templates"}]},{"group":"WhatsApp Message","expanded":false,"pages":[{"title":"Send WhatsApp message","deprecated":null,"version":null,"sidebarTitle":"Post channelid whatsapp messages send","openapi":"/api-reference/openapi-v2.json post /{channelId}/whatsapp_messages/send","href":"/api-reference/v2/post-channelid-whatsapp_messages-send"}]}]}]}]},{"tab":"Webhooks","icon":"webhook","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"Changelog","icon":"megaphone","pages":[{"title":"Changelog","href":"/changelog"}]}]},"title":"Error Handling - Heyy Help Center","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":[],"chunks":[]}