Exchanges the single-use verification_code returned by Verify a one-time code for a user’s tokens, using the urn:openloophealth:oauth:grant-type:verification-code grant.This is the last call in the required part of the User Registration flow — from here the user authenticates with their own tokens.Permissions: None
string
required
Must be urn:openloophealth:oauth:grant-type:verification-code.
string
required
verification_code from POST /auth/verify-otp.
string
required
Must be the same client that requested the OTP.
string
required
Your client secret.
object
required
Hide data
string
required
User access token.
string
required
Use with Refresh a token to get new tokens without re-authenticating.
Fields required depend on grant_type: client_credentials also requires audience; the verification-code grant also requires code; refresh_token also requires refresh_token.
Verification code from POST /auth/verify-otp. Required for the verification-code grant.
refresh_token
string
Required for the refresh_token grant.
Response
OK
data
object
required
Show child attributes
request_id
string<uuid>
required
Correlation id echoed on every response.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Partners API Documentation","colors":{"primary":"#e34376","light":"#e55484","dark":"#e3235f"},"logo":{"light":"https://mintcdn.com/openloop/uFqnU7STc2L-iY-j/logo/openloop_light.png?fit=max\u0026auto=format\u0026n=uFqnU7STc2L-iY-j\u0026q=85\u0026s=36c08284ca501fdefe4311339c563474","dark":"https://mintcdn.com/openloop/uFqnU7STc2L-iY-j/logo/openloop_dark.png?fit=max\u0026auto=format\u0026n=uFqnU7STc2L-iY-j\u0026q=85\u0026s=81c334cb0ffc5f63a9595a1d611595ce"},"favicon":"https://mintcdn.com/openloop/uFqnU7STc2L-iY-j/favicon.ico?fit=max\u0026auto=format\u0026n=uFqnU7STc2L-iY-j\u0026q=85\u0026s=7be86b4f76e18b47229f3b8646ba3fa2","api":{"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"https://openloophealth.com","label":"OpenLoop Health"}],"primary":{"type":"button","label":"Get Started","href":"https://openloophealth.com/contact"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/openloophealth"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"OpenLoop Health","icon":"globe","href":"https://openloophealth.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"openloop","hasAudioNarration":false,"actualSubdomain":"openloop","customDomains":[],"gitSource":{"type":"github","owner":"openloophealth","repo":"patient-zero-openloop-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aff28baca43cd0248039897","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Reference","count":130},{"language":"default","tag":"Partner Cookbook","count":24},{"language":"default","tag":"Scheduling","count":9},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Subscriptions","count":8},{"language":"default","tag":"Auth","count":7},{"language":"default","tag":"Billing Customers","count":7},{"language":"default","tag":"Eligibility","count":7},{"language":"default","tag":"When things go wrong","count":6},{"language":"default","tag":"Users","count":6}]},"assistantConfig":{},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"auth/exchange-verification-code","slug":"/auth/exchange-verification-code","pageMetadata":{"title":"Exchange a verification code","description":"Redeem a verification code from Verify a one-time code for user tokens.","openapi":"POST /auth/token","href":"/auth/exchange-verification-code"},"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: \"Redeem a verification code from Verify a one-time code for user tokens.\"\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`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Exchanges the single-use `,_jsx(_components.code,{children:`verification_code`}),` returned by `,_jsx(_components.a,{href:`/auth/verify-otp`,children:`Verify a one-time code`}),` for a user’s tokens, using the `,_jsx(_components.code,{children:`urn:openloophealth:oauth:grant-type:verification-code`}),` grant.`]}),`\n`,_jsxs(_components.p,{children:[`This is the last call in the required part of the `,_jsx(_components.a,{href:`/api-reference/user-registration-guide`,children:`User Registration`}),` flow — from here the user authenticates with their own tokens.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Permissions:`}),` None`]}),`\n`,_jsx(ParamField,{body:`grant_type`,type:`string`,required:true,id:`param-grant-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`urn:openloophealth:oauth:grant-type:verification-code`}),`.`]})}),`\n`,_jsx(ParamField,{body:`code`,type:`string`,required:true,id:`param-code`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`verification_code`}),` from `,_jsx(_components.code,{children:`POST /auth/verify-otp`}),`.`]})}),`\n`,_jsx(ParamField,{body:`client_id`,type:`string`,required:true,id:`param-client-id`,children:_jsx(_components.p,{children:`Must be the same client that requested the OTP.`})}),`\n`,_jsx(ParamField,{body:`client_secret`,type:`string`,required:true,id:`param-client-secret`,children:_jsx(_components.p,{children:`Your client secret.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,required:true,id:`param-data`,children:_jsxs(Expandable,{title:`data`,defaultOpen:true,children:[_jsx(ResponseField,{name:`access_token`,type:`string`,required:true,id:`param-access-token`,children:_jsx(_components.p,{children:`User access token.`})}),_jsx(ResponseField,{name:`refresh_token`,type:`string`,required:true,id:`param-refresh-token`,children:_jsxs(_components.p,{children:[`Use with `,_jsx(_components.a,{href:`/auth/refresh-token`,children:`Refresh a token`}),` to get new tokens without re-authenticating.`]})}),_jsx(ResponseField,{name:`token_type`,type:`string`,required:true,id:`param-token-type`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`Bearer`}),`.`]})}),_jsx(ResponseField,{name:`expires_in`,type:`integer`,required:true,id:`param-expires-in`,children:_jsx(_components.p,{children:`Seconds until the access token expires.`})})]})}),`\n`,_jsx(ResponseField,{name:`request_id`,type:`string`,required:true,id:`param-request-id`,children:_jsx(_components.p,{children:`Correlation id echoed on every response.`})})]})}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":"Exchange a verification code","description":"Redeem a verification code from Verify a one-time code for user tokens.","openapi":"POST /auth/token","href":"/auth/exchange-verification-code"}}},"mdxSourceWithNoJs":{"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`,..._provideComponents(),...props.components},{CodeBlock,Expandable,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Exchanges the single-use `,_jsx(_components.code,{children:`verification_code`}),` returned by `,_jsx(_components.a,{href:`/auth/verify-otp`,children:`Verify a one-time code`}),` for a user’s tokens, using the `,_jsx(_components.code,{children:`urn:openloophealth:oauth:grant-type:verification-code`}),` grant.`]}),`\n`,_jsxs(_components.p,{children:[`This is the last call in the required part of the `,_jsx(_components.a,{href:`/api-reference/user-registration-guide`,children:`User Registration`}),` flow — from here the user authenticates with their own tokens.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Permissions:`}),` None`]}),`\n`,_jsx(ParamField,{body:`grant_type`,type:`string`,required:true,id:`param-grant-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`urn:openloophealth:oauth:grant-type:verification-code`}),`.`]})}),`\n`,_jsx(ParamField,{body:`code`,type:`string`,required:true,id:`param-code`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`verification_code`}),` from `,_jsx(_components.code,{children:`POST /auth/verify-otp`}),`.`]})}),`\n`,_jsx(ParamField,{body:`client_id`,type:`string`,required:true,id:`param-client-id`,children:_jsx(_components.p,{children:`Must be the same client that requested the OTP.`})}),`\n`,_jsx(ParamField,{body:`client_secret`,type:`string`,required:true,id:`param-client-secret`,children:_jsx(_components.p,{children:`Your client secret.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,required:true,id:`param-data`,children:_jsxs(Expandable,{title:`data`,defaultOpen:true,children:[_jsx(ResponseField,{name:`access_token`,type:`string`,required:true,id:`param-access-token`,children:_jsx(_components.p,{children:`User access token.`})}),_jsx(ResponseField,{name:`refresh_token`,type:`string`,required:true,id:`param-refresh-token`,children:_jsxs(_components.p,{children:[`Use with `,_jsx(_components.a,{href:`/auth/refresh-token`,children:`Refresh a token`}),` to get new tokens without re-authenticating.`]})}),_jsx(ResponseField,{name:`token_type`,type:`string`,required:true,id:`param-token-type`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`Bearer`}),`.`]})}),_jsx(ResponseField,{name:`expires_in`,type:`integer`,required:true,id:`param-expires-in`,children:_jsx(_components.p,{children:`Seconds until the access token expires.`})})]})}),`\n`,_jsx(ResponseField,{name:`request_id`,type:`string`,required:true,id:`param-request-id`,children:_jsx(_components.p,{children:`Correlation id echoed on every response.`})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,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:`8`,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.openloophealth.com/v0.1/auth/token`}),_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:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"grant_type\": \"urn:openloophealth:oauth:grant-type:verification-code\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"code\": \"\u003cverification_code>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"client_id\": \"\u003cclient_id>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"client_secret\": \"\u003cclient_secret>\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200`,numberOfLines:`9`,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:`9`,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:` \"data\"`}),_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:` \"access_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eyJhbGciOiJSUzI1NiIs...\"`}),_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:` \"refresh_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"v1.MjNmZTgy...\"`}),_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:` \"token_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer\"`}),_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:` \"expires_in\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`900`})]}),`\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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1dc1fe12-f80f-408f-86a5-f5604d7568b1\"`})]}),`\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":"Exchange a verification code","description":"Redeem a verification code from Verify a one-time code for user tokens.","openapi":"POST /auth/token","href":"/auth/exchange-verification-code"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.openloophealth.com/v0.1/auth/token\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"grant_type\": \"urn:openloophealth:oauth:grant-type:verification-code\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"code\": \"\u0026#x3C;verification_code>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"client_id\": \"\u0026#x3C;client_id>\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"client_secret\": \"\u0026#x3C;client_secret>\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"access_token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"eyJhbGciOiJSUzI1NiIs...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"refresh_token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"v1.MjNmZTgy...\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"token_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"expires_in\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">900\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"request_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1dc1fe12-f80f-408f-86a5-f5604d7568b1\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Obtain or refresh tokens","description":"Redeem a verification code from Verify a one-time code for user tokens.","tags":["Auth"],"requestBody":"30bcca2a-02b1-4211-a09f-43e52d45093b","responses":{"200":"f0380385-2ee8-45bb-abac-400fbade0d8e","400":"0a6cfbac-aeda-43eb-8718-d3c14dea46fc","401":"52af8894-f1b9-4c35-83be-3398faba6dfc","403":"dc09c103-8931-4957-9ff7-fb19c779132c"},"x-hidden":true,"method":"post","type":"path","servers":["c242b877-71eb-4138-9d4e-930ddd911326","538c36be-4e83-42ab-98cd-fcf6de7f10e5"],"security":[],"path":"/auth/token","baseUrlOptions":["https://api.openloophealth.com/v0.1","https://api-staging.openloophealth.com/v0.1"],"title":"Obtain or refresh tokens","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"shellscript","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"shellscript","children":{"type":"code","key":null,"ref":null,"props":{"language":"shellscript","numberOfLines":"8","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#953800","--shiki-dark":"#DCDCAA"},"children":"curl"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -X"}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" POST"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" https://api.openloophealth.com/v0.1/auth/token"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -H"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"Content-Type: application/json\""}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":" \\"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#569CD6"},"children":" -d"}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" '{"}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"grant_type\": \"urn:openloophealth:oauth:grant-type:verification-code\","}}}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"code\": \"\u003cverification_code>\","}}}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"client_id\": \"\u003cclient_id>\","}}}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" \"client_secret\": \"\u003cclient_secret>\""}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":" }'"}}}},"\n"]}}}},"filename":"cURL"}],"requestExampleType":"mdx","responseExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"9","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"data\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": {"}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"access_token\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"eyJhbGciOiJSUzI1NiIs...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"refresh_token\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"v1.MjNmZTgy...\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"token_type\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Bearer\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"expires_in\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"900"}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":" },"}}}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"request_id\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"1dc1fe12-f80f-408f-86a5-f5604d7568b1\""}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"200"}],"responseExampleType":"mdx"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["grant_type","client_id","client_secret"],"description":"Fields required depend on `grant_type`: `client_credentials` also requires `audience`; the verification-code grant also requires `code`; `refresh_token` also requires `refresh_token`.","properties":{"grant_type":{"type":"string","enum":["client_credentials","urn:openloophealth:oauth:grant-type:verification-code","refresh_token"],"isRequired":true,"uniqueKey":"grant_type","typeLabel":"enum\u003cstring>"},"client_id":{"type":"string","isRequired":true,"uniqueKey":"client_id","typeLabel":"string"},"client_secret":{"type":"string","isRequired":true,"uniqueKey":"client_secret","typeLabel":"string"},"audience":{"type":"string","description":"Required for the `client_credentials` grant.","uniqueKey":"audience","typeLabel":"string"},"code":{"type":"string","description":"Verification code from `POST /auth/verify-otp`. Required for the verification-code grant.","uniqueKey":"code","typeLabel":"string"},"refresh_token":{"type":"string","description":"Required for the `refresh_token` grant.","uniqueKey":"refresh_token","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"client_id":"\u003cstring>","client_secret":"\u003cstring>","audience":"\u003cstring>","code":"\u003cstring>","refresh_token":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f0380385-2ee8-45bb-abac-400fbade0d8e":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"type":"object","required":["access_token","token_type","expires_in"],"properties":{"access_token":{"type":"string","isRequired":true,"uniqueKey":"data.access_token","typeLabel":"string"},"token_type":{"type":"string","enum":["Bearer"],"isRequired":true,"uniqueKey":"data.token_type","typeLabel":"enum\u003cstring>"},"expires_in":{"type":"integer","description":"Seconds until the access token expires.","isRequired":true,"uniqueKey":"data.expires_in","typeLabel":"integer"},"refresh_token":{"type":"string","description":"Present for the verification-code and refresh_token grants.","uniqueKey":"data.refresh_token","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"request_id":{"type":"string","format":"uuid","description":"Correlation id echoed on every response.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"access_token":"\u003cstring>","token_type":"Bearer","expires_in":123,"refresh_token":"\u003cstring>"},"request_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"0a6cfbac-aeda-43eb-8718-d3c14dea46fc":{"description":"Validation error.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"error_code":{"type":"string","isRequired":true,"uniqueKey":"error.error_code","typeLabel":"string"}},"required":["message","error_code"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","error_code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"52af8894-f1b9-4c35-83be-3398faba6dfc":{"description":"Invalid client credentials, code, or refresh token. Known defect: some 401 bodies, such as the one returned for an unregistered `client_id`, are not valid JSON. Branch on the HTTP status, not on `error.error_code`. If the body does not parse, treat it as plain text and pull `request_id` out of it before logging.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"error_code":{"type":"string","isRequired":true,"uniqueKey":"error.error_code","typeLabel":"string"}},"required":["message","error_code"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","error_code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"dc09c103-8931-4957-9ff7-fb19c779132c":{"description":"Client refused: the client, its organization, or its customer is inactive, or the client is not entitled to the requested `audience`. Known defect: the body for the `audience` case quotes the `client_id` back unescaped and is not valid JSON. If the body does not parse, treat it as plain text and pull `request_id` out of it before logging, as for the unregistered-client `401`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"error_code":{"type":"string","isRequired":true,"uniqueKey":"error.error_code","typeLabel":"string"}},"required":["message","error_code"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["error","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","error_code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"c242b877-71eb-4138-9d4e-930ddd911326":{"url":"https://api.openloophealth.com/v0.1","description":"Production partner edge"},"538c36be-4e83-42ab-98cd-fcf6de7f10e5":{"url":"https://api-staging.openloophealth.com/v0.1","description":"Staging partner edge (sandbox credentials)"}}},"originalFileLocation":"openapi.json"},"subdomain":"openloop","siteName":"Partners API Documentation","title":"Exchange a verification code - Partners API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T19:57:06.235Z","originalFileLocation":"auth/exchange-verification-code.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=\"Redeem a verification code from Verify a one-time code for user tokens.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Partners API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/openloop/LIC2QTmC6gcwcygU/_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/openloop/LIC2QTmC6gcwcygU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/openloop/LIC2QTmC6gcwcygU/_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/openloop/LIC2QTmC6gcwcygU/_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/openloop/LIC2QTmC6gcwcygU/_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/openloop/LIC2QTmC6gcwcygU/_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/openloop/LIC2QTmC6gcwcygU/_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/openloop/LIC2QTmC6gcwcygU/_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/openloop/LIC2QTmC6gcwcygU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Exchange a verification code - Partners API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Redeem a verification code from Verify a one-time code for user tokens.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Partners API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://openloop.mintlify.app/auth/exchange-verification-code\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://openloop.mintlify.site/_mintlify/api/og/v2?division=Auth\u0026amp;title=Exchange+a+verification+code\u0026amp;description=Redeem+a+verification+code+from+Verify+a+one-time+code+for+user+tokens.\u0026amp;theme=c3eb8a84b98e9b697f555ff9\u0026amp;signature=4782ad3119ca61c44657470ad3a4288dc135415fd0533cc5802b9d0347c72b21\">\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=\"Exchange a verification code - Partners API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Redeem a verification code from Verify a one-time code for user tokens.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://openloop.mintlify.site/_mintlify/api/og/v2?division=Auth\u0026amp;title=Exchange+a+verification+code\u0026amp;description=Redeem+a+verification+code+from+Verify+a+one-time+code+for+user+tokens.\u0026amp;theme=c3eb8a84b98e9b697f555ff9\u0026amp;signature=4782ad3119ca61c44657470ad3a4288dc135415fd0533cc5802b9d0347c72b21\">\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/openloop/LIC2QTmC6gcwcygU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Partners API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e34376\">\u003clink data-mint-head rel=\"canonical\" href=\"https://openloop.mintlify.app/auth/exchange-verification-code\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/auth/exchange-verification-code.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://openloop.mintlify.app/#organization\",\"name\":\"Partners API Documentation\",\"url\":\"https://openloop.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/openloop/uFqnU7STc2L-iY-j/logo/openloop_light.png?fit=max\u0026auto=format\u0026n=uFqnU7STc2L-iY-j\u0026q=85\u0026s=36c08284ca501fdefe4311339c563474\"}},{\"@type\":\"WebSite\",\"@id\":\"https://openloop.mintlify.app#website\",\"name\":\"Partners API Documentation\",\"url\":\"https://openloop.mintlify.app\",\"publisher\":{\"@id\":\"https://openloop.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://openloop.mintlify.app/auth/exchange-verification-code#webpage\",\"url\":\"https://openloop.mintlify.app/auth/exchange-verification-code\",\"name\":\"Exchange a verification code\",\"description\":\"Redeem a verification code from Verify a one-time code for user tokens.\",\"dateModified\":\"2026-09-10T19:57:06.235Z\",\"isPartOf\":{\"@id\":\"https://openloop.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://openloop.mintlify.app/auth/exchange-verification-code#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://openloop.mintlify.app/auth/exchange-verification-code#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Auth\",\"item\":\"https://openloop.mintlify.app/auth/obtain-token\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exchange a verification code\",\"item\":\"https://openloop.mintlify.app/auth/exchange-verification-code\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://openloop.mintlify.app/auth/exchange-verification-code#apireference\",\"headline\":\"Exchange a verification code\",\"name\":\"Exchange a verification code\",\"description\":\"Redeem a verification code from Verify a one-time code for user tokens.\",\"url\":\"https://openloop.mintlify.app/auth/exchange-verification-code\",\"mainEntityOfPage\":{\"@id\":\"https://openloop.mintlify.app/auth/exchange-verification-code#webpage\"},\"dateModified\":\"2026-09-10T19:57:06.235Z\",\"publisher\":{\"@id\":\"https://openloop.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://openloop.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Partners API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Partners API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/auth/exchange-verification-code.md","siteName":"Partners API Documentation","nav":{"global":{"anchors":[{"anchor":"OpenLoop Health","icon":"globe","href":"https://openloophealth.com"}]},"tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":""}]},{"tab":"Partner Cookbook","pages":[{"title":"Partner Cookbook","href":"/cookbook"}]},{"tab":"API Reference","groups":[{"group":"Guides","pages":[{"title":"API Overview","href":"/api-reference/introduction"},{"title":"Data Standards","mode":"wide","href":"/api-reference/data-standards"},{"title":"Best Practices","href":"/best-practices"},{"title":"Product \u0026 Price IDs","href":"/api-reference/product-and-price-ids"},{"title":"Scheduling","href":"/api-reference/scheduling-guide"},{"title":"Eligibility","href":"/api-reference/eligibility-guide"},{"title":"User Registration","href":"/api-reference/user-registration-guide"},{"title":"How orders are created","href":"/orders/order-model"}]},{"group":"Events","pages":[{"title":"Events","href":"/events"}]},{"group":"Auth","pages":[{"title":"Obtain a service token","openapi":"POST /auth/token","href":"/auth/obtain-token"},{"title":"Register a user","openapi":"post /auth/register","href":"/auth/register"},{"title":"Send a one-time code","openapi":"post /auth/send-otp","href":"/auth/send-otp"},{"title":"Verify a one-time code","description":"Redeem the one-time code a user received and get the verification code you exchange for tokens.","openapi":"post /auth/verify-otp","href":"/auth/verify-otp"},{"title":"Exchange a verification code","openapi":"POST /auth/token","href":"/auth/exchange-verification-code"},{"title":"Refresh a token","description":"Get new patient tokens from a refresh token, without re-authenticating.","openapi":"POST /auth/token","href":"/auth/refresh-token"},{"title":"Revoke a session","openapi":"post /auth/revoke","href":"/auth/revoke"}]},{"group":"Users","pages":[{"openapi":"get /iam/users/find","title":"Find a user by email","href":"/users/find-user"},{"title":"Read a user's patient link","openapi":"get /iam/users/links","href":"/users/get-user-link"},{"title":"Delete the current user","openapi":"delete /iam/users/me","href":"/users/delete-user"}]},{"group":"Allergy Intolerances","pages":[{"title":"List allergy intolerances","deprecated":null,"version":null,"openapi":"/openapi.json get /allergy-intolerances","href":"/api-reference/allergy-intolerances/list-allergy-intolerances"},{"title":"Create allergy intolerance","deprecated":null,"version":null,"openapi":"/openapi.json post /allergy-intolerances","href":"/api-reference/allergy-intolerances/create-allergy-intolerance"},{"title":"Get allergy intolerance","deprecated":null,"version":null,"openapi":"/openapi.json get /allergy-intolerances/{id}","href":"/api-reference/allergy-intolerances/get-allergy-intolerance"},{"title":"Update allergy intolerance","deprecated":null,"version":null,"openapi":"/openapi.json put /allergy-intolerances/{id}","href":"/api-reference/allergy-intolerances/update-allergy-intolerance"}]},{"group":"Consents","pages":[{"title":"List consents","deprecated":null,"version":null,"openapi":"/openapi.json get /consents","href":"/api-reference/consents/list-consents"},{"title":"Create consent","deprecated":null,"version":null,"openapi":"/openapi.json post /consents","href":"/api-reference/consents/create-consent"},{"title":"Get consent","deprecated":null,"version":null,"openapi":"/openapi.json get /consents/{id}","href":"/api-reference/consents/get-consent"},{"title":"Update consent","deprecated":null,"version":null,"openapi":"/openapi.json put /consents/{id}","href":"/api-reference/consents/update-consent"}]},{"group":"Document References","pages":[{"title":"List document references","deprecated":null,"version":null,"openapi":"/openapi.json get /document-references","href":"/api-reference/document-references/list-document-references"},{"title":"Create document reference","deprecated":null,"version":null,"openapi":"/openapi.json post /document-references","href":"/api-reference/document-references/create-document-reference"},{"title":"Upload document content","deprecated":null,"version":null,"openapi":"/openapi.json post /document-references/content","href":"/api-reference/document-references/upload-document-content"},{"title":"Get document reference","deprecated":null,"version":null,"openapi":"/openapi.json get /document-references/{id}","href":"/api-reference/document-references/get-document-reference"},{"title":"Update document reference","deprecated":null,"version":null,"openapi":"/openapi.json put /document-references/{id}","href":"/api-reference/document-references/update-document-reference"},{"title":"Get document reference content","deprecated":null,"version":null,"openapi":"/openapi.json get /document-references/{id}/content","href":"/api-reference/document-references/get-document-reference-content"}]},{"group":"Laboratories","pages":[{"title":"Create lab requisition","deprecated":null,"version":null,"openapi":"/openapi.json post /laboratories","href":"/api-reference/laboratories/create-lab-requisition"}]},{"group":"Medication Statements","pages":[{"title":"List medication statements","deprecated":null,"version":null,"openapi":"/openapi.json get /medication-statements","href":"/api-reference/medication-statements/list-medication-statements"},{"title":"Create medication statement","deprecated":null,"version":null,"openapi":"/openapi.json post /medication-statements","href":"/api-reference/medication-statements/create-medication-statement"},{"title":"Get medication statement","deprecated":null,"version":null,"openapi":"/openapi.json get /medication-statements/{id}","href":"/api-reference/medication-statements/get-medication-statement"}]},{"group":"Observations","pages":[{"title":"List observations","deprecated":null,"version":null,"openapi":"/openapi.json get /observations","href":"/api-reference/observations/list-observations"},{"title":"Create observation","deprecated":null,"version":null,"openapi":"/openapi.json post /observations","href":"/api-reference/observations/create-observation"},{"title":"Get observation","deprecated":null,"version":null,"openapi":"/openapi.json get /observations/{id}","href":"/api-reference/observations/get-observation"}]},{"group":"Organizations","pages":[{"title":"Get organization","deprecated":null,"version":null,"openapi":"/openapi.json get /organizations/{id}","href":"/api-reference/organizations/get-organization"}]},{"group":"Patients","pages":[{"title":"List patients","deprecated":null,"version":null,"openapi":"/openapi.json get /patients","href":"/api-reference/patients/list-patients"},{"title":"Create patient","deprecated":null,"version":null,"openapi":"/openapi.json post /patients","href":"/api-reference/patients/create-patient"},{"title":"Get patient","deprecated":null,"version":null,"openapi":"/openapi.json get /patients/{id}","href":"/api-reference/patients/get-patient"},{"title":"Update patient","deprecated":null,"version":null,"openapi":"/openapi.json put /patients/{id}","href":"/api-reference/patients/update-patient"}]},{"group":"Users","pages":[{"title":"Delete your account","deprecated":null,"version":null,"openapi":"/openapi.json delete /iam/users/me","href":"/api-reference/users/delete-your-account"},{"title":"Get a user's linked record","deprecated":null,"version":null,"openapi":"/openapi.json get /iam/users/links","href":"/api-reference/users/get-a-users-linked-record"},{"title":"Find a user by email","deprecated":null,"version":null,"openapi":"/openapi.json get /iam/users/find","href":"/api-reference/users/find-a-user-by-email"}]},{"group":"Questionnaire Responses","pages":[{"title":"List questionnaire responses","deprecated":null,"version":null,"openapi":"/openapi.json get /questionnaire-responses","href":"/api-reference/questionnaire-responses/list-questionnaire-responses"},{"title":"Create questionnaire response","deprecated":null,"version":null,"openapi":"/openapi.json post /questionnaire-responses","href":"/api-reference/questionnaire-responses/create-questionnaire-response"},{"title":"Get questionnaire response","deprecated":null,"version":null,"openapi":"/openapi.json get /questionnaire-responses/{id}","href":"/api-reference/questionnaire-responses/get-questionnaire-response"},{"title":"Update questionnaire response","deprecated":null,"version":null,"openapi":"/openapi.json put /questionnaire-responses/{id}","href":"/api-reference/questionnaire-responses/update-questionnaire-response"}]},{"group":"Questionnaires","pages":[{"title":"List questionnaires","deprecated":null,"version":null,"openapi":"/openapi.json get /questionnaires","href":"/api-reference/questionnaires/list-questionnaires"},{"title":"Get questionnaire","deprecated":null,"version":null,"openapi":"/openapi.json get /questionnaires/{id}","href":"/api-reference/questionnaires/get-questionnaire"}]},{"group":"Related Persons","pages":[{"title":"List related persons","deprecated":null,"version":null,"openapi":"/openapi.json get /related-persons","href":"/api-reference/related-persons/list-related-persons"},{"title":"Create related person","deprecated":null,"version":null,"openapi":"/openapi.json post /related-persons","href":"/api-reference/related-persons/create-related-person"},{"title":"Get related person","deprecated":null,"version":null,"openapi":"/openapi.json get /related-persons/{id}","href":"/api-reference/related-persons/get-related-person"},{"title":"Update related person","deprecated":null,"version":null,"openapi":"/openapi.json put /related-persons/{id}","href":"/api-reference/related-persons/update-related-person"}]},{"group":"Sites","pages":[{"title":"List sites","deprecated":null,"version":null,"openapi":"/openapi.json get /sites","href":"/api-reference/sites/list-sites"},{"title":"Create site","deprecated":null,"version":null,"openapi":"/openapi.json post /sites","href":"/api-reference/sites/create-site"},{"title":"Get site","deprecated":null,"version":null,"openapi":"/openapi.json get /sites/{key}","href":"/api-reference/sites/get-site"},{"title":"Delete site","deprecated":null,"version":null,"openapi":"/openapi.json delete /sites/{key}","href":"/api-reference/sites/delete-site"},{"title":"Update site","deprecated":null,"version":null,"openapi":"/openapi.json patch /sites/{key}","href":"/api-reference/sites/update-site"}]},{"group":"Tasks","pages":[{"title":"List tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Create task","deprecated":null,"version":null,"openapi":"/openapi.json post /tasks","href":"/api-reference/tasks/create-task"},{"title":"Get task","deprecated":null,"version":null,"openapi":"/openapi.json get /tasks/{id}","href":"/api-reference/tasks/get-task"},{"title":"Update task","deprecated":null,"version":null,"openapi":"/openapi.json put /tasks/{id}","href":"/api-reference/tasks/update-task"},{"title":"Delete task","deprecated":null,"version":null,"openapi":"/openapi.json delete /tasks/{id}","href":"/api-reference/tasks/delete-task"}]},{"group":"Scheduling","pages":[{"title":"List bookable appointment types","deprecated":null,"version":null,"openapi":"/openapi.json get /appointment-types","href":"/api-reference/scheduling/list-bookable-appointment-types"},{"title":"Retrieve an appointment type","deprecated":null,"version":null,"openapi":"/openapi.json get /appointment-types/{id}","href":"/api-reference/scheduling/retrieve-an-appointment-type"},{"title":"Search available slots","deprecated":null,"version":null,"openapi":"/openapi.json get /slots","href":"/api-reference/scheduling/search-available-slots"},{"title":"Reserve a slot","deprecated":null,"version":null,"openapi":"/openapi.json post /reservations","href":"/api-reference/scheduling/reserve-a-slot"},{"title":"Release a slot reservation","deprecated":null,"version":null,"openapi":"/openapi.json delete /reservations/{id}","href":"/api-reference/scheduling/release-a-slot-reservation"},{"title":"List appointments","deprecated":null,"version":null,"openapi":"/openapi.json get /appointments","href":"/api-reference/scheduling/list-appointments"},{"title":"Book an appointment","deprecated":null,"version":null,"openapi":"/openapi.json post /appointments","href":"/api-reference/scheduling/book-an-appointment"},{"title":"Retrieve an appointment","deprecated":null,"version":null,"openapi":"/openapi.json get /appointments/{id}","href":"/api-reference/scheduling/retrieve-an-appointment"},{"title":"Update an appointment","deprecated":null,"version":null,"openapi":"/openapi.json patch /appointments/{id}","href":"/api-reference/scheduling/update-an-appointment"}]},{"group":"Prices","pages":[{"title":"Get Price","deprecated":null,"version":null,"openapi":"/openapi.json get /prices/{price_id}","href":"/api-reference/prices/get-price"}]},{"group":"Products","pages":[{"title":"List Products","deprecated":null,"version":null,"openapi":"/openapi.json get /products","href":"/api-reference/products/list-products"},{"title":"Get Product By Id","deprecated":null,"version":null,"openapi":"/openapi.json get /products/{product_id}","href":"/api-reference/products/get-product-by-id"},{"title":"List Product Prices","deprecated":null,"version":null,"openapi":"/openapi.json get /products/{product_id}/prices","href":"/api-reference/products/list-product-prices"}]},{"group":"Checkout","pages":[{"title":"Create Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json post /checkouts/sessions","href":"/api-reference/checkout/create-checkout-session"}]},{"group":"Coupons","pages":[{"title":"List Coupons","deprecated":null,"version":null,"openapi":"/openapi.json get /coupons","href":"/api-reference/coupons/list-coupons"},{"title":"Create Coupons","deprecated":null,"version":null,"openapi":"/openapi.json post /coupons","href":"/api-reference/coupons/create-coupons"},{"title":"Get Coupon","deprecated":null,"version":null,"openapi":"/openapi.json get /coupons/{provider_coupon_id}","href":"/api-reference/coupons/get-coupon"},{"title":"Delete Coupon","deprecated":null,"version":null,"openapi":"/openapi.json delete /coupons/{provider_coupon_id}","href":"/api-reference/coupons/delete-coupon"}]},{"group":"Intents","pages":[{"title":"Get Payment Intent","deprecated":null,"version":null,"openapi":"/openapi.json get /intents/payments/{provider_payment_intent_id}","href":"/api-reference/intents/get-payment-intent"},{"title":"Get Setup Intent","deprecated":null,"version":null,"openapi":"/openapi.json get /intents/setups/{provider_setup_intent_id}","href":"/api-reference/intents/get-setup-intent"},{"title":"Create Setup Intent","deprecated":null,"version":null,"openapi":"/openapi.json post /intents/setups","href":"/api-reference/intents/create-setup-intent"}]},{"group":"Invoices","pages":[{"title":"Get Invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /invoices","href":"/api-reference/invoices/get-invoices"},{"title":"Create Invoice Preview","deprecated":null,"version":null,"openapi":"/openapi.json post /invoices/previews","href":"/api-reference/invoices/create-invoice-preview"},{"title":"Pay Invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /invoices/{provider_invoice_id}/payments","href":"/api-reference/invoices/pay-invoice"},{"title":"Create Refund","deprecated":null,"version":null,"openapi":"/openapi.json post /invoices/{provider_invoice_id}/refunds","href":"/api-reference/invoices/create-refund"}]},{"group":"Payment Methods","pages":[{"title":"Get Payment Methods","deprecated":null,"version":null,"openapi":"/openapi.json get /payment-methods","href":"/api-reference/payment-methods/get-payment-methods"}]},{"group":"Promotion Codes","pages":[{"title":"List Promotion Codes","deprecated":null,"version":null,"openapi":"/openapi.json get /promotion-codes","href":"/api-reference/promotion-codes/list-promotion-codes"},{"title":"Create Promotion Code","deprecated":null,"version":null,"openapi":"/openapi.json post /promotion-codes","href":"/api-reference/promotion-codes/create-promotion-code"},{"title":"Deactivate Promotion Code","deprecated":null,"version":null,"openapi":"/openapi.json delete /promotion-codes/{provider_promotion_code_id}","href":"/api-reference/promotion-codes/deactivate-promotion-code"}]},{"group":"Subscriptions","pages":[{"title":"Get Subscriptions","deprecated":null,"version":null,"openapi":"/openapi.json get /subscriptions","href":"/api-reference/subscriptions/get-subscriptions"},{"title":"Create Subscription","deprecated":null,"version":null,"openapi":"/openapi.json post /subscriptions","href":"/api-reference/subscriptions/create-subscription"},{"title":"Get Subscription","deprecated":null,"version":null,"openapi":"/openapi.json get /subscriptions/{provider_subscription_id}","href":"/api-reference/subscriptions/get-subscription"},{"title":"Update Subscription","deprecated":null,"version":null,"openapi":"/openapi.json put /subscriptions/{provider_subscription_id}","href":"/api-reference/subscriptions/update-subscription"},{"title":"Cancel Subscription","deprecated":null,"version":null,"openapi":"/openapi.json delete /subscriptions/{provider_subscription_id}","href":"/api-reference/subscriptions/cancel-subscription"},{"title":"List Subscription Invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /subscriptions/{provider_subscription_id}/invoices","href":"/api-reference/subscriptions/list-subscription-invoices"},{"title":"Pause Subscription","deprecated":null,"version":null,"openapi":"/openapi.json post /subscriptions/{provider_subscription_id}/pauses","href":"/api-reference/subscriptions/pause-subscription"},{"title":"Resume Subscription","deprecated":null,"version":null,"openapi":"/openapi.json delete /subscriptions/{provider_subscription_id}/pauses","href":"/api-reference/subscriptions/resume-subscription"}]},{"group":"Configs","pages":[{"title":"Get Config","deprecated":null,"version":null,"openapi":"/openapi.json get /configs","href":"/api-reference/configs/get-config"}]},{"group":"Billing Portals","pages":[{"title":"List Billing Portals","deprecated":null,"version":null,"openapi":"/openapi.json get /billing-portals","href":"/api-reference/billing-portals/list-billing-portals"},{"title":"Create Retention Portal Session","deprecated":null,"version":null,"openapi":"/openapi.json post /billing-portals/retention-sessions","href":"/api-reference/billing-portals/create-retention-portal-session"},{"title":"Create Portal Session","deprecated":null,"version":null,"openapi":"/openapi.json post /billing-portals/{provider_billing_portal_id}/sessions","href":"/api-reference/billing-portals/create-portal-session"}]},{"group":"Auth","pages":[]},{"group":"Billing Customers","pages":[{"title":"Get Customers","deprecated":null,"version":null,"openapi":"/openapi.json get /billing-customers","href":"/api-reference/billing-customers/get-customers"},{"title":"Create Customer","deprecated":null,"version":null,"openapi":"/openapi.json post /billing-customers","href":"/api-reference/billing-customers/create-customer"},{"title":"Get Customer","deprecated":null,"version":null,"openapi":"/openapi.json get /billing-customers/{provider_customer_id}","href":"/api-reference/billing-customers/get-customer"},{"title":"Update Customer","deprecated":null,"version":null,"openapi":"/openapi.json put /billing-customers/{provider_customer_id}","href":"/api-reference/billing-customers/update-customer"},{"title":"List Billing Customer Subscriptions","deprecated":null,"version":null,"openapi":"/openapi.json get /billing-customers/{provider_customer_id}/subscriptions","href":"/api-reference/billing-customers/list-billing-customer-subscriptions"},{"title":"List Balance Transactions","deprecated":null,"version":null,"openapi":"/openapi.json get /billing-customers/{provider_customer_id}/balance-transactions","href":"/api-reference/billing-customers/list-balance-transactions"},{"title":"Create Balance Transaction","deprecated":null,"version":null,"openapi":"/openapi.json post /billing-customers/{provider_customer_id}/balance-transactions","href":"/api-reference/billing-customers/create-balance-transaction"}]},{"group":"Eligibility","pages":[{"title":"Submit an eligibility verification","deprecated":null,"version":null,"openapi":"/openapi.json post /eligibility-verifications","href":"/api-reference/eligibility/submit-an-eligibility-verification"},{"title":"Retrieve an eligibility verification","deprecated":null,"version":null,"openapi":"/openapi.json get /eligibility-verifications/{id}","href":"/api-reference/eligibility/retrieve-an-eligibility-verification"},{"title":"Submit an insurance discovery","deprecated":null,"version":null,"openapi":"/openapi.json post /insurance-discoveries","href":"/api-reference/eligibility/submit-an-insurance-discovery"},{"title":"Retrieve an insurance discovery","deprecated":null,"version":null,"openapi":"/openapi.json get /insurance-discoveries/{id}","href":"/api-reference/eligibility/retrieve-an-insurance-discovery"},{"title":"Coordinate benefits across payers","deprecated":null,"version":null,"openapi":"/openapi.json post /benefit-coordinations","href":"/api-reference/eligibility/coordinate-benefits-across-payers"},{"title":"Resolve a Medicare Beneficiary Identifier","deprecated":null,"version":null,"openapi":"/openapi.json post /medicare-id-lookups","href":"/api-reference/eligibility/resolve-a-medicare-beneficiary-identifier"},{"title":"Check network status for a payer in a state","deprecated":null,"version":null,"openapi":"/openapi.json post /network-status","href":"/api-reference/eligibility/check-network-status-for-a-payer-in-a-state"}]},{"group":"Payer Directory","pages":[{"title":"List or search payers","deprecated":null,"version":null,"openapi":"/openapi.json get /payers","href":"/api-reference/payer-directory/list-or-search-payers"},{"title":"Retrieve a payer","deprecated":null,"version":null,"openapi":"/openapi.json get /payers/{payer_id}","href":"/api-reference/payer-directory/retrieve-a-payer"}]},{"group":"Patient Passport","pages":[{"title":"Get a patient's Passport profile","deprecated":null,"version":null,"openapi":"/openapi.json get /passport/profile","href":"/api-reference/patient-passport/get-a-patients-passport-profile"},{"title":"List a patient's Passport appointments","deprecated":null,"version":null,"openapi":"/openapi.json get /passport/appointments","href":"/api-reference/patient-passport/list-a-patients-passport-appointments"},{"title":"List a patient's Passport orders","deprecated":null,"version":null,"openapi":"/openapi.json get /passport/orders","href":"/api-reference/patient-passport/list-a-patients-passport-orders"},{"title":"List a patient's Passport subscriptions","deprecated":null,"version":null,"openapi":"/openapi.json get /passport/subscriptions","href":"/api-reference/patient-passport/list-a-patients-passport-subscriptions"},{"title":"Get a patient's Passport journey","deprecated":null,"version":null,"openapi":"/openapi.json get /passport/journey","href":"/api-reference/patient-passport/get-a-patients-passport-journey"}]}]}]},"basePath":"","title":"Exchange a verification code - Partners API Documentation","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B6WFFOBL.js","utils-BN5um1KA.js","cloneDeep-C3md22mN.js","_Uint8Array-DLlL8L26.js","isObject-FP1Yky1u.js","utils-BSmbkXJR.js","addUniqueKeysToSchema-2tqcVnUE.js","snippetPresets-CtWfvr2J.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DkKHBy30.js","isEqual-O3q7y6pq.js","usePlaygroundInputsStore-Brc5H9UJ.js","shallow-C4L4xvbs.js","getApiPlaygroundDisplay-2bxyq_aI.js","CodeSnippet-BJu8ddd5.js","CodeSnippets-dazWmoqB.js","Page-CnLhKuUV.js","getPastedJson-Chy3Qa1S.js","icon-CyO7h3jh.js","MethodPill-Dle0_91v.js","DuplicateIcon-CVvWAf4a.js","createIcon-Di07A27B.js","DynamicMarkdown-C4w9kavL.js","SectionHeading-XiBebVYC.js","axios-vUo_bRtp.js","Markdown-DTeL0SpS.js","dist-OCScizqf.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-KcneGfMY.js"]}