Errors use standard HTTP status codes. The body is JSON:
{ "error": "this key lacks the `trade` scope" }
Validation errors carry a machine-readable code, and the offending field when the code alone doesn’t say which:
{ "code": "invalid_gpus", "field": "gpus" }
Status
Meaning
400
The request is invalid. The message or code says why.
401
Missing, unknown or revoked API key, or an endpoint the API doesn’t serve to keys yet.
403
The key lacks the required scope, or the action isn’t allowed for this account.
404
The resource doesn’t exist, or isn’t yours.
409
The request conflicts with the account’s current state: a deployment that has moved on, an offer for anything other than all of a listing’s remaining contracts.
502 / 503
A partner failed or is unavailable. 503 from a compute endpoint means the exchange is unreachable. Safe to retry GETs, and POSTs that carry a request or idempotency key.
Orders are different: the exchange’s answer is a 200 with status: REJECTED and a message, not an HTTP error. See Orders.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Capital AI","colors":{"primary":"#0F172A"},"navbar":{"primary":{"type":"button","label":"Open the app","href":"https://capital.ai"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"capital-ai","hasAudioNarration":false,"actualSubdomain":"capital-ai","customDomains":[],"gitSource":{"type":"github","owner":"primextrade","repo":"capitalai","deployBranch":"main","contentDirectory":"platform/docs/public-api","isPrivate":true,"mountPath":"","label":"","_id":"6ae204a91297abb24851d54a"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae3ba827792e1042d8c5d08","collectionId":"cbefb6f9-ede8-45dc-9521-cd3eb06c76bc","liveDeploymentHistoryId":"6ae3ba827792e1042d8c5d08","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae3c2f2f92f3ccad873487b","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Using the App","count":12},{"language":"default","tag":"Introduction","count":6},{"language":"default","tag":"Compute","count":5},{"language":"default","tag":"Funding","count":5},{"language":"default","tag":"Accounts","count":2}]},"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":"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":"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":"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":"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":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"errors","slug":"/errors","pageMetadata":{"title":"Errors","description":null,"href":"/errors"},"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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Errors use standard HTTP status codes. The body is JSON:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"this key lacks the `trade` scope\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Validation errors carry a machine-readable `,_jsx(_components.code,{children:`code`}),`, and the offending `,_jsx(_components.code,{children:`field`}),` when the code alone doesn’t say which:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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_gpus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\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:`400`})}),_jsxs(_components.td,{children:[`The request is invalid. The message or `,_jsx(_components.code,{children:`code`}),` says why.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing, unknown or revoked API key, or an endpoint the API doesn’t serve to keys yet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`The key lacks the required scope, or the action isn’t allowed for this account.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`The resource doesn’t exist, or isn’t yours.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`The request conflicts with the account’s current state: a deployment that has moved on, an offer for anything other than all of a listing’s remaining contracts.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`502`}),` / `,_jsx(_components.code,{children:`503`})]}),_jsxs(_components.td,{children:[`A partner failed or is unavailable. `,_jsx(_components.code,{children:`503`}),` from a compute endpoint means the exchange is unreachable. Safe to retry `,_jsx(_components.code,{children:`GET`}),`s, and `,_jsx(_components.code,{children:`POST`}),`s that carry a request or idempotency key.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Orders are different: the exchange’s answer is a `,_jsx(_components.code,{children:`200`}),` with `,_jsx(_components.code,{children:`status: REJECTED`}),` and a `,_jsx(_components.code,{children:`message`}),`, not an HTTP error. See `,_jsx(_components.a,{href:`compute/orders.md#results`,children:`Orders`}),`.`]})]})}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":null,"href":"/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"capital-ai","siteName":"Capital AI","title":"Errors - Capital AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T17:27:01.360Z","originalFileLocation":"errors.md"},"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=\"application-name\" content=\"Capital AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/capital-ai/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/capital-ai/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/capital-ai/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/capital-ai/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Errors - Capital AI\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Capital AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://capital-ai.mintlify.app/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://capital-ai.mintlify.app/_mintlify/api/og/v2?division=Introduction\u0026amp;title=Errors\u0026amp;theme=b1369ac25395ae9bdb5465d2\u0026amp;signature=31ed2a652e6d2a3be55e84081c9745df24c9c200990f67720456b1114d679c2f\">\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 - Capital AI\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://capital-ai.mintlify.app/_mintlify/api/og/v2?division=Introduction\u0026amp;title=Errors\u0026amp;theme=b1369ac25395ae9bdb5465d2\u0026amp;signature=31ed2a652e6d2a3be55e84081c9745df24c9c200990f67720456b1114d679c2f\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/capital-ai/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Capital AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F172A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://capital-ai.mintlify.app/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://capital-ai.mintlify.app/#organization\",\"name\":\"Capital AI\",\"url\":\"https://capital-ai.mintlify.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://capital-ai.mintlify.app#website\",\"name\":\"Capital AI\",\"url\":\"https://capital-ai.mintlify.app\",\"publisher\":{\"@id\":\"https://capital-ai.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://capital-ai.mintlify.app/errors#webpage\",\"url\":\"https://capital-ai.mintlify.app/errors\",\"name\":\"Errors\",\"dateModified\":\"2026-10-29T17:27:01.360Z\",\"isPartOf\":{\"@id\":\"https://capital-ai.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://capital-ai.mintlify.app/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://capital-ai.mintlify.app/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Introduction\",\"item\":\"https://capital-ai.mintlify.app/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Errors\",\"item\":\"https://capital-ai.mintlify.app/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://capital-ai.mintlify.app/errors#article\",\"headline\":\"Errors\",\"name\":\"Errors\",\"url\":\"https://capital-ai.mintlify.app/errors\",\"mainEntityOfPage\":{\"@id\":\"https://capital-ai.mintlify.app/errors#webpage\"},\"dateModified\":\"2026-10-29T17:27:01.360Z\",\"publisher\":{\"@id\":\"https://capital-ai.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://capital-ai.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Capital AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Capital AI","nav":{"global":null,"groups":[{"group":"Introduction","pages":[{"title":"Welcome","href":"/index"},{"title":"About Capital AI","href":"/about"},{"title":"Getting Started","href":"/getting-started"},{"title":"Authentication","href":"/authentication"},{"title":"SDKs and Tools","description":null,"href":"/sdks-and-tools"},{"title":"Errors","href":"/errors"}]},{"group":"Using the App","pages":[{"title":"Using the App","sidebarTitle":"Overview","description":null,"href":"/app/index"},{"title":"Sign up and sign in","href":"/app/sign-up"},{"title":"Open your account","href":"/app/open-account"},{"title":"Deposit money","href":"/app/deposit"},{"title":"Browse the markets","href":"/app/markets"},{"title":"Buy and sell contracts","href":"/app/trade"},{"title":"Buy compute from a provider","href":"/app/offtake"},{"title":"Deploy your GPUs","href":"/app/compute"},{"title":"Withdraw money","href":"/app/withdraw"},{"title":"Transfer a brokerage account","href":"/app/brokerage-transfer"},{"title":"View your activity","href":"/app/activity"},{"title":"Create an API key","href":"/app/api-keys"}]},{"group":"Compute","pages":[{"title":"Contracts","href":"/compute/overview"},{"title":"Transaction flow","href":"/compute/transaction-flow"},{"title":"Orders","href":"/compute/orders"},{"title":"Deployments","href":"/compute/deployments"},{"title":"Offtake","href":"/compute/offtake"}]},{"group":"Accounts","pages":[{"title":"Account Opening","href":"/accounts/account-opening"},{"title":"Account and Profile","href":"/accounts/account-and-profile"}]},{"group":"Funding","pages":[{"title":"Funding Overview","href":"/funding/overview"},{"title":"Balances and deposit details","href":"/funding/balances"},{"title":"Linked banks and contacts","href":"/funding/linked-banks"},{"title":"Deposits and quotes","href":"/funding/deposits"},{"title":"Activity","href":"/funding/activity"}]}]},"title":"Errors - Capital AI","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":[],"chunks":[]}