{
"code": 503,
"message": "Wallet is being provisioned.",
"walletStatus": "PROVISIONING"
}
Wallet
Create a hosted top-up checkout session
Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the WALLET_INSUFFICIENT_FUNDS 402 and by GET /v1/wallet/balance (topup.stripe): an agent creates the session and hands url to its human owner to pay.
Monid API key (Authorization: Bearer mk_...) or Clerk-issued JWT. Each operation lists the ONE scope an API key needs. {resource}:* grants every action on that resource; * grants everything; Clerk sessions hold *. Operations with an empty list need no scope. Scope catalog: GET /v1/api-keys/scopes.
Agent harness or client making the call (e.g. a coding agent, an agent framework). Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).
Caller-side session identifier, so the calls of one agent session (discover → inspect → run → polling) can be correlated. Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).
Where to send the payer after a successful checkout. Must be on the Monid web-app origin. Defaults to the web-app wallet page, so an agent without a UI can omit it and hand the returned url to its owner.
Opt in to auto-reload (with the service defaults) when this checkout completes. Opt-in ONLY: the system never enables auto-reload on the caller's behalf, so false and an omitted field are equivalent and record nothing. Ignored when auto-reload is already enabled on the wallet.
Analytics attribution hand-off (web app only). Stored as Checkout metadata and forwarded on the server-side GA4 purchase event once the session is paid. Never affects the top-up itself; agents can omit it.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Monid","colors":{"primary":"#0016D7"},"logo":{"light":"https://mintcdn.com/monid/paJBHYJ1hAdnwo-s/images/Monid_logo_full.svg?fit=max\u0026auto=format\u0026n=paJBHYJ1hAdnwo-s\u0026q=85\u0026s=11149a2406d03905628b266346803d9a","dark":"https://mintcdn.com/monid/paJBHYJ1hAdnwo-s/images/Monid_logo_full.svg?fit=max\u0026auto=format\u0026n=paJBHYJ1hAdnwo-s\u0026q=85\u0026s=11149a2406d03905628b266346803d9a","href":"https://monid.ai./docs"},"navbar":{"links":[]},"fonts":{"family":"Inter"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"monid","hasAudioNarration":false,"actualSubdomain":"monid","customDomains":["monid.ai"],"gitSource":{"type":"gitlab","owner":"monid-ai","repo":"monid-doc","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":83779963,"mountPath":"","label":""},"chroma":{"collectionId":"c350be61-79c9-4de6-bec5-f391d6887218","liveDeploymentHistoryId":"6aa38869e0daa162314cb2b5","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aa38869e0daa162314cb2b5"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed160a537495fabe577e26","clientVersion":"0.0.4071","searchFilterCounts":[{"language":"default","tag":"API Reference","count":53},{"language":"default","tag":"CLI Reference","count":25},{"language":"default","tag":"Resources","count":15},{"language":"default","tag":"Examples","count":13},{"language":"default","tag":"Runs","count":8},{"language":"default","tag":"Documentation","count":8},{"language":"default","tag":"Controls","count":8},{"language":"default","tag":"Integrations","count":7},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Public Registry","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"vite-origin","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":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/wallet/create-a-hosted-top-up-checkout-session","slug":"/api-reference/wallet/create-a-hosted-top-up-checkout-session","pageMetadata":{"title":"Create a hosted top-up checkout session","description":"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the `WALLET_INSUFFICIENT_FUNDS` 402 and by `GET /v1/wallet/balance` (`topup.stripe`): an agent creates the session and hands `url` to its human owner to pay.","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/wallet/topup/sessions","href":"/api-reference/wallet/create-a-hosted-top-up-checkout-session","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the \", _jsx(_components.code, {\n children: \"WALLET_INSUFFICIENT_FUNDS\"\n }), \" 402 and by \", _jsx(_components.code, {\n children: \"GET /v1/wallet/balance\"\n }), \" (\", _jsx(_components.code, {\n children: \"topup.stripe\"\n }), \"): an agent creates the session and hands \", _jsx(_components.code, {\n children: \"url\"\n }), \" to its human owner to pay.\"]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a hosted top-up checkout session","description":"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the `WALLET_INSUFFICIENT_FUNDS` 402 and by `GET /v1/wallet/balance` (`topup.stripe`): an agent creates the session and hands `url` to its human owner to pay.","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/wallet/topup/sessions","href":"/api-reference/wallet/create-a-hosted-top-up-checkout-session","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Wallet"],"summary":"Create a hosted top-up checkout session","description":"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the `WALLET_INSUFFICIENT_FUNDS` 402 and by `GET /v1/wallet/balance` (`topup.stripe`): an agent creates the session and hands `url` to its human owner to pay.","security":["a521f537-d53a-4797-9816-63bf8bd01b2a"],"requestBody":"bc2f0bad-f3d9-4367-8ba3-c4aa8e7bc796","responses":{"200":"0288d8d4-4574-4661-8ede-b6500fd64f7a","400":"2c334984-7cfb-4045-b89e-ec0a7f5149a8","401":"c8d12da2-2cb7-4ed0-b42d-9b8c509e2f96","403":"dafb1435-6224-4020-8512-9183f1004451","429":"2fb2ddb4-aa37-4ae9-9f40-16ce9c68d7cc","500":"6e3a483a-90cf-4e3f-8253-4db646851a23","503":"eb48b84c-a11b-4679-b713-1ae56943689e"},"parameters":["b65a8fdb-068c-40fc-a769-70e21582e0e9","c4a75dd4-f4a5-4d63-ad6e-be5f1c58623b","2fb354f0-c72d-4709-a9b7-78eaadfb3d2e"],"method":"post","type":"path","servers":["0b6b6611-3785-4dd4-aa41-92bb6febf896","c0b74bc0-922a-4efd-97e4-a3c7a7e4297d"],"path":"/v1/wallet/topup/sessions","baseUrlOptions":["https://api.monid.ai","https://monid.ai"],"title":"Create a hosted top-up checkout session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b65a8fdb-068c-40fc-a769-70e21582e0e9":{"name":"X-Monid-Agent-Model","in":"header","required":false,"description":"Model driving the calling agent. Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).","schema":{"type":"string","maxLength":256,"isRequired":false,"description":"Model driving the calling agent. Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).","uniqueKey":"","typeLabel":"string"},"example":"claude-opus-5-5"},"c4a75dd4-f4a5-4d63-ad6e-be5f1c58623b":{"name":"X-Monid-Agent-Harness","in":"header","required":false,"description":"Agent harness or client making the call (e.g. a coding agent, an agent framework). Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).","schema":{"type":"string","maxLength":256,"isRequired":false,"description":"Agent harness or client making the call (e.g. a coding agent, an agent framework). Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).","uniqueKey":"","typeLabel":"string"},"example":"claude-code"},"2fb354f0-c72d-4709-a9b7-78eaadfb3d2e":{"name":"X-Monid-Agent-Session-Id","in":"header","required":false,"description":"Caller-side session identifier, so the calls of one agent session (discover → inspect → run → polling) can be correlated. Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).","schema":{"type":"string","maxLength":256,"isRequired":false,"description":"Caller-side session identifier, so the calls of one agent session (discover → inspect → run → polling) can be correlated. Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).","uniqueKey":"","typeLabel":"string"},"example":"01JABCDEF0123456789XYZ"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0,"description":"Top-up amount in dollars (float).","example":25,"isRequired":true,"uniqueKey":"amount","typeLabel":"number"},"currency":{"type":"string","enum":["USD"],"description":"Top-up currency (currently only USD).","isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"success_redirect":{"type":"string","description":"Where to send the payer after a successful checkout. Must be on the Monid web-app origin. Defaults to the web-app wallet page, so an agent without a UI can omit it and hand the returned `url` to its owner.","example":"https://app.monid.ai/wallet?topup=success","uniqueKey":"success_redirect","typeLabel":"string"},"cancel_redirect":{"type":"string","description":"Where to send the user if checkout is cancelled. Must be on the Monid web-app origin.","example":"https://app.monid.ai/wallet?topup=cancelled","uniqueKey":"cancel_redirect","typeLabel":"string"},"autoReload":{"type":"boolean","description":"Opt in to auto-reload (with the service defaults) when this checkout completes. Opt-in ONLY: the system never enables auto-reload on the caller's behalf, so `false` and an omitted field are equivalent and record nothing. Ignored when auto-reload is already enabled on the wallet.","uniqueKey":"autoReload","typeLabel":"boolean"},"analytics":{"type":"object","properties":{"gaClientId":{"type":"string","pattern":"^\\d{1,32}\\.\\d{1,32}$","description":"GA4 client id of the browser starting this checkout (`gtag('get', …, 'client_id')`).","example":"1234567890.1700000000","isRequired":true,"uniqueKey":"analytics.gaClientId","typeLabel":"string"},"gaSessionId":{"type":"string","pattern":"^\\d{1,32}$","description":"GA4 session id of that browser session (`gtag('get', …, 'session_id')`).","example":"1700000000","uniqueKey":"analytics.gaSessionId","typeLabel":"string"}},"required":["gaClientId"],"description":"Analytics attribution hand-off (web app only). Stored as Checkout metadata and forwarded on the server-side GA4 `purchase` event once the session is paid. Never affects the top-up itself; agents can omit it.","uniqueKey":"analytics","typeLabel":"object"}},"required":["amount","currency"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":25,"currency":"USD","success_redirect":"https://app.monid.ai/wallet?topup=success","cancel_redirect":"https://app.monid.ai/wallet?topup=cancelled","autoReload":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"0288d8d4-4574-4661-8ede-b6500fd64f7a":{"description":"Checkout session created","content":{"application/json":{"schema":{"type":"object","properties":{"paymentProcessor":{"type":"string","description":"Payment processor type (e.g. STRIPE).","example":"STRIPE","isRequired":true,"uniqueKey":"paymentProcessor","typeLabel":"string"},"sessionId":{"type":"string","description":"Hosted checkout session id.","example":"cs_test_...","isRequired":true,"uniqueKey":"sessionId","typeLabel":"string"},"url":{"type":"string","description":"Hosted checkout redirect URL.","example":"https://checkout.stripe.com/c/pay/...","isRequired":true,"uniqueKey":"url","typeLabel":"string"}},"required":["paymentProcessor","sessionId","url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"paymentProcessor":"STRIPE","sessionId":"cs_test_...","url":"https://checkout.stripe.com/c/pay/..."}}},"exampleType":"generated"}},"exampleType":"generated"},"2c334984-7cfb-4045-b89e-ec0a7f5149a8":{"description":"Bad request — input failed validation","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code, duplicated in the body.","example":400,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable error description.","example":"Bad Request","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"hints":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["command","discover","inspect","run","getRun","stop","releaseResource","topup"],"isRequired":true,"uniqueKey":"hints.additionalProperties.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"command":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.command","typeLabel":"string"},"query":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.query","typeLabel":"string"},"provider":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.provider","typeLabel":"string"},"endpoint":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.endpoint","typeLabel":"string"},"runId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.runId","typeLabel":"string"},"resourceId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.resourceId","typeLabel":"string"},"stripe":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.stripe","typeLabel":"string"},"dashboard":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.dashboard","typeLabel":"string"},"docs":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.docs","typeLabel":"string"},"comment":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.comment","typeLabel":"string"}},"uniqueKey":"hints.additionalProperties.oneOf.1","typeLabel":"object"}],"uniqueKey":"hints.additionalProperties","typeLabel":"string | object"},"description":"Optional next actions, rendered for the calling client like run-response hints (e.g. the paid TinyFish version on a free-quota 429 — spending permission required).","uniqueKey":"hints","typeLabel":"object"},"errorCode":{"type":"string","enum":["RATE_LIMITED","X402_WORKSPACE_RESOURCES","X402_WORKSPACE_ONLY","X402_ACCRUING_COST","X402_EXCEEDS_SETTLEMENT_WINDOW","X402_VALIDITY_WINDOW_TOO_SHORT","X402_UNBOUNDED_PRICE","X402_PROMOTION","INSUFFICIENT_SCOPE","WALLET_INSUFFICIENT_FUNDS","IDENTITY_PROVIDER_UNKNOWN","IDENTITY_LINK_REQUIRES_SESSION","IDENTITY_LINK_STATE_INVALID","IDENTITY_VERIFICATION_FAILED","IDENTITY_PROVIDER_UNAVAILABLE","IDENTITY_ALREADY_LINKED","IDENTITY_USER_ALREADY_LINKED","IDENTITY_LINK_RATE_LIMITED","IDENTITY_REQUIRED","PROMO_IDENTITY_REDEEMED","PROMO_REDEEM_REQUIRES_SESSION","PROMO_CODE_REDEEMED_BY_WORKSPACE","PROMO_CODE_REDEEMED_BY_USER"],"description":"OPTIONAL machine-readable discriminant from the documented `ApiErrorCode` registry. Absent on legacy errors; clients MUST treat unknown values as absent.","uniqueKey":"errorCode","typeLabel":"enum\u003cstring>"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":400,"message":"Bad Request","hints":{},"errorCode":"RATE_LIMITED"}}},"exampleType":"generated"}},"exampleType":"generated"},"c8d12da2-2cb7-4ed0-b42d-9b8c509e2f96":{"description":"Unauthorized — missing or invalid credentials","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code, duplicated in the body.","example":400,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable error description.","example":"Bad Request","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"hints":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["command","discover","inspect","run","getRun","stop","releaseResource","topup"],"isRequired":true,"uniqueKey":"hints.additionalProperties.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"command":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.command","typeLabel":"string"},"query":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.query","typeLabel":"string"},"provider":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.provider","typeLabel":"string"},"endpoint":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.endpoint","typeLabel":"string"},"runId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.runId","typeLabel":"string"},"resourceId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.resourceId","typeLabel":"string"},"stripe":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.stripe","typeLabel":"string"},"dashboard":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.dashboard","typeLabel":"string"},"docs":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.docs","typeLabel":"string"},"comment":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.comment","typeLabel":"string"}},"uniqueKey":"hints.additionalProperties.oneOf.1","typeLabel":"object"}],"uniqueKey":"hints.additionalProperties","typeLabel":"string | object"},"description":"Optional next actions, rendered for the calling client like run-response hints (e.g. the paid TinyFish version on a free-quota 429 — spending permission required).","uniqueKey":"hints","typeLabel":"object"},"errorCode":{"type":"string","enum":["RATE_LIMITED","X402_WORKSPACE_RESOURCES","X402_WORKSPACE_ONLY","X402_ACCRUING_COST","X402_EXCEEDS_SETTLEMENT_WINDOW","X402_VALIDITY_WINDOW_TOO_SHORT","X402_UNBOUNDED_PRICE","X402_PROMOTION","INSUFFICIENT_SCOPE","WALLET_INSUFFICIENT_FUNDS","IDENTITY_PROVIDER_UNKNOWN","IDENTITY_LINK_REQUIRES_SESSION","IDENTITY_LINK_STATE_INVALID","IDENTITY_VERIFICATION_FAILED","IDENTITY_PROVIDER_UNAVAILABLE","IDENTITY_ALREADY_LINKED","IDENTITY_USER_ALREADY_LINKED","IDENTITY_LINK_RATE_LIMITED","IDENTITY_REQUIRED","PROMO_IDENTITY_REDEEMED","PROMO_REDEEM_REQUIRES_SESSION","PROMO_CODE_REDEEMED_BY_WORKSPACE","PROMO_CODE_REDEEMED_BY_USER"],"description":"OPTIONAL machine-readable discriminant from the documented `ApiErrorCode` registry. Absent on legacy errors; clients MUST treat unknown values as absent.","uniqueKey":"errorCode","typeLabel":"enum\u003cstring>"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":400,"message":"Bad Request","hints":{},"errorCode":"RATE_LIMITED"}}},"exampleType":"generated"}},"exampleType":"generated"},"dafb1435-6224-4020-8512-9183f1004451":{"description":"Forbidden — caller has no workspace or no access","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code, duplicated in the body.","example":400,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable error description.","example":"Bad Request","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"hints":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["command","discover","inspect","run","getRun","stop","releaseResource","topup"],"isRequired":true,"uniqueKey":"hints.additionalProperties.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"command":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.command","typeLabel":"string"},"query":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.query","typeLabel":"string"},"provider":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.provider","typeLabel":"string"},"endpoint":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.endpoint","typeLabel":"string"},"runId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.runId","typeLabel":"string"},"resourceId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.resourceId","typeLabel":"string"},"stripe":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.stripe","typeLabel":"string"},"dashboard":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.dashboard","typeLabel":"string"},"docs":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.docs","typeLabel":"string"},"comment":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.comment","typeLabel":"string"}},"uniqueKey":"hints.additionalProperties.oneOf.1","typeLabel":"object"}],"uniqueKey":"hints.additionalProperties","typeLabel":"string | object"},"description":"Optional next actions, rendered for the calling client like run-response hints (e.g. the paid TinyFish version on a free-quota 429 — spending permission required).","uniqueKey":"hints","typeLabel":"object"},"errorCode":{"type":"string","enum":["RATE_LIMITED","X402_WORKSPACE_RESOURCES","X402_WORKSPACE_ONLY","X402_ACCRUING_COST","X402_EXCEEDS_SETTLEMENT_WINDOW","X402_VALIDITY_WINDOW_TOO_SHORT","X402_UNBOUNDED_PRICE","X402_PROMOTION","INSUFFICIENT_SCOPE","WALLET_INSUFFICIENT_FUNDS","IDENTITY_PROVIDER_UNKNOWN","IDENTITY_LINK_REQUIRES_SESSION","IDENTITY_LINK_STATE_INVALID","IDENTITY_VERIFICATION_FAILED","IDENTITY_PROVIDER_UNAVAILABLE","IDENTITY_ALREADY_LINKED","IDENTITY_USER_ALREADY_LINKED","IDENTITY_LINK_RATE_LIMITED","IDENTITY_REQUIRED","PROMO_IDENTITY_REDEEMED","PROMO_REDEEM_REQUIRES_SESSION","PROMO_CODE_REDEEMED_BY_WORKSPACE","PROMO_CODE_REDEEMED_BY_USER"],"description":"OPTIONAL machine-readable discriminant from the documented `ApiErrorCode` registry. Absent on legacy errors; clients MUST treat unknown values as absent.","uniqueKey":"errorCode","typeLabel":"enum\u003cstring>"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":400,"message":"Bad Request","hints":{},"errorCode":"RATE_LIMITED"}}},"exampleType":"generated"}},"exampleType":"generated"},"2fb2ddb4-aa37-4ae9-9f40-16ce9c68d7cc":{"description":"Rate limited (errorCode `RATE_LIMITED`, message `Rate limited. Retry after Ns.`) — the `Retry-After` header carries whole seconds until the caller may retry; `RateLimit-Limit/-Remaining/-Reset` describe the binding limit as numbers only (also sent on allowed responses that matched a rule; responses that matched no rule, or an `unlimited` exemption, carry none of them). Applies to every authenticated `/v1` route (per API key / user / workspace); POST /v1/run additionally enforces per-provider/endpoint run limits.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code, duplicated in the body.","example":400,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable error description.","example":"Bad Request","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"hints":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["command","discover","inspect","run","getRun","stop","releaseResource","topup"],"isRequired":true,"uniqueKey":"hints.additionalProperties.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"command":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.command","typeLabel":"string"},"query":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.query","typeLabel":"string"},"provider":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.provider","typeLabel":"string"},"endpoint":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.endpoint","typeLabel":"string"},"runId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.runId","typeLabel":"string"},"resourceId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.resourceId","typeLabel":"string"},"stripe":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.stripe","typeLabel":"string"},"dashboard":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.dashboard","typeLabel":"string"},"docs":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.docs","typeLabel":"string"},"comment":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.comment","typeLabel":"string"}},"uniqueKey":"hints.additionalProperties.oneOf.1","typeLabel":"object"}],"uniqueKey":"hints.additionalProperties","typeLabel":"string | object"},"description":"Optional next actions, rendered for the calling client like run-response hints (e.g. the paid TinyFish version on a free-quota 429 — spending permission required).","uniqueKey":"hints","typeLabel":"object"},"errorCode":{"type":"string","enum":["RATE_LIMITED","X402_WORKSPACE_RESOURCES","X402_WORKSPACE_ONLY","X402_ACCRUING_COST","X402_EXCEEDS_SETTLEMENT_WINDOW","X402_VALIDITY_WINDOW_TOO_SHORT","X402_UNBOUNDED_PRICE","X402_PROMOTION","INSUFFICIENT_SCOPE","WALLET_INSUFFICIENT_FUNDS","IDENTITY_PROVIDER_UNKNOWN","IDENTITY_LINK_REQUIRES_SESSION","IDENTITY_LINK_STATE_INVALID","IDENTITY_VERIFICATION_FAILED","IDENTITY_PROVIDER_UNAVAILABLE","IDENTITY_ALREADY_LINKED","IDENTITY_USER_ALREADY_LINKED","IDENTITY_LINK_RATE_LIMITED","IDENTITY_REQUIRED","PROMO_IDENTITY_REDEEMED","PROMO_REDEEM_REQUIRES_SESSION","PROMO_CODE_REDEEMED_BY_WORKSPACE","PROMO_CODE_REDEEMED_BY_USER"],"description":"OPTIONAL machine-readable discriminant from the documented `ApiErrorCode` registry. Absent on legacy errors; clients MUST treat unknown values as absent.","uniqueKey":"errorCode","typeLabel":"enum\u003cstring>"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":400,"message":"Bad Request","hints":{},"errorCode":"RATE_LIMITED"}}},"exampleType":"generated"}},"exampleType":"generated"},"6e3a483a-90cf-4e3f-8253-4db646851a23":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code, duplicated in the body.","example":400,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable error description.","example":"Bad Request","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"hints":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["command","discover","inspect","run","getRun","stop","releaseResource","topup"],"isRequired":true,"uniqueKey":"hints.additionalProperties.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"command":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.command","typeLabel":"string"},"query":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.query","typeLabel":"string"},"provider":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.provider","typeLabel":"string"},"endpoint":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.endpoint","typeLabel":"string"},"runId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.runId","typeLabel":"string"},"resourceId":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.resourceId","typeLabel":"string"},"stripe":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.stripe","typeLabel":"string"},"dashboard":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.dashboard","typeLabel":"string"},"docs":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.docs","typeLabel":"string"},"comment":{"type":"string","uniqueKey":"hints.additionalProperties.oneOf.1.comment","typeLabel":"string"}},"uniqueKey":"hints.additionalProperties.oneOf.1","typeLabel":"object"}],"uniqueKey":"hints.additionalProperties","typeLabel":"string | object"},"description":"Optional next actions, rendered for the calling client like run-response hints (e.g. the paid TinyFish version on a free-quota 429 — spending permission required).","uniqueKey":"hints","typeLabel":"object"},"errorCode":{"type":"string","enum":["RATE_LIMITED","X402_WORKSPACE_RESOURCES","X402_WORKSPACE_ONLY","X402_ACCRUING_COST","X402_EXCEEDS_SETTLEMENT_WINDOW","X402_VALIDITY_WINDOW_TOO_SHORT","X402_UNBOUNDED_PRICE","X402_PROMOTION","INSUFFICIENT_SCOPE","WALLET_INSUFFICIENT_FUNDS","IDENTITY_PROVIDER_UNKNOWN","IDENTITY_LINK_REQUIRES_SESSION","IDENTITY_LINK_STATE_INVALID","IDENTITY_VERIFICATION_FAILED","IDENTITY_PROVIDER_UNAVAILABLE","IDENTITY_ALREADY_LINKED","IDENTITY_USER_ALREADY_LINKED","IDENTITY_LINK_RATE_LIMITED","IDENTITY_REQUIRED","PROMO_IDENTITY_REDEEMED","PROMO_REDEEM_REQUIRES_SESSION","PROMO_CODE_REDEEMED_BY_WORKSPACE","PROMO_CODE_REDEEMED_BY_USER"],"description":"OPTIONAL machine-readable discriminant from the documented `ApiErrorCode` registry. Absent on legacy errors; clients MUST treat unknown values as absent.","uniqueKey":"errorCode","typeLabel":"enum\u003cstring>"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":400,"message":"Bad Request","hints":{},"errorCode":"RATE_LIMITED"}}},"exampleType":"generated"}},"exampleType":"generated"},"eb48b84c-a11b-4679-b713-1ae56943689e":{"description":"Wallet not ACTIVE (provisioning, failed, or being set up). Transient states include a Retry-After header (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying (present for transient states).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code, duplicated in the body.","example":503,"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","description":"Human-readable error description.","example":"Wallet is being provisioned.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"walletStatus":{"oneOf":[{"type":"string","description":"Wallet provisioning status (e.g. PROVISIONING, FAILED). Null when the wallet does not exist yet.","example":"PROVISIONING","uniqueKey":"walletStatus.oneOf.0","typeLabel":"string"},{"type":"null","description":"Wallet provisioning status (e.g. PROVISIONING, FAILED). Null when the wallet does not exist yet.","example":"PROVISIONING","uniqueKey":"walletStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"walletStatus","typeLabel":"string | null"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":503,"message":"Wallet is being provisioned.","walletStatus":"PROVISIONING"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"a521f537-d53a-4797-9816-63bf8bd01b2a":{"Bearer":{"type":"http","scheme":"bearer","description":"Monid API key (`Authorization: Bearer mk_...`) or Clerk-issued JWT. Each operation lists the ONE scope an API key needs. `{resource}:*` grants every action on that resource; `*` grants everything; Clerk sessions hold `*`. Operations with an empty list need no scope. Scope catalog: `GET /v1/api-keys/scopes`.","x-aep-authentication-method":"api-key","scopes":["topups:create"],"schemeName":"Bearer"}}},"servers":{"0b6b6611-3785-4dd4-aa41-92bb6febf896":{"url":"https://api.monid.ai","description":"Production"},"c0b74bc0-922a-4efd-97e4-a3c7a7e4297d":{"url":"https://monid.ai","description":"Public registry alias (public/v1 only)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Monid API key (`Authorization: Bearer mk_...`) or Clerk-issued JWT. Each operation lists the ONE scope an API key needs. `{resource}:*` grants every action on that resource; `*` grants everything; Clerk sessions hold `*`. Operations with an empty list need no scope. Scope catalog: `GET /v1/api-keys/scopes`.","x-aep-authentication-method":"api-key","scopes":["topups:create"],"schemeName":"Bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Monid API key (`Authorization: Bearer mk_...`) or Clerk-issued JWT. Each operation lists the ONE scope an API key needs. `{resource}:*` grants every action on that resource; `*` grants everything; Clerk sessions hold `*`. Operations with an empty list need no scope. Scope catalog: `GET /v1/api-keys/scopes`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Bearer","name":"Authorization"}],"title":"Bearer"}]},"originalFileLocation":"https://monid.ai/openapi.json"},"subdomain":"monid","siteName":"Monid","title":"Create a hosted top-up checkout session - Monid","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T23:49:35.296Z","originalFileLocation":"api-reference/wallet/create-a-hosted-top-up-checkout-session.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=\"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the WALLET_INSUFFICIENT_FUNDS 402 and by GET /v1/wallet/balance (topup.stripe): an agent creates the session and hands url to its human owner to pay.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Monid\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/monid/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/monid/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/monid/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/monid/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a hosted top-up checkout session - Monid\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the WALLET_INSUFFICIENT_FUNDS 402 and by GET /v1/wallet/balance (topup.stripe): an agent creates the session and hands url to its human owner to pay.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Monid\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://monid.mintlify.app/_mintlify/api/og/v2?division=Wallet\u0026amp;title=Create+a+hosted+top-up+checkout+session\u0026amp;description=Creates+a+hosted+Stripe+checkout+session+and+returns+the+session+id+and+redirect+URL.+This+is+the+funding+path+advertised+by+the+%60WALLET_INSUFFICIENT_FUNDS%60+402\u0026amp;theme=0d7b6b05a306b3a9fcc0c82a\u0026amp;signature=270ff86e68a62e6762c0b269c25521de544c66616d272b316e2d5a347666ef11\">\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=\"Create a hosted top-up checkout session - Monid\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the WALLET_INSUFFICIENT_FUNDS 402 and by GET /v1/wallet/balance (topup.stripe): an agent creates the session and hands url to its human owner to pay.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://monid.mintlify.app/_mintlify/api/og/v2?division=Wallet\u0026amp;title=Create+a+hosted+top-up+checkout+session\u0026amp;description=Creates+a+hosted+Stripe+checkout+session+and+returns+the+session+id+and+redirect+URL.+This+is+the+funding+path+advertised+by+the+%60WALLET_INSUFFICIENT_FUNDS%60+402\u0026amp;theme=0d7b6b05a306b3a9fcc0c82a\u0026amp;signature=270ff86e68a62e6762c0b269c25521de544c66616d272b316e2d5a347666ef11\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/monid/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Monid\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0016D7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://monid.ai/#organization\",\"name\":\"Monid\",\"url\":\"https://monid.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/monid/paJBHYJ1hAdnwo-s/images/Monid_logo_full.svg?fit=max\u0026auto=format\u0026n=paJBHYJ1hAdnwo-s\u0026q=85\u0026s=11149a2406d03905628b266346803d9a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://monid.ai/docs#website\",\"name\":\"Monid\",\"url\":\"https://monid.ai/docs\",\"publisher\":{\"@id\":\"https://monid.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session#webpage\",\"url\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session\",\"name\":\"Create a hosted top-up checkout session\",\"description\":\"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the WALLET_INSUFFICIENT_FUNDS 402 and by GET /v1/wallet/balance (topup.stripe): an agent creates the session and hands url to its human owner to pay.\",\"dateModified\":\"2026-11-05T23:49:35.296Z\",\"isPartOf\":{\"@id\":\"https://monid.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Wallet\",\"item\":\"https://monid.ai/docs/api-reference/wallet/get-the-live-wallet-balance\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a hosted top-up checkout session\",\"item\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session#apireference\",\"headline\":\"Create a hosted top-up checkout session\",\"name\":\"Create a hosted top-up checkout session\",\"description\":\"Creates a hosted Stripe checkout session and returns the session id and redirect URL. This is the funding path advertised by the WALLET_INSUFFICIENT_FUNDS 402 and by GET /v1/wallet/balance (topup.stripe): an agent creates the session and hands url to its human owner to pay.\",\"url\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session\",\"mainEntityOfPage\":{\"@id\":\"https://monid.ai/docs/api-reference/wallet/create-a-hosted-top-up-checkout-session#webpage\"},\"dateModified\":\"2026-11-05T23:49:35.296Z\",\"publisher\":{\"@id\":\"https://monid.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://monid.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Monid\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Monid","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/overview"}]},{"tab":"API Reference","groups":[{"group":"Auth","pages":[{"title":"Get the authenticated user and workspace","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/auth/whoami","href":"/api-reference/auth/get-the-authenticated-user-and-workspace"},{"title":"List the caller's workspaces","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/auth/workspaces","href":"/api-reference/auth/list-the-callers-workspaces"}]},{"group":"Identities","pages":[{"title":"Complete linking an external identity","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/identities/{provider}/link/complete","href":"/api-reference/identities/complete-linking-an-external-identity"},{"title":"Start linking an external identity","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/identities/{provider}/link","href":"/api-reference/identities/start-linking-an-external-identity"}]},{"group":"API Keys","pages":[{"title":"List the scope catalog","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/api-keys/scopes","href":"/api-reference/api-keys/list-the-scope-catalog"},{"title":"List API keys","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Get an API key","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/api-keys/{label}","href":"/api-reference/api-keys/get-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json patch /v1/api-keys/{label}","href":"/api-reference/api-keys/update-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/api-keys/{label}/revoke","href":"/api-reference/api-keys/revoke-an-api-key"}]},{"group":"Discover","pages":[{"title":"Semantic endpoint search (ranked cards)","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/discover/endpoints","href":"/api-reference/discover/semantic-endpoint-search-ranked-cards"},{"title":"Semantic search grouped into categories","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/discover/categories","href":"/api-reference/discover/semantic-search-grouped-into-categories"},{"title":"Semantic search grouped by provider","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/discover/providers","href":"/api-reference/discover/semantic-search-grouped-by-provider"},{"title":"List provider resources","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/discover/resources","href":"/api-reference/discover/list-provider-resources"},{"title":"Search for data endpoints (deprecated)","deprecated":true,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/discover","href":"/api-reference/discover/search-for-data-endpoints-deprecated"}]},{"group":"Endpoints","pages":[{"title":"Browse the endpoint catalog","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/endpoints","href":"/api-reference/endpoints/browse-the-endpoint-catalog"}]},{"group":"Inspect","pages":[{"title":"Get full endpoint details","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/inspect","href":"/api-reference/inspect/get-full-endpoint-details"}]},{"group":"Runs","pages":[{"title":"Start an endpoint run","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/run","href":"/api-reference/runs/start-an-endpoint-run"},{"title":"List runs","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/runs","href":"/api-reference/runs/list-runs"},{"title":"Get a run","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/runs/{runId}","href":"/api-reference/runs/get-a-run"},{"title":"List a run's control records","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/runs/{runId}/controls","href":"/api-reference/runs/list-a-runs-control-records"},{"title":"Stop a run","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/runs/{runId}/stop","href":"/api-reference/runs/stop-a-run"}]},{"group":"Resources","pages":[{"title":"List resources","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources","href":"/api-reference/resources/list-resources"},{"title":"Get a resource's live external detail","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}/external/{kind}","href":"/api-reference/resources/get-a-resources-live-external-detail"},{"title":"List a resource's lifecycle events","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}/events","href":"/api-reference/resources/list-a-resources-lifecycle-events"},{"title":"Get a file download URL","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}/files/download-url","href":"/api-reference/resources/get-a-file-download-url"},{"title":"List file-system entries","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}/files","href":"/api-reference/resources/list-file-system-entries"},{"title":"Get an asset file's download URL","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}/mint-assets/download-url","href":"/api-reference/resources/get-an-asset-files-download-url"},{"title":"List an asset's downloadable files","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}/mint-assets/files","href":"/api-reference/resources/list-an-assets-downloadable-files"},{"title":"List asset-library contents","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}/mint-assets","href":"/api-reference/resources/list-asset-library-contents"},{"title":"Permanently delete a library asset","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json delete /v1/resources/{resourceId}/mint-assets","href":"/api-reference/resources/permanently-delete-a-library-asset"},{"title":"Release a resource","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/resources/{resourceId}/release","href":"/api-reference/resources/release-a-resource"},{"title":"Get a resource","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/resources/{resourceId}","href":"/api-reference/resources/get-a-resource"}]},{"group":"Wallet","pages":[{"title":"Get the live wallet balance","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/wallet/balance","href":"/api-reference/wallet/get-the-live-wallet-balance"},{"title":"Get top-up configuration","description":"Fees and limits for wallet top-ups, plus the workspace's applied promotion (tiers, presets) and the auto-reload checkout offer.","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/wallet/topup","href":"/api-reference/wallet/get-top-up-configuration"},{"title":"Create a hosted top-up checkout session","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/wallet/topup/sessions","href":"/api-reference/wallet/create-a-hosted-top-up-checkout-session"},{"title":"List redeemed promo codes","description":"The promo codes this workspace has redeemed, newest first. The signup credit is listed as `MONID-SIGNUP` with kind `signup_credit`; a workspace holds at most one.","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/wallet/promo-codes","href":"/api-reference/wallet/list-redeemed-promo-codes"},{"title":"Redeem a promo code","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json post /v1/wallet/promo-codes/redeem","href":"/api-reference/wallet/redeem-a-promo-code"}]},{"group":"Controls","pages":[{"title":"List workspace budget controls","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/controls/workspace/budgets","href":"/api-reference/controls/list-workspace-budget-controls"},{"title":"Get a workspace budget control","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/controls/workspace/budgets/{budgetControlId}","href":"/api-reference/controls/get-a-workspace-budget-control"},{"title":"Update a workspace budget control","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json patch /v1/controls/workspace/budgets/{budgetControlId}","href":"/api-reference/controls/update-a-workspace-budget-control"},{"title":"List runs linked to a budget control","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/controls/workspace/budgets/{budgetControlId}/runs","href":"/api-reference/controls/list-runs-linked-to-a-budget-control"},{"title":"List workspace run cap controls","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/controls/workspace/run-caps","href":"/api-reference/controls/list-workspace-run-cap-controls"},{"title":"Get a workspace run cap control","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/controls/workspace/run-caps/{runCapControlId}","href":"/api-reference/controls/get-a-workspace-run-cap-control"},{"title":"Update a workspace run cap control","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json patch /v1/controls/workspace/run-caps/{runCapControlId}","href":"/api-reference/controls/update-a-workspace-run-cap-control"},{"title":"List runs linked to a run cap control","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /v1/controls/workspace/run-caps/{runCapControlId}/runs","href":"/api-reference/controls/list-runs-linked-to-a-run-cap-control"}]},{"group":"Public Registry","pages":[{"title":"Catalog-wide aggregate counts","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/stats","href":"/api-reference/public-registry/catalog-wide-aggregate-counts"},{"title":"List catalog categories","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/categories","href":"/api-reference/public-registry/list-catalog-categories"},{"title":"List or search endpoints","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/endpoints","href":"/api-reference/public-registry/list-or-search-endpoints"},{"title":"List providers","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/providers","href":"/api-reference/public-registry/list-providers"},{"title":"List provider resources","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/resources","href":"/api-reference/public-registry/list-provider-resources"},{"title":"Get one endpoint","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/providers/{provider}/endpoints/{endpoint}","href":"/api-reference/public-registry/get-one-endpoint"}]},{"group":"Rankings","pages":[{"title":"Daily usage rankings","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/rankings","href":"/api-reference/rankings/daily-usage-rankings"},{"title":"One rankings board","deprecated":null,"version":null,"openapi":"https://monid.ai/openapi.json get /public/v1/rankings/{board}","href":"/api-reference/rankings/one-rankings-board"}]}]},{"tab":"CLI Reference","pages":[{"title":"CLI Reference","href":"/cli/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]}]},"basePath":"","title":"Create a hosted top-up checkout session - Monid","buildId":"dpl_DQCMP4mismmBj3AFK7YZqNhrtLNq","deploymentId":"dpl_DQCMP4mismmBj3AFK7YZqNhrtLNq","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Dub5uFbX.js","utils-BAOmmv1r.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-Cfvfuq3w.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Chp3aFWD.js","snippetPresets-mdHEOVGp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BRlO2pcM.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CrgNI3V9.js","shallow-Dl286uHn.js","getApiPlaygroundDisplay-YPKheyKd.js","CodeSnippet-BdD-lURy.js","CodeSnippets-BSggiSf7.js","Page-DZmn3mFl.js","getPastedJson-bQHv51S7.js","icon-SCSCTtsH.js","MethodPill-GnU2wo5s.js","DuplicateIcon-BM7jzGa_.js","createIcon-atdRs-Wh.js","DynamicMarkdown-B95U9rYS.js","SectionHeading-CvCxtB39.js","axios-vUo_bRtp.js","Markdown-CBJtw_nx.js","clsx-C_advUgl.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Dpla8_R7.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BoWSGi0C.js"]}