If you suspect a token has been compromised, revoke it immediately.
async function handleSecurityIncident(compromisedToken) { await fetch('https://api.fyatu.com/api/v3/auth/revoke', { method: 'POST', headers: { 'Authorization': `Bearer ${compromisedToken}` } }); // Get a fresh token with new credentials}
Credential Rotation
When rotating API credentials, revoke existing tokens first.
Error Codes
Code
Description
AUTH_TOKEN_MISSING
No Authorization header provided
AUTH_TOKEN_INVALID
Token is malformed or already expired
Once a token is revoked, it cannot be used for any API requests. Any in-flight requests using the revoked token may fail.
After revoking a token, immediately clear it from your application’s storage to prevent accidental reuse.
Authorizations
Authorization
string
header
required
JWT access token obtained from /auth/token
Response
Token revoked successfully
success
boolean
Example:
true
status
integer
Example:
200
message
string
Example:
"Token revoked successfully"
data
object
Show child attributes
meta
object
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FYATU API Docs","colors":{"primary":"#721D5D","light":"#D877C7","dark":"#721D5D"},"logo":{"light":"https://mintcdn.com/fyatu/1Y4pa7wxF_kMnOCq/logo/light.png?fit=max\u0026auto=format\u0026n=1Y4pa7wxF_kMnOCq\u0026q=85\u0026s=da06db892390b1d64a6da61ed20cf95e","dark":"https://mintcdn.com/fyatu/1Y4pa7wxF_kMnOCq/logo/dark.png?fit=max\u0026auto=format\u0026n=1Y4pa7wxF_kMnOCq\u0026q=85\u0026s=4699a651f759eba858eeebf169065ec2"},"favicon":"https://mintcdn.com/fyatu/bV6pmu3sbyQM-yrA/favicon.png?fit=max\u0026auto=format\u0026n=bV6pmu3sbyQM-yrA\u0026q=85\u0026s=8da36463646e8abbfbdff7ecb626062a","api":{"playground":{}},"navbar":{"primary":{"type":"button","label":"Get API Keys","href":"https://platform.fyatu.com/developers/api-keys"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/fyatu","x":"https://x.com/fyatucard","instagram":"https://www.instagram.com/fyatucard","facebook":"https://www.facebook.com/fyatucard","youtube":"https://www.youtube.com/@fyatu","telegram":"https://t.me/fyatupay"},"links":[{"header":"Products","items":[{"label":"Card Issuing","href":"https://fyatu.com/card-issuing"},{"label":"Virtual Cards","href":"https://fyatu.com/virtual-cards"},{"label":"Credit Cards","href":"https://fyatu.com/credit-cards"},{"label":"Digital Wallet","href":"https://fyatu.com/digital-wallet-cards"},{"label":"Prepaid Cards","href":"https://fyatu.com/prepaid-cards"},{"label":"One Time Card","href":"https://fyatu.com/one-time-card"}]},{"header":"Coverage","items":[{"label":"Africa","href":"https://fyatu.com/region/africa"},{"label":"Eastern Europe","href":"https://fyatu.com/region/eastern-europe"},{"label":"Latin America","href":"https://fyatu.com/region/latin-america"},{"label":"Middle East","href":"https://fyatu.com/region/middle-east"}]},{"header":"Company","items":[{"label":"Contact","href":"https://fyatu.com/contact"},{"label":"Security","href":"https://fyatu.com/security"},{"label":"Terms of Service","href":"https://fyatu.com/terms"},{"label":"Refund Policy","href":"https://fyatu.com/refund-policy"}]},{"header":"Tools","items":[{"label":"BIN Checker","href":"https://fyatu.com/tools/bin-checker"},{"label":"Bank Directory","href":"https://fyatu.com/banks"},{"label":"Country Data","href":"https://fyatu.com/countries"},{"label":"Decline Codes","href":"https://fyatu.com/tools/decline-codes"}]}]},"search":{"prompt":"Search FYATU API docs..."},"seo":{"metatags":{"og:site_name":"Fyatu API Documentation — Card Issuing API","og:type":"website","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@fyatu","robots":"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1","googlebot":"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"card issuing API, virtual card API, Mastercard API, Visa API, prepaid card issuing, 3D Secure cards, Apple Pay API, Google Pay API, fintech API Africa, payment API, payout API, webhook API, REST API card issuing, programmatic card issuing, virtual debit card API, card program API, mobile money API, payment gateway Africa"}},"metadata":{"timestamp":false},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://fyatu.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fyatu","hasAudioNarration":false,"actualSubdomain":"fyatu","customDomains":["docs.fyatu.com"],"gitSource":{"type":"github","owner":"fyatu","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b00b00e964ab5c3f5ff2960","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Webhooks","count":77},{"language":"default","tag":"API Reference","count":72},{"language":"default","tag":"Cards","count":61},{"language":"default","tag":"Documentation","count":22},{"language":"default","tag":"Cardholders","count":19},{"language":"default","tag":"Card Events","count":15},{"language":"default","tag":"Account","count":14},{"language":"default","tag":"Cardholder Events","count":10},{"language":"default","tag":"Getting Started","count":9},{"language":"default","tag":"Concepts","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":"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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":[{"filePath":"style.css","content":"@font-face{font-family:'Clash Grotesk';src:url('/fonts/ClashGrotesk-Variable.woff2') format('woff2');font-weight:200 700;font-style:normal;font-display:swap}#footer[data-fyatu-footer]{--ff-bg:#f9fafb;--ff-head:#111827;--ff-link:#4b5563;--ff-link-hover:#721D5D;--ff-line:rgba(17,24,39,.10);--ff-soft-line:rgba(17,24,39,.08);--ff-icon:#6b7280;--ff-icon-hover:#721D5D;--ff-muted:#6b7280;--ff-legal-sep:#d1d5db;--ff-legal-under:#d1d5db;--ff-legal-hover:#111827;--ff-fine:#6b7280}html.dark #footer[data-fyatu-footer]{--ff-bg:#111827;--ff-head:#fff;--ff-link:#9ca3af;--ff-link-hover:#fff;--ff-line:rgba(255,255,255,.10);--ff-soft-line:rgba(255,255,255,.08);--ff-icon:#6b7280;--ff-icon-hover:#fff;--ff-muted:#6b7280;--ff-legal-sep:#374151;--ff-legal-under:#4b5563;--ff-legal-hover:#d1d5db;--ff-fine:#4b5563}#footer[data-fyatu-footer]{background:var(--ff-bg)!important;border-top:1px solid var(--ff-line)!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important;display:block!important}[data-fyatu-footer] *{box-sizing:border-box}[data-fyatu-footer] .ff-wrap{max-width:1440px;margin:0 auto;padding:0 16px}@media (min-width:640px){[data-fyatu-footer] .ff-wrap{padding:0 24px}}@media (min-width:1024px){[data-fyatu-footer] .ff-wrap{padding:0 40px}}[data-fyatu-footer] h3{margin:0 0 20px;font-size:16px;line-height:24px;font-weight:700;color:var(--ff-head)}[data-fyatu-footer] a{color:var(--ff-link);font-size:16px;line-height:1.375;font-weight:600;text-decoration:none;transition:color .15s}[data-fyatu-footer] a:hover{color:var(--ff-link-hover)}[data-fyatu-footer] ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}[data-fyatu-footer] li{margin:0;padding:0}[data-fyatu-footer] .ff-nav{padding:56px 0 32px;display:flex;flex-direction:column;gap:32px}[data-fyatu-footer] .ff-products{padding-bottom:32px;border-bottom:1px solid var(--ff-line)}[data-fyatu-footer] .ff-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px}[data-fyatu-footer] .ff-cols{display:grid;grid-template-columns:1fr 1fr;gap:32px}@media (min-width:640px){[data-fyatu-footer] .ff-cols{grid-template-columns:repeat(3,1fr);gap:40px}}@media (min-width:1024px){[data-fyatu-footer] .ff-nav{flex-direction:row;gap:0}[data-fyatu-footer] .ff-products{width:38%;padding:0 48px 0 0;border-bottom:0;border-right:1px solid var(--ff-line)}[data-fyatu-footer] .ff-cols{width:62%;padding-left:48px;gap:0}[data-fyatu-footer] .ff-col{padding:0 16px}[data-fyatu-footer] .ff-col:first-child{padding:0 32px 0 0}[data-fyatu-footer] .ff-col:last-child{padding:0 0 0 32px}}[data-fyatu-footer] .ff-social{display:flex;align-items:center;gap:20px;padding:32px 0 24px}[data-fyatu-footer] .ff-social>span{flex:1;height:1px;background:var(--ff-soft-line)}[data-fyatu-footer] .ff-social>div{display:flex;align-items:center;gap:16px}[data-fyatu-footer] .ff-social a{color:var(--ff-icon);display:inline-flex}[data-fyatu-footer] .ff-social a:hover{color:var(--ff-icon-hover)}[data-fyatu-footer] .ff-social svg{width:24px;height:24px}@media (min-width:640px){[data-fyatu-footer] .ff-social>div{gap:32px}[data-fyatu-footer] .ff-social svg{width:32px;height:32px}}[data-fyatu-footer] .ff-base{display:flex;flex-direction:column;align-items:center;gap:12px;padding-bottom:24px}[data-fyatu-footer] .ff-base img{height:64px;width:auto;opacity:.7;margin:0!important}[data-fyatu-footer] .ff-base p{margin:0;font-size:14px;color:var(--ff-muted)}[data-fyatu-footer] .ff-legal{display:flex;flex-wrap:wrap;justify-content:center;row-gap:8px;margin-top:12px}[data-fyatu-footer] .ff-legal a{font-size:14px;font-weight:400;color:var(--ff-muted);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--ff-legal-under)}[data-fyatu-footer] .ff-legal a:hover{color:var(--ff-legal-hover)}[data-fyatu-footer] .ff-legal a:not(:last-child)::after{content:'|';margin:0 12px;color:var(--ff-legal-sep);display:inline-block;text-decoration:none}[data-fyatu-footer] .ff-disclosure{border-top:1px solid var(--ff-soft-line);padding:24px 0}[data-fyatu-footer] .ff-disclosure p{max-width:768px;margin:0 auto 8px;text-align:center;font-size:14px;line-height:1.625;color:var(--ff-fine)}[data-fyatu-footer] .ff-disclosure p:last-child{margin-bottom:0}[data-fyatu-footer] .ff-logo-dark{display:none}html.dark [data-fyatu-footer] .ff-logo-dark{display:inline}html.dark [data-fyatu-footer] .ff-logo-light{display:none}[data-fyatu-footer] .ff-base img.ff-logo-light{opacity:1}"}]}
{"page":{"pagePath":"v3/api-reference/auth/revoke","slug":"/v3/api-reference/auth/revoke","pageMetadata":{"title":"Revoke Token","description":"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.","openapi":"v3/openapi.json POST /auth/revoke","href":"/v3/api-reference/auth/revoke"},"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: \"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Table,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Invalidate an access token before it naturally expires. Use this when:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`User logs out of your application`}),`\n`,_jsx(_components.li,{children:`You detect suspicious activity`}),`\n`,_jsx(_components.li,{children:`Credentials may have been compromised`}),`\n`,_jsx(_components.li,{children:`Token is no longer needed`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-revoke-tokens`,children:`When to Revoke Tokens`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`User Logout`,id:`user-logout`,children:[_jsx(_components.p,{children:`When a user explicitly logs out, revoke their token to prevent unauthorized access.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` logout`}),_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\":`#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.fyatu.com/api/v3/auth/revoke'`}),_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:`'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currentToken`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` localStorage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`removeItem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'fyatu_token'`}),_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(Accordion,{title:`Security Incident`,id:`security-incident`,children:[_jsx(_components.p,{children:`If you suspect a token has been compromised, revoke it immediately.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handleSecurityIncident`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`compromisedToken`}),_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\":`#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.fyatu.com/api/v3/auth/revoke'`}),_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:`'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`compromisedToken`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Get a fresh token with new credentials`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsx(Accordion,{title:`Credential Rotation`,id:`credential-rotation`,children:_jsx(_components.p,{children:`When rotating API credentials, revoke existing tokens first.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_TOKEN_MISSING`})}),_jsx(_components.td,{children:`No Authorization header provided`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTH_TOKEN_INVALID`})}),_jsx(_components.td,{children:`Token is malformed or already expired`})]})]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Once a token is revoked, it cannot be used for any API requests. Any in-flight requests using the revoked token may fail.`})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`After revoking a token, immediately clear it from your application’s storage to prevent accidental reuse.`})})]})}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":"Revoke Token","description":"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.","openapi":"v3/openapi.json POST /auth/revoke","href":"/v3/api-reference/auth/revoke"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"When to Revoke Tokens","slug":"when-to-revoke-tokens","depth":2,"children":[]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/fyatu/5ce54d4312ebdc4f/footer.js"],"openApiReferenceData":{"operation":{"tags":["Authentication"],"operationId":"revokeToken","summary":"Revoke Access Token","description":"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.","security":["e1ee5278-9eef-4d28-97ed-6e7d008e66a2"],"responses":{"200":"81f3cdea-b12f-4ae8-ad49-ca45d2cb8559","401":"9bb1faeb-f864-42a7-8f0f-baea4c33e945"},"method":"post","type":"path","servers":["1371ac77-6d70-4c14-87c8-47519e1f03cc"],"path":"/auth/revoke","baseUrlOptions":["https://api.fyatu.com/api/v3"],"title":"Revoke Access Token","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"responses":{"81f3cdea-b12f-4ae8-ad49-ca45d2cb8559":{"description":"Token revoked successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"status":{"type":"integer","example":200,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"Token revoked successfully","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"revoked":{"type":"boolean","description":"Whether the token was successfully revoked","example":true,"uniqueKey":"data.revoked","typeLabel":"boolean"}},"uniqueKey":"data","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","description":"Unique request ID for tracking","example":"req_abc123def456","uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of the response","uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":true,"status":200,"message":"Token revoked successfully","data":{"revoked":true},"meta":{"requestId":"req_abc123def456","timestamp":"2026-01-05T10:30:00+00:00"}},"examples":{"Example":{"title":"Example","value":{"success":true,"status":200,"message":"Token revoked successfully","data":{"revoked":true},"meta":{"requestId":"req_abc123def456","timestamp":"2026-01-05T10:30:00+00:00"}}}},"exampleType":"examples"}},"exampleType":"examples"},"9bb1faeb-f864-42a7-8f0f-baea4c33e945":{"description":"Invalid or expired token","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"status":{"type":"integer","example":401,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"Invalid credentials","uniqueKey":"message","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code for programmatic handling","example":"AUTH_INVALID_CREDENTIALS","uniqueKey":"error.code","typeLabel":"string"},"details":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Field that failed validation","example":"appId","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","description":"Validation error message","example":"AppId is required","uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"description":"Validation error details (for VALIDATION_ERROR)","uniqueKey":"error.details","typeLabel":"object[]"}},"uniqueKey":"error","typeLabel":"object"},"meta":{"type":"object","properties":{"requestId":{"type":"string","description":"Unique request ID for tracking","example":"req_abc123def456","uniqueKey":"meta.requestId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of the response","uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"meta","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":false,"status":401,"message":"Invalid or expired token","error":{"code":"AUTH_TOKEN_INVALID"},"meta":{"requestId":"req_abc123def456","timestamp":"2026-01-05T10:30:00+00:00"}},"examples":{"Example":{"title":"Example","value":{"success":false,"status":401,"message":"Invalid or expired token","error":{"code":"AUTH_TOKEN_INVALID"},"meta":{"requestId":"req_abc123def456","timestamp":"2026-01-05T10:30:00+00:00"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"e1ee5278-9eef-4d28-97ed-6e7d008e66a2":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT access token obtained from /auth/token","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"1371ac77-6d70-4c14-87c8-47519e1f03cc":{"url":"https://api.fyatu.com/api/v3","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT access token obtained from /auth/token","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"JWT access token obtained from /auth/token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"v3/openapi.json"},"subdomain":"fyatu","siteName":"FYATU API Docs","title":"Revoke Token - FYATU API Docs","navMaps":{"firstHrefInVersion":{"v3.20 — CaaS":{"href":"/home","matchLevel":4},"v3 — Business":{"href":"/v3/api-reference/auth/revoke","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T09:55:42.514Z","originalFileLocation":"v3/api-reference/auth/revoke.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=\"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.\">\u003cmeta data-mint-head name=\"keywords\" content=\"card issuing API, virtual card API, Mastercard API, Visa API, prepaid card issuing, 3D Secure cards, Apple Pay API, Google Pay API, fintech API Africa, payment API, payout API, webhook API, REST API card issuing, programmatic card issuing, virtual debit card API, card program API, mobile money API, payment gateway Africa\">\u003cmeta data-mint-head name=\"application-name\" content=\"FYATU API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fyatu/b3wN_qy-N1otkCBP/_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/fyatu/b3wN_qy-N1otkCBP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fyatu/b3wN_qy-N1otkCBP/_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/fyatu/b3wN_qy-N1otkCBP/_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/fyatu/b3wN_qy-N1otkCBP/_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/fyatu/b3wN_qy-N1otkCBP/_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/fyatu/b3wN_qy-N1otkCBP/_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/fyatu/b3wN_qy-N1otkCBP/_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/fyatu/b3wN_qy-N1otkCBP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Revoke Token - FYATU API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fyatu API Documentation — Card Issuing API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fyatu.com/v3/api-reference/auth/revoke\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fyatu.mintlify.site/_mintlify/api/og/v2?division=Authentication\u0026amp;title=Revoke+Token\u0026amp;description=Revoke+an+active+Fyatu+API+access+token+to+invalidate+a+session.+POST+%2Fauth%2Frevoke.\u0026amp;theme=4a91f0fc566d34e9acdb9cbb\u0026amp;signature=1096f03e0fe90798ca3481c92dcf9550dbb83bd7ee1ce5d6d0c468d4ccd0f526\">\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=\"Revoke Token - FYATU API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fyatu.mintlify.site/_mintlify/api/og/v2?division=Authentication\u0026amp;title=Revoke+Token\u0026amp;description=Revoke+an+active+Fyatu+API+access+token+to+invalidate+a+session.+POST+%2Fauth%2Frevoke.\u0026amp;theme=4a91f0fc566d34e9acdb9cbb\u0026amp;signature=1096f03e0fe90798ca3481c92dcf9550dbb83bd7ee1ce5d6d0c468d4ccd0f526\">\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/fyatu/b3wN_qy-N1otkCBP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FYATU API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#721D5D\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fyatu.com/v3/api-reference/auth/revoke\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v3/api-reference/auth/revoke.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fyatu.com/#organization\",\"name\":\"FYATU API Docs\",\"url\":\"https://docs.fyatu.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fyatu/1Y4pa7wxF_kMnOCq/logo/light.png?fit=max\u0026auto=format\u0026n=1Y4pa7wxF_kMnOCq\u0026q=85\u0026s=da06db892390b1d64a6da61ed20cf95e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fyatu.com#website\",\"name\":\"FYATU API Docs\",\"url\":\"https://docs.fyatu.com\",\"publisher\":{\"@id\":\"https://docs.fyatu.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke#webpage\",\"url\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke\",\"name\":\"Revoke Token\",\"description\":\"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.\",\"dateModified\":\"2026-11-15T09:55:42.514Z\",\"isPartOf\":{\"@id\":\"https://docs.fyatu.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Authentication\",\"item\":\"https://docs.fyatu.com/v3/api-reference/auth/token\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Revoke Token\",\"item\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke#apireference\",\"headline\":\"Revoke Token\",\"name\":\"Revoke Token\",\"description\":\"Revoke an active Fyatu API access token to invalidate a session. POST /auth/revoke.\",\"url\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fyatu.com/v3/api-reference/auth/revoke#webpage\"},\"dateModified\":\"2026-11-15T09:55:42.514Z\",\"publisher\":{\"@id\":\"https://docs.fyatu.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fyatu.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FYATU API Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FYATU API Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v3/api-reference/auth/revoke.md","siteName":"FYATU API Docs","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://fyatu.com"}]},"versions":[{"version":"v3.20 — CaaS","default":true,"pages":[{"title":"v3.20 — CaaS","href":"/home"}]},{"version":"v3 — Business","tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":"/home"}]},{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/v3/documentation/introduction"}]},{"tab":"API Reference","icon":"square-terminal","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/v3/api-reference/overview"}]},{"group":"Authentication","pages":[{"title":"Generate Token","openapi":"v3/openapi.json POST /auth/token","href":"/v3/api-reference/auth/token"},{"title":"Refresh Token","description":"Refresh an expiring Fyatu API access token without re-authenticating. POST /auth/refresh.","openapi":"v3/openapi.json POST /auth/refresh","href":"/v3/api-reference/auth/refresh"},{"title":"Revoke Token","openapi":"v3/openapi.json POST /auth/revoke","href":"/v3/api-reference/auth/revoke"}]},{"group":"Account","pages":[{"title":"Get Pricing","description":"Retrieve current Fyatu API pricing and fee schedule — card issuance fees, funding fees, and transaction costs. GET /account/pricing.","openapi":"v3/openapi.json GET /account/pricing","href":"/v3/api-reference/account/pricing"},{"title":"Get Wallet","openapi":"v3/openapi.json GET /account/wallet","href":"/v3/api-reference/account/wallet"},{"title":"Get Transactions","openapi":"v3/openapi.json GET /account/transactions","href":"/v3/api-reference/account/transactions"},{"title":"Get Transaction","openapi":"v3/openapi.json GET /account/transactions/{transactionId}","href":"/v3/api-reference/account/transaction"},{"title":"Get Statement","openapi":"v3/openapi.json GET /account/statement","href":"/v3/api-reference/account/statement"},{"title":"Get Invoices","openapi":"v3/openapi.json GET /account/invoices","href":"/v3/api-reference/account/invoices"},{"title":"Request Withdrawal","openapi":"v3/openapi.json POST /account/withdraw","href":"/v3/api-reference/account/withdraw"},{"title":"Generate Deposit Address","openapi":"v3/openapi.json POST /account/deposit-address","href":"/v3/api-reference/account/deposit-address"},{"title":"Register Withdrawal Address","openapi":"v3/openapi.json POST /account/withdrawal-address","href":"/v3/api-reference/account/withdrawal-address"}]},{"group":"Cardholders","pages":[{"title":"List Cardholders","openapi":"v3/openapi.json GET /cardholders","href":"/v3/api-reference/cardholders/list"},{"title":"Create Cardholder","openapi":"v3/openapi.json POST /cardholders","href":"/v3/api-reference/cardholders/create"},{"title":"Get Cardholder","openapi":"v3/openapi.json GET /cardholders/{id}","href":"/v3/api-reference/cardholders/get"},{"title":"Update Cardholder","openapi":"v3/openapi.json PATCH /cardholders/{id}","href":"/v3/api-reference/cardholders/update"},{"title":"Delete Cardholder","openapi":"v3/openapi.json DELETE /cardholders/{id}","href":"/v3/api-reference/cardholders/delete"},{"title":"Initiate KYC Verification","openapi":"v3/openapi.json POST /cardholders/{id}/kyc/session","href":"/v3/api-reference/cardholders/kyc-session"},{"title":"Submit KYC Documents","openapi":"v3/openapi.json POST /cardholders/{id}/kyc","href":"/v3/api-reference/cardholders/kyc"}]},{"group":"Cards","pages":[{"title":"List Card Products","openapi":"v3/openapi.json GET /cards/products","href":"/v3/api-reference/cards/products"},{"title":"List Merchant Category Restrictions","openapi":"v3/openapi.json GET /cards/merchant-category-restrictions","href":"/v3/api-reference/cards/merchant-category-restrictions"},{"title":"List Cards","openapi":"v3/openapi.json GET /cards","href":"/v3/api-reference/cards/list"},{"title":"Create Card","openapi":"v3/openapi.json POST /cards","href":"/v3/api-reference/cards/create"},{"title":"Get Card Details","openapi":"v3/openapi.json GET /cards/{cardId}","href":"/v3/api-reference/cards/get"},{"title":"Get Encrypted Card Details","openapi":"v3/openapi.json GET /cards/{cardId}/secure-details","href":"/v3/api-reference/cards/secure-details"},{"title":"Terminate Card","openapi":"v3/openapi.json DELETE /cards/{cardId}","href":"/v3/api-reference/cards/delete"},{"title":"Get Card Transactions","openapi":"v3/openapi.json GET /cards/{cardId}/transactions","href":"/v3/api-reference/cards/transactions"},{"title":"Get Card Transaction","openapi":"v3/openapi.json GET /cards/{cardId}/transactions/{txnId}","href":"/v3/api-reference/cards/transaction"},{"title":"Download Card Statement","openapi":"v3/openapi.json GET /cards/{cardId}/statement","href":"/v3/api-reference/cards/statement"},{"title":"Fund Card","openapi":"v3/openapi.json POST /cards/{cardId}/fund","href":"/v3/api-reference/cards/fund"},{"title":"Unload Card","openapi":"v3/openapi.json POST /cards/{cardId}/unload","href":"/v3/api-reference/cards/unload"},{"title":"Freeze Card","openapi":"v3/openapi.json POST /cards/{cardId}/freeze","href":"/v3/api-reference/cards/freeze"},{"title":"Unfreeze Card","openapi":"v3/openapi.json POST /cards/{cardId}/unfreeze","href":"/v3/api-reference/cards/unfreeze"},{"title":"Replace Card","openapi":"v3/openapi.json POST /cards/{cardId}/replace","href":"/v3/api-reference/cards/replace"}]}]},{"tab":"Webhooks","icon":"webhook","pages":[{"title":"Webhooks","href":"/v3/webhooks/signature-verification"}]}]}]},"basePath":"","title":"Revoke Token - FYATU API Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}