Both token types are JWTs and behave identically apart from which accounts they represent.When the Authorization header is absent, the API falls back to a cookie — accessToken for staff
and customerAccessToken for customers. That fallback exists for the first-party web apps. A
server-side integration should always send the header.
Revocation
Tokens carry a tokenVersion. Logging out and resetting a password both bump it, which invalidates
every outstanding token for that account at once. Treat a 401 on a previously working token as a
signal to re-authenticate rather than to retry.
Use POST /api/v1/auth/refresh-token to exchange a refresh credential for a new access token, and
GET /api/v1/auth/me to read the authenticated profile.
Behaviour worth knowing
POST /auth/logout does not reliably end other sessions. It bumps tokenVersion only when
the request carries a token that still verifies. With an expired access token, or with only the
refresh cookie, the cookies are cleared but other live sessions survive. Do not present this
endpoint as “log out of all devices”.
POST /auth/forgot-password always returns 200, including for an address with no account.
This is deliberate: a 404 would let the endpoint be used to discover which addresses are
registered. Do not branch on 404, and do not report “email sent” as a fact.
It is rate limited per IP and per email address at 5 per hour, so a user retrying one address
hits 429 sooner than the IP limit alone would suggest.
POST /auth/reset-password revokes every session and does not log the user in. Send them to
the login screen afterwards.
GET /auth/verify-reset-password-token does not consume the token, so a form can safely check
it before collecting the new password.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Open Agent API","description":"Transfer agency API for digital securities, investor records and blockchain reconciliation.","colors":{"primary":"#4A6274","light":"#7F8B99","dark":"#3A4153"},"logo":{"light":"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/light.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=64c378585eddde163b0aed500aba3007","dark":"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/dark.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=c22cb396f026664c8edbdf84e15c02ff","href":"https://openagent.to"},"favicon":"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/icon.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=5af5eddabfd5c65c5c53fd59e840f6de","navbar":{"links":[{"href":"mailto:support@openagent.to","label":"Support"}],"primary":{"type":"button","label":"openagent.to","href":"https://openagent.to"}},"footer":{"socials":{"website":"https://openagent.to"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"open-agent","hasAudioNarration":false,"actualSubdomain":"open-agent","customDomains":["docs.openagent.to"],"gitSource":{"type":"github","owner":"pv-randd","repo":"open-agent-doc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aba2d3866226d680ee73335","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API reference","count":32},{"language":"default","tag":"Endpoints","count":31},{"language":"default","tag":"Transactions","count":6},{"language":"default","tag":"Documentation","count":4},{"language":"default","tag":"API Keys","count":4},{"language":"default","tag":"Apps","count":4},{"language":"default","tag":"Auth","count":4},{"language":"default","tag":"Reports","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Investors","count":3}]},"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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"authentication","slug":"/authentication","pageMetadata":{"title":"Authentication","description":"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.","href":"/authentication"},"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: \"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.\"\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`,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,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The API enforces three separate credentials. Which one an endpoint wants is shown in its reference\npage under `,_jsx(_components.strong,{children:`Authorizations`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Credential`}),_jsx(_components.th,{children:`Used by`}),_jsx(_components.th,{children:`Sent as`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bearerAuth`})}),_jsx(_components.td,{children:`Staff and admin integrations`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization: Bearer \u003ctoken>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`customerAuth`})}),_jsx(_components.td,{children:`Customer-facing integrations`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization: Bearer \u003ctoken>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Issuer API key`}),_jsx(_components.td,{children:`Server-to-server webhook delivery`}),_jsxs(_components.td,{children:[`Three signed headers — see `,_jsx(_components.a,{href:`/webhooks`,children:`Webhooks`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`bearer-tokens`,children:`Bearer tokens`}),`\n`,_jsx(_components.p,{children:`Both token types are JWTs and behave identically apart from which accounts they represent.`}),`\n`,_jsxs(_components.p,{children:[`When the `,_jsx(_components.code,{children:`Authorization`}),` header is absent, the API falls back to a cookie — `,_jsx(_components.code,{children:`accessToken`}),` for staff\nand `,_jsx(_components.code,{children:`customerAccessToken`}),` for customers. That fallback exists for the first-party web apps. A\nserver-side integration should always send the header.`]}),`\n`,_jsx(Heading,{level:`3`,id:`revocation`,children:`Revocation`}),`\n`,_jsxs(_components.p,{children:[`Tokens carry a `,_jsx(_components.code,{children:`tokenVersion`}),`. Logging out and resetting a password both bump it, which invalidates\nevery outstanding token for that account at once. Treat a `,_jsx(_components.code,{children:`401`}),` on a previously working token as a\nsignal to re-authenticate rather than to retry.`]}),`\n`,_jsx(Heading,{level:`2`,id:`logging-in`,children:`Logging in`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.openagent.to/api/v1/auth/login`}),_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:` '{\"email\":\"you@example.com\",\"password\":\"...\"}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`6`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.openagent.to/api/v1/auth/login'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'you@example.com'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`password:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`POST /api/v1/auth/refresh-token`}),` to exchange a refresh credential for a new access token, and\n`,_jsx(_components.code,{children:`GET /api/v1/auth/me`}),` to read the authenticated profile.`]}),`\n`,_jsx(Heading,{level:`2`,id:`behaviour-worth-knowing`,children:`Behaviour worth knowing`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`POST /auth/logout`}),` does not reliably end other sessions.`]}),` It bumps `,_jsx(_components.code,{children:`tokenVersion`}),` only when\nthe request carries a token that still verifies. With an expired access token, or with only the\nrefresh cookie, the cookies are cleared but other live sessions survive. Do not present this\nendpoint as “log out of all devices”.`]})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`POST /auth/forgot-password`}),` always returns `,_jsx(_components.code,{children:`200`}),`,`]}),` including for an address with no account.\nThis is deliberate: a `,_jsx(_components.code,{children:`404`}),` would let the endpoint be used to discover which addresses are\nregistered. Do not branch on `,_jsx(_components.code,{children:`404`}),`, and do not report “email sent” as a fact.`]}),`\n`,_jsxs(_components.li,{children:[`It is rate limited `,_jsx(_components.strong,{children:`per IP and per email address`}),` at 5 per hour, so a user retrying one address\nhits `,_jsx(_components.code,{children:`429`}),` sooner than the IP limit alone would suggest.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`POST /auth/reset-password`}),` revokes every session and does not log the user in.`]}),` Send them to\nthe login screen afterwards.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`GET /auth/verify-reset-password-token`}),` does not consume the token,`]}),` so a form can safely check\nit before collecting the new password.`]}),`\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":"Authentication","description":"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.","href":"/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Bearer tokens","slug":"bearer-tokens","depth":2,"children":[{"title":"Revocation","slug":"revocation","depth":3,"children":[]}]},{"title":"Logging in","slug":"logging-in","depth":2,"children":[]},{"title":"Behaviour worth knowing","slug":"behaviour-worth-knowing","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"open-agent","siteName":"Open Agent API","title":"Authentication - Open Agent API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-21T11:31:36.183Z","originalFileLocation":"authentication.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=\"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Open Agent 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/open-agent/-zLjUPxWssYUjWze/_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/open-agent/-zLjUPxWssYUjWze/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_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/open-agent/-zLjUPxWssYUjWze/_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/open-agent/-zLjUPxWssYUjWze/_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/open-agent/-zLjUPxWssYUjWze/_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/open-agent/-zLjUPxWssYUjWze/_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/open-agent/-zLjUPxWssYUjWze/_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/open-agent/-zLjUPxWssYUjWze/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Open Agent API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Open Agent API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.openagent.to/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://open-agent.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=Staff+tokens%2C+customer+tokens+and+issuer+API+keys+%E2%80%94+which+one+each+endpoint+expects.\u0026amp;theme=304565ab3e61008fa587b560\u0026amp;signature=30aa6b3994de9dce7d6bfb31f2ff0869329a8e8c60cf569119b3949a80064450\">\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=\"Authentication - Open Agent API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://open-agent.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Authentication\u0026amp;description=Staff+tokens%2C+customer+tokens+and+issuer+API+keys+%E2%80%94+which+one+each+endpoint+expects.\u0026amp;theme=304565ab3e61008fa587b560\u0026amp;signature=30aa6b3994de9dce7d6bfb31f2ff0869329a8e8c60cf569119b3949a80064450\">\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/open-agent/-zLjUPxWssYUjWze/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Open Agent API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4A6274\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.openagent.to/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.openagent.to/#organization\",\"name\":\"Open Agent API\",\"url\":\"https://docs.openagent.to\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/light.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=64c378585eddde163b0aed500aba3007\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.openagent.to#website\",\"name\":\"Open Agent API\",\"url\":\"https://docs.openagent.to\",\"publisher\":{\"@id\":\"https://docs.openagent.to/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.openagent.to/authentication#webpage\",\"url\":\"https://docs.openagent.to/authentication\",\"name\":\"Authentication\",\"description\":\"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.\",\"dateModified\":\"2026-09-21T11:31:36.183Z\",\"isPartOf\":{\"@id\":\"https://docs.openagent.to#website\"},\"breadcrumb\":{\"@id\":\"https://docs.openagent.to/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.openagent.to/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.openagent.to\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.openagent.to/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.openagent.to/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"Staff tokens, customer tokens and issuer API keys — which one each endpoint expects.\",\"url\":\"https://docs.openagent.to/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.openagent.to/authentication#webpage\"},\"dateModified\":\"2026-09-21T11:31:36.183Z\",\"publisher\":{\"@id\":\"https://docs.openagent.to/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.openagent.to#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Open Agent API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Open Agent API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/authentication.md","siteName":"Open Agent API","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Open Agent API","description":"Transfer agency API for digital securities, investor records and blockchain reconciliation.","href":""},{"title":"Authentication","href":"/authentication"},{"title":"API conventions","description":"The response envelope, pagination, sorting and error codes — the same across every endpoint.","href":"/conventions"}]},{"group":"Integrations","pages":[{"title":"Webhooks","href":"/webhooks"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Authentication - Open Agent API","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}