{
"detail": "Rate limit exceeded. Try again in 42 seconds."
}
Get your credit balance
Returns the credits this API key’s account can spend right now.
Free. This endpoint is never charged, so you can poll it to drive alerting
or a pre-flight check without the check itself costing you anything. It is rate
limited like every other key-authenticated route.
Authentication: any valid vq_key_ key. No particular scope is required.
What the number means
creditsRemaining is derived from your live credit buckets under the same
expiry rule the billing path applies, so it is what a call would actually be
allowed to spend, not a cached figure that a nightly job later corrects.
It is the same field name metered responses use, so you can read creditsRemaining
the same way everywhere.
Not all credits behave alike
Read bySource before assuming a balance is durable. subscription credits are
use-it-or-lose-it and are forfeited at the end of the period, while payg
credits you purchased burn last and persist. nextExpiry tells you what is
about to be forfeited and when, which is the one thing a balance alone cannot.
Two separate ceilings
Credits are how MUCH you may spend; rateLimit is how FAST you may call. They
are independent, so a healthy balance does not exempt you from throttling and
staying under the rate limit does not pay for a call.
rateLimit has your plan applied and lets you size a client before issuing a
request. Every response also carries X-RateLimit-Limit, X-RateLimit-Remaining
and X-RateLimit-Reset for the per-minute window, plus X-RateLimit-Limit-Day
and X-RateLimit-Remaining-Day for the daily backstop; those report the same
ceilings with your live headroom.
creditsRemaining in USD, at the published conversion rate (1 credit = $0.01). Provided so you do not have to hardcode the rate; GET /api/v1/api-credits/pricing is its source of truth.
creditsRemaining split by funding source, and it always sums to it. Worth reading because the sources do not behave alike: subscription credits are use-it-or-lose-it at the period end, while payg credits you bought are durable and burn last.
Active API subscription tier, or null on pay-as-you-go. Also determines your rate-limit multiplier. Briefly cached, so a subscription change made seconds ago may not be reflected yet; creditsRemaining is always live.
How fast this key may call, as opposed to how much it may spend. The two ceilings are independent: holding credits does not exempt you from these, and staying under these does not pay for a call.
These are the ceilings themselves, with your plan already applied, so you can size a client BEFORE issuing a request. The X-RateLimit-* headers on every response report the same ceilings plus your live headroom, and the two agree.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Vaquill AI","description":"US primary law as a developer API. The US Code, the CFR, the Federal Register, state and territory statute codes, state regulations, constitutions and court rules, with Bluebook citation resolution and point-in-time retrieval over REST, MCP and SQL.","colors":{"primary":"#6E3730","light":"#8C4A3F","dark":"#5A2D27"},"logo":{"light":"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/logo/light.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=1c97b6018caaa1fee0a743b05651bb81","dark":"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/logo/dark.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=857ee7c2383d363ffe7fac6f94ad862b","href":"https://vaquill.ai"},"favicon":"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/favicon.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=e9fd33556ddcb3576db2925e6f4e27fe","api":{"openapi":"https://api.vaquill.ai/external/openapi.json","playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["bash","python","javascript","go"],"prefill":true},"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://api.vaquill.ai"}},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#FAFAF9"}},"navbar":{"links":[{"icon":"github","href":"https://vaquill.ai/open-us-law","label":"Open US Law Dataset"},{"href":"mailto:contact@vaquill.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.vaquill.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/vaquill","youtube":"https://www.youtube.com/@vaquill","slack":"https://join.slack.com/t/vaquillaicommunity/shared_invite/zt-3qxv4mtxg-64mtkVe2PxodDMwKGPfvMQ","github":"https://github.com/Vaquill-AI"},"links":[{"header":"Company","items":[{"label":"About","href":"https://vaquill.ai/about"},{"label":"Contact","href":"https://vaquill.ai/contact"},{"label":"Data Sources \u0026 Credits","href":"https://vaquill.ai/partners"},{"label":"Blog","href":"https://vaquill.ai/blog"},{"label":"Engineering","href":"https://vaquill.ai/engineering"}]},{"header":"Developers","items":[{"label":"Data API","href":"https://vaquill.ai/legal-api"},{"label":"MCP Servers","href":"https://vaquill.ai/mcp"},{"label":"API Reference","href":"/api-reference/us-statutes/search-us-statutes-constitutions-court-rules-and-executive-actions"},{"label":"Open US Law Dataset","href":"https://vaquill.ai/open-us-law"}]},{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://vaquill.ai/privacy"},{"label":"Terms of Service","href":"https://vaquill.ai/terms"},{"label":"DPA","href":"https://vaquill.ai/dpa"},{"label":"Cookie Policy","href":"https://vaquill.ai/cookies"},{"label":"Refund Policy","href":"https://vaquill.ai/refund-policy"},{"label":"Delete My Data","href":"https://vaquill.ai/delete-data"},{"label":"Security","href":"https://vaquill.ai/security"},{"label":"Accessibility","href":"https://vaquill.ai/accessibility"},{"label":"Do Not Sell or Share My Personal Information","href":"https://vaquill.ai/privacy"}]}]},"search":{"prompt":"Search docs, guides, and the API reference..."},"seo":{"metatags":{"canonical":"https://www.vaquill.ai/docs","og:site_name":"Vaquill AI Docs","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@vaquillai"},"indexing":"all"},"fonts":{"heading":{"family":"Source Serif 4","weight":400},"body":{"family":"Schibsted Grotesk","weight":400}},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":"github-light"},"latex":false},"errors":{"404":{"redirect":false,"title":"Page not found","description":"That page doesn't exist, or the URL changed. Try the search bar above, or start from the [API overview](/api-guide/overview)."}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","cursor","vscode","windsurf","mcp"],"display":"header"},"thumbnails":{"appearance":"light","fonts":{"family":"Source Serif 4"}},"metadata":{"timestamp":true},"navigation":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock","href":"/api-guide/changelog"},{"anchor":"MCP","icon":"plug","href":"/integrations/mcp/vaquill"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vaquill","hasAudioNarration":false,"actualSubdomain":"vaquill","customDomains":["vaquill.ai"],"gitSource":{"type":"github","owner":"vaquill-ai","repo":"vaquill-ai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aeeddf969e61846fb374a5a","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Guide","count":56},{"language":"default","tag":"US API reference","count":46},{"language":"default","tag":"India API reference","count":30},{"language":"default","tag":"Endpoints","count":28},{"language":"default","tag":"Indian Acts and Legislation","count":18},{"language":"default","tag":"US Statutes","count":18},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Core concepts","count":15},{"language":"default","tag":"Integrations","count":14},{"language":"default","tag":"Get started","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--vq-ink: #1c1a17;--vq-muted: #5f5a52;--vq-hairline: #e4e3e0;--vq-raised: #f2f1ef;--vq-radius: 6px}#navbar img{height:3rem;width:auto}footer img{height:3rem;width:auto}#page-title,#content h2,#content h3{font-family:\"Source Serif 4\", Georgia, serif;font-weight:400;letter-spacing:-0.01em;color:var(--vq-ink)}#content h4,#content h5{font-weight:500}.card,.callout,.accordion,.accordion-group,[data-component-part=\"code-block-root\"]{border-radius:var(--vq-radius)!important;box-shadow:none!important}.card,.accordion,.accordion-group{border:1px solid var(--vq-hairline)}.accordion-group .accordion{border:0!important;border-radius:0!important;margin-bottom:0}.accordion-group .accordion+.accordion{border-top:1px solid var(--vq-hairline)!important}.card:hover{border-color:#6e3730!important}.callout{background-color:var(--vq-raised);border:1px solid var(--vq-hairline)}.callout[data-callout-type=\"warning\"]{border-color:#7d5310}.callout[data-callout-type=\"danger\"]{border-color:#a4123c}code,pre,.shiki{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}[data-component-part=\"code-block-root\"]{border:1px solid var(--vq-hairline)}"}],"page":{"pagePath":"api-reference/credits/get-your-credit-balance","slug":"/api-reference/credits/get-your-credit-balance","pageMetadata":{"title":"Get your credit balance","description":"Returns the credits this API key's account can spend right now.\n\n**Free.** This endpoint is never charged, so you can poll it to drive alerting\nor a pre-flight check without the check itself costing you anything. It is rate\nlimited like every other key-authenticated route.\n\n**Authentication:** any valid `vq_key_` key. No particular scope is required.\n\n## What the number means\n\n`creditsRemaining` is derived from your live credit buckets under the same\nexpiry rule the billing path applies, so it is what a call would actually be\nallowed to spend, not a cached figure that a nightly job later corrects.\n\nIt is the same field name metered responses use, so you can read `creditsRemaining`\nthe same way everywhere.\n\n## Not all credits behave alike\n\nRead `bySource` before assuming a balance is durable. `subscription` credits are\nuse-it-or-lose-it and are forfeited at the end of the period, while `payg`\ncredits you purchased burn last and persist. `nextExpiry` tells you what is\nabout to be forfeited and when, which is the one thing a balance alone cannot.\n\n## Two separate ceilings\n\nCredits are how MUCH you may spend; `rateLimit` is how FAST you may call. They\nare independent, so a healthy balance does not exempt you from throttling and\nstaying under the rate limit does not pay for a call.\n\n`rateLimit` has your plan applied and lets you size a client before issuing a\nrequest. Every response also carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`\nand `X-RateLimit-Reset` for the per-minute window, plus `X-RateLimit-Limit-Day`\nand `X-RateLimit-Remaining-Day` for the daily backstop; those report the same\nceilings with your live headroom.\n\n## Example\n\n```bash\ncurl https://api.vaquill.ai/api/v1/credits/balance \\\n -H \"Authorization: Bearer $VAQUILL_API_KEY\"\n```\n\n```json\n{\n \"creditsRemaining\": 103039.0,\n \"usdRemaining\": 1030.39,\n \"bySource\": [\n { \"source\": \"payg\", \"credits\": 102539.0 },\n { \"source\": \"subscription\", \"credits\": 500.0 }\n ],\n \"nextExpiry\": { \"at\": \"2026-10-01T00:00:00Z\", \"credits\": 500.0 },\n \"plan\": \"business\",\n \"totalPurchased\": 150000.0,\n \"totalConsumed\": 46961.0,\n \"asOf\": \"2026-09-19T12:34:56Z\"\n}\n```","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/credits/balance","href":"/api-reference/credits/get-your-credit-balance","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n h2: \"h2\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Returns the credits this API key’s account can spend right now.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Free.\"\n }), \" This endpoint is never charged, so you can poll it to drive alerting\\nor a pre-flight check without the check itself costing you anything. It is rate\\nlimited like every other key-authenticated route.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Authentication:\"\n }), \" any valid \", _jsx(_components.code, {\n children: \"vq_key_\"\n }), \" key. No particular scope is required.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"What the number means\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"creditsRemaining\"\n }), \" is derived from your live credit buckets under the same\\nexpiry rule the billing path applies, so it is what a call would actually be\\nallowed to spend, not a cached figure that a nightly job later corrects.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"It is the same field name metered responses use, so you can read \", _jsx(_components.code, {\n children: \"creditsRemaining\"\n }), \"\\nthe same way everywhere.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Not all credits behave alike\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Read \", _jsx(_components.code, {\n children: \"bySource\"\n }), \" before assuming a balance is durable. \", _jsx(_components.code, {\n children: \"subscription\"\n }), \" credits are\\nuse-it-or-lose-it and are forfeited at the end of the period, while \", _jsx(_components.code, {\n children: \"payg\"\n }), \"\\ncredits you purchased burn last and persist. \", _jsx(_components.code, {\n children: \"nextExpiry\"\n }), \" tells you what is\\nabout to be forfeited and when, which is the one thing a balance alone cannot.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Two separate ceilings\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Credits are how MUCH you may spend; \", _jsx(_components.code, {\n children: \"rateLimit\"\n }), \" is how FAST you may call. They\\nare independent, so a healthy balance does not exempt you from throttling and\\nstaying under the rate limit does not pay for a call.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"rateLimit\"\n }), \" has your plan applied and lets you size a client before issuing a\\nrequest. Every response also carries \", _jsx(_components.code, {\n children: \"X-RateLimit-Limit\"\n }), \", \", _jsx(_components.code, {\n children: \"X-RateLimit-Remaining\"\n }), \"\\nand \", _jsx(_components.code, {\n children: \"X-RateLimit-Reset\"\n }), \" for the per-minute window, plus \", _jsx(_components.code, {\n children: \"X-RateLimit-Limit-Day\"\n }), \"\\nand \", _jsx(_components.code, {\n children: \"X-RateLimit-Remaining-Day\"\n }), \" for the daily backstop; those report the same\\nceilings with your live headroom.\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Example\"\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"2\",\n language: \"shellscript\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"shellscript\",\n children: _jsxs(_components.code, {\n language: \"shellscript\",\n numberOfLines: \"2\",\n children: [_jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" https://api.vaquill.ai/api/v1/credits/balance\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Authorization: Bearer \"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"$VAQUILL_API_KEY\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"\"\n })]\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"13\",\n language: \"json\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"json\",\n children: _jsxs(_components.code, {\n language: \"json\",\n numberOfLines: \"13\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"{\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"creditsRemaining\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"103039.0\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"usdRemaining\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"1030.39\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"bySource\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": [\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" { \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"source\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"payg\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"credits\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"102539.0\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" { \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"source\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"subscription\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"credits\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"500.0\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" }\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" ],\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"nextExpiry\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": { \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"at\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"2026-10-01T00:00:00Z\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"credits\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"500.0\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"plan\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"business\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"totalPurchased\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"150000.0\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"totalConsumed\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"46961.0\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"asOf\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"2026-09-19T12:34:56Z\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"}\"\n })\n }), \"\\n\"]\n })\n })\n })]\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};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\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":{"codeStyling":{"theme":"github-light"},"config":{},"pageMetadata":{"title":"Get your credit balance","description":"Returns the credits this API key's account can spend right now.\n\n**Free.** This endpoint is never charged, so you can poll it to drive alerting\nor a pre-flight check without the check itself costing you anything. It is rate\nlimited like every other key-authenticated route.\n\n**Authentication:** any valid `vq_key_` key. No particular scope is required.\n\n## What the number means\n\n`creditsRemaining` is derived from your live credit buckets under the same\nexpiry rule the billing path applies, so it is what a call would actually be\nallowed to spend, not a cached figure that a nightly job later corrects.\n\nIt is the same field name metered responses use, so you can read `creditsRemaining`\nthe same way everywhere.\n\n## Not all credits behave alike\n\nRead `bySource` before assuming a balance is durable. `subscription` credits are\nuse-it-or-lose-it and are forfeited at the end of the period, while `payg`\ncredits you purchased burn last and persist. `nextExpiry` tells you what is\nabout to be forfeited and when, which is the one thing a balance alone cannot.\n\n## Two separate ceilings\n\nCredits are how MUCH you may spend; `rateLimit` is how FAST you may call. They\nare independent, so a healthy balance does not exempt you from throttling and\nstaying under the rate limit does not pay for a call.\n\n`rateLimit` has your plan applied and lets you size a client before issuing a\nrequest. Every response also carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`\nand `X-RateLimit-Reset` for the per-minute window, plus `X-RateLimit-Limit-Day`\nand `X-RateLimit-Remaining-Day` for the daily backstop; those report the same\nceilings with your live headroom.\n\n## Example\n\n```bash\ncurl https://api.vaquill.ai/api/v1/credits/balance \\\n -H \"Authorization: Bearer $VAQUILL_API_KEY\"\n```\n\n```json\n{\n \"creditsRemaining\": 103039.0,\n \"usdRemaining\": 1030.39,\n \"bySource\": [\n { \"source\": \"payg\", \"credits\": 102539.0 },\n { \"source\": \"subscription\", \"credits\": 500.0 }\n ],\n \"nextExpiry\": { \"at\": \"2026-10-01T00:00:00Z\", \"credits\": 500.0 },\n \"plan\": \"business\",\n \"totalPurchased\": 150000.0,\n \"totalConsumed\": 46961.0,\n \"asOf\": \"2026-09-19T12:34:56Z\"\n}\n```","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/credits/balance","href":"/api-reference/credits/get-your-credit-balance","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Credits"],"summary":"Get your credit balance","description":"Returns the credits this API key's account can spend right now.\n\n**Free.** This endpoint is never charged, so you can poll it to drive alerting\nor a pre-flight check without the check itself costing you anything. It is rate\nlimited like every other key-authenticated route.\n\n**Authentication:** any valid `vq_key_` key. No particular scope is required.\n\n## What the number means\n\n`creditsRemaining` is derived from your live credit buckets under the same\nexpiry rule the billing path applies, so it is what a call would actually be\nallowed to spend, not a cached figure that a nightly job later corrects.\n\nIt is the same field name metered responses use, so you can read `creditsRemaining`\nthe same way everywhere.\n\n## Not all credits behave alike\n\nRead `bySource` before assuming a balance is durable. `subscription` credits are\nuse-it-or-lose-it and are forfeited at the end of the period, while `payg`\ncredits you purchased burn last and persist. `nextExpiry` tells you what is\nabout to be forfeited and when, which is the one thing a balance alone cannot.\n\n## Two separate ceilings\n\nCredits are how MUCH you may spend; `rateLimit` is how FAST you may call. They\nare independent, so a healthy balance does not exempt you from throttling and\nstaying under the rate limit does not pay for a call.\n\n`rateLimit` has your plan applied and lets you size a client before issuing a\nrequest. Every response also carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`\nand `X-RateLimit-Reset` for the per-minute window, plus `X-RateLimit-Limit-Day`\nand `X-RateLimit-Remaining-Day` for the daily backstop; those report the same\nceilings with your live headroom.\n\n## Example\n\n```bash\ncurl https://api.vaquill.ai/api/v1/credits/balance \\\n -H \"Authorization: Bearer $VAQUILL_API_KEY\"\n```\n\n```json\n{\n \"creditsRemaining\": 103039.0,\n \"usdRemaining\": 1030.39,\n \"bySource\": [\n { \"source\": \"payg\", \"credits\": 102539.0 },\n { \"source\": \"subscription\", \"credits\": 500.0 }\n ],\n \"nextExpiry\": { \"at\": \"2026-10-01T00:00:00Z\", \"credits\": 500.0 },\n \"plan\": \"business\",\n \"totalPurchased\": 150000.0,\n \"totalConsumed\": 46961.0,\n \"asOf\": \"2026-09-19T12:34:56Z\"\n}\n```","operationId":"get_credit_balance","responses":{"200":"c58ba941-c1bb-4f06-889e-2aa789c37e8d","401":"e056b584-8335-496b-b662-2f29260b2a9d","429":"315ac00d-6c11-4976-a84e-993b711fefa7"},"method":"get","type":"path","servers":["72a9d95a-e7d7-4dbe-946e-0f3975dd0517"],"security":["507a4177-c353-457f-b275-c6e5689326cb","fd51ae53-9413-4b29-a7c2-32a68ced30e6"],"path":"/api/v1/credits/balance","baseUrlOptions":["https://api.vaquill.ai"],"title":"Get your credit balance","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{},"responses":{"c58ba941-c1bb-4f06-889e-2aa789c37e8d":{"description":"Current spendable balance for the calling key's account.","content":{"application/json":{"schema":{"properties":{"creditsRemaining":{"type":"number","title":"Creditsremaining","description":"Credits you can actually spend right now. Deliberately the same field name that metered responses return, so one name means one thing across the API.\n\nDerived from your live credit buckets under the same expiry rule the billing path applies, so it never promises credits a call would refuse to spend.","examples":[103039],"isRequired":true,"uniqueKey":"creditsRemaining","typeLabel":"number"},"usdRemaining":{"type":"number","title":"Usdremaining","description":"`creditsRemaining` in USD, at the published conversion rate (1 credit = $0.01). Provided so you do not have to hardcode the rate; `GET /api/v1/api-credits/pricing` is its source of truth.","examples":[1030.39],"isRequired":true,"uniqueKey":"usdRemaining","typeLabel":"number"},"totalPurchased":{"type":"number","title":"Totalpurchased","description":"Lifetime credits added to this account.","examples":[150000],"isRequired":true,"uniqueKey":"totalPurchased","typeLabel":"number"},"totalConsumed":{"type":"number","title":"Totalconsumed","description":"Lifetime credits spent by this account.","examples":[46961],"isRequired":true,"uniqueKey":"totalConsumed","typeLabel":"number"},"asOf":{"type":"string","format":"date-time","title":"Asof","description":"When this balance was computed. The value is live, not cached, so this is the instant the buckets were read.","isRequired":true,"uniqueKey":"asOf","typeLabel":"string\u003cdate-time>"},"bySource":{"items":{"properties":{"source":{"type":"string","title":"Source","description":"Where the credits came from. `bonus` (signup grant), `subscription` (plan allowance, use-it-or-lose-it), `payg` (purchased packs) and `comp` (complimentary) exist today, and this list is not closed: read the values rather than matching on a fixed set.","examples":["payg"],"isRequired":true,"uniqueKey":"bySource.items.[INDEX].source","typeLabel":"string"},"credits":{"type":"number","title":"Credits","description":"Credits remaining in this source. 1 credit = $0.01.","examples":[1030.43],"isRequired":true,"uniqueKey":"bySource.items.[INDEX].credits","typeLabel":"number"}},"type":"object","required":["source","credits"],"title":"CreditSourceBreakdown","description":"Live credits held under one funding source.","uniqueKey":"bySource.items.[INDEX]","typeLabel":"CreditSourceBreakdown · object"},"type":"array","title":"Bysource","description":"`creditsRemaining` split by funding source, and it always sums to it. Worth reading because the sources do not behave alike: `subscription` credits are use-it-or-lose-it at the period end, while `payg` credits you bought are durable and burn last.","uniqueKey":"bySource","typeLabel":"CreditSourceBreakdown · object[]"},"nextExpiry":{"oneOf":[{"type":"object","title":"CreditExpiry","description":"The soonest expiry across your credits, or `null` if none of them expire. Poll this to avoid silently forfeiting an allowance.","required":["at","credits"],"properties":{"at":{"type":"string","format":"date-time","title":"At","description":"UTC instant at which the next credits expire.","examples":["2026-10-01T00:00:00Z"],"isRequired":true,"uniqueKey":"nextExpiry.oneOf.0.at","typeLabel":"string\u003cdate-time>"},"credits":{"type":"number","title":"Credits","description":"Credits that expire at that instant. They stop being spendable immediately at `at`, not when the nightly sweep records it.","examples":[500],"isRequired":true,"uniqueKey":"nextExpiry.oneOf.0.credits","typeLabel":"number"}},"uniqueKey":"nextExpiry.oneOf.0","typeLabel":"CreditExpiry · object"},{"type":"null","description":"The soonest expiry across your credits, or `null` if none of them expire. Poll this to avoid silently forfeiting an allowance.","uniqueKey":"nextExpiry.oneOf.1","typeLabel":"null"}],"uniqueKey":"nextExpiry","typeLabel":"CreditExpiry · object | null"},"plan":{"oneOf":[{"type":"string","title":"Plan","description":"Active API subscription tier, or `null` on pay-as-you-go. Also determines your rate-limit multiplier. Briefly cached, so a subscription change made seconds ago may not be reflected yet; `creditsRemaining` is always live.","example":"business","uniqueKey":"plan.oneOf.0","typeLabel":"string"},{"type":"null","title":"Plan","description":"Active API subscription tier, or `null` on pay-as-you-go. Also determines your rate-limit multiplier. Briefly cached, so a subscription change made seconds ago may not be reflected yet; `creditsRemaining` is always live.","example":"business","uniqueKey":"plan.oneOf.1","typeLabel":"null"}],"uniqueKey":"plan","typeLabel":"string | null"},"rateLimit":{"oneOf":[{"type":"object","title":"CreditRateLimit","description":"How fast this key may call, as opposed to how much it may spend. The two ceilings are independent: holding credits does not exempt you from these, and staying under these does not pay for a call.\n\nThese are the ceilings themselves, with your plan already applied, so you can size a client BEFORE issuing a request. The `X-RateLimit-*` headers on every response report the same ceilings plus your live headroom, and the two agree.","required":["perMinute","perHour","perDay"],"properties":{"perMinute":{"type":"integer","title":"Perminute","description":"Requests allowed per minute on this key, plan multiplier already applied.","examples":[150],"isRequired":true,"uniqueKey":"rateLimit.oneOf.0.perMinute","typeLabel":"integer"},"perHour":{"type":"integer","title":"Perhour","description":"Requests allowed per hour on this key.","examples":[2000],"isRequired":true,"uniqueKey":"rateLimit.oneOf.0.perHour","typeLabel":"integer"},"perDay":{"type":"integer","title":"Perday","description":"Requests allowed per day on this key.","examples":[10000],"isRequired":true,"uniqueKey":"rateLimit.oneOf.0.perDay","typeLabel":"integer"}},"uniqueKey":"rateLimit.oneOf.0","typeLabel":"CreditRateLimit · object"},{"type":"null","description":"How fast this key may call, as opposed to how much it may spend. The two ceilings are independent: holding credits does not exempt you from these, and staying under these does not pay for a call.\n\nThese are the ceilings themselves, with your plan already applied, so you can size a client BEFORE issuing a request. The `X-RateLimit-*` headers on every response report the same ceilings plus your live headroom, and the two agree.","uniqueKey":"rateLimit.oneOf.1","typeLabel":"null"}],"uniqueKey":"rateLimit","typeLabel":"CreditRateLimit · object | null"}},"type":"object","required":["creditsRemaining","usdRemaining","totalPurchased","totalConsumed","asOf"],"title":"ExternalCreditBalanceResponse","description":"Spendable credit balance for the calling API key's account.","uniqueKey":"","typeLabel":"ExternalCreditBalanceResponse · object"},"example":{"creditsRemaining":103039,"usdRemaining":1030.39,"bySource":[{"source":"comp","credits":20000},{"source":"payg","credits":64699},{"source":"subscription","credits":18340}],"nextExpiry":{"at":"2026-10-12T13:56:31Z","credits":18340},"plan":"business","totalPurchased":143960,"totalConsumed":48471,"rateLimit":{"perMinute":150,"perHour":2500,"perDay":10000},"asOf":"2026-09-19T12:34:56Z"},"examples":{"Example":{"title":"Example","value":{"creditsRemaining":103039,"usdRemaining":1030.39,"bySource":[{"source":"comp","credits":20000},{"source":"payg","credits":64699},{"source":"subscription","credits":18340}],"nextExpiry":{"at":"2026-10-12T13:56:31Z","credits":18340},"plan":"business","totalPurchased":143960,"totalConsumed":48471,"rateLimit":{"perMinute":150,"perHour":2500,"perDay":10000},"asOf":"2026-09-19T12:34:56Z"}}},"exampleType":"examples"}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed in the current per-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current per-minute window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix timestamp at which the per-minute window resets.","schema":{"type":"integer"}},"X-RateLimit-Limit-Day":{"description":"Requests allowed per day (the slow-drip backstop).","schema":{"type":"integer"}},"X-RateLimit-Remaining-Day":{"description":"Requests left in the daily window.","schema":{"type":"integer"}},"X-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"e056b584-8335-496b-b662-2f29260b2a9d":{"description":"Missing, malformed or unrecognised API key. Note this endpoint accepts ONLY a `vq_key_` API key; a dashboard session token is rejected here.","content":{"application/json":{"example":{"detail":"Invalid token"},"examples":{"Example":{"title":"Example","value":{"detail":"Invalid token"}}},"exampleType":"examples"}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed in the current per-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current per-minute window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix timestamp at which the per-minute window resets.","schema":{"type":"integer"}},"X-RateLimit-Limit-Day":{"description":"Requests allowed per day (the slow-drip backstop).","schema":{"type":"integer"}},"X-RateLimit-Remaining-Day":{"description":"Requests left in the daily window.","schema":{"type":"integer"}},"X-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}}},"exampleType":"examples"},"315ac00d-6c11-4976-a84e-993b711fefa7":{"description":"Request-rate ceiling exceeded. Retry after the `Retry-After` header. Being throttled says nothing about your balance.","content":{"application/json":{"example":{"detail":"Rate limit exceeded. Try again in 42 seconds."},"examples":{"Example":{"title":"Example","value":{"detail":"Rate limit exceeded. Try again in 42 seconds."}}},"exampleType":"examples"}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed in the current per-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current per-minute window.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix timestamp at which the per-minute window resets.","schema":{"type":"integer"}},"X-RateLimit-Limit-Day":{"description":"Requests allowed per day (the slow-drip backstop).","schema":{"type":"integer"}},"X-RateLimit-Remaining-Day":{"description":"Requests left in the daily window.","schema":{"type":"integer"}},"X-Request-ID":{"description":"Correlation id of this request. Quote it when contacting support.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"exampleType":"examples"}},"security":{"507a4177-c353-457f-b275-c6e5689326cb":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"vq_key_*","description":"API key issued from the developer dashboard. Pass as `Authorization: Bearer vq_key_...` (preferred).","scopes":[],"schemeName":"ApiKeyAuth"}},"fd51ae53-9413-4b29-a7c2-32a68ced30e6":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"The same API key as a bare header value: `X-API-Key: vq_key_...`. Equivalent to the Bearer form.","scopes":[],"schemeName":"ApiKeyHeader"}}},"servers":{"72a9d95a-e7d7-4dbe-946e-0f3975dd0517":{"url":"https://api.vaquill.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"vq_key_*","description":"API key issued from the developer dashboard. Pass as `Authorization: Bearer vq_key_...` (preferred).","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key issued from the developer dashboard. Pass as `Authorization: Bearer vq_key_...` (preferred).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"The same API key as a bare header value: `X-API-Key: vq_key_...`. Equivalent to the Bearer form.","scopes":[],"schemeName":"ApiKeyHeader"},"schema":{"title":"X-API-Key","type":"string","description":"The same API key as a bare header value: `X-API-Key: vq_key_...`. Equivalent to the Bearer form.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyHeader","name":"X-API-Key"}],"title":"ApiKeyHeader"}]},"originalFileLocation":"https://api.vaquill.ai/external/openapi.json"},"subdomain":"vaquill","siteName":"Vaquill AI","title":"Get your credit balance - Vaquill AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/credits/get-your-credit-balance.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Returns the credits this API key\u0026#x27;s account can spend right now. Free. This endpoint is never charged, so you can poll it to drive alerting or a pre-flight check without the check itself costing you anything. It is rate limited like every other key-authenticated route. Authentication: any valid vq_key_ key. No particular scope is required. ## What the number means creditsRemaining is derived from your live credit buckets under the same expiry rule the billing path applies, so it is what a call would actually be allowed to spend, not a cached figure that a nightly job later corrects. It is the same field name metered responses use, so you can read creditsRemaining the same way everywhere. ## Not all credits behave alike Read bySource before assuming a balance is durable. subscription credits are use-it-or-lose-it and are forfeited at the end of the period, while payg credits you purchased burn last and persist. nextExpiry tells you what is about to be forfeited and when, which is the one thing a balance alone cannot. ## Two separate ceilings Credits are how MUCH you may spend; rateLimit is how FAST you may call. They are independent, so a healthy balance does not exempt you from throttling and staying under the rate limit does not pay for a call. rateLimit has your plan applied and lets you size a client before issuing a request. Every response also carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset for the per-minute window, plus X-RateLimit-Limit-Day and X-RateLimit-Remaining-Day for the daily backstop; those report the same ceilings with your live headroom. ## Example bash curl https://api.vaquill.ai/api/v1/credits/balance \\ -H \u0026quot;Authorization: Bearer $VAQUILL_API_KEY\u0026quot; json { \u0026quot;creditsRemaining\u0026quot;: 103039.0, \u0026quot;usdRemaining\u0026quot;: 1030.39, \u0026quot;bySource\u0026quot;: [ { \u0026quot;source\u0026quot;: \u0026quot;payg\u0026quot;, \u0026quot;credits\u0026quot;: 102539.0 }, { \u0026quot;source\u0026quot;: \u0026quot;subscription\u0026quot;, \u0026quot;credits\u0026quot;: 500.0 } ], \u0026quot;nextExpiry\u0026quot;: { \u0026quot;at\u0026quot;: \u0026quot;2026-10-01T00:00:00Z\u0026quot;, \u0026quot;credits\u0026quot;: 500.0 }, \u0026quot;plan\u0026quot;: \u0026quot;business\u0026quot;, \u0026quot;totalPurchased\u0026quot;: 150000.0, \u0026quot;totalConsumed\u0026quot;: 46961.0, \u0026quot;asOf\u0026quot;: \u0026quot;2026-09-19T12:34:56Z\u0026quot; }\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vaquill AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_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=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get your credit balance - Vaquill AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the credits this API key\u0026#x27;s account can spend right now. Free. This endpoint is never charged, so you can poll it to drive alerting or a pre-flight check without the check itself costing you anything. It is rate limited like every other key-authenticated route. Authentication: any valid vq_key_ key. No particular scope is required. ## What the number means creditsRemaining is derived from your live credit buckets under the same expiry rule the billing path applies, so it is what a call would actually be allowed to spend, not a cached figure that a nightly job later corrects. It is the same field name metered responses use, so you can read creditsRemaining the same way everywhere. ## Not all credits behave alike Read bySource before assuming a balance is durable. subscription credits are use-it-or-lose-it and are forfeited at the end of the period, while payg credits you purchased burn last and persist. nextExpiry tells you what is about to be forfeited and when, which is the one thing a balance alone cannot. ## Two separate ceilings Credits are how MUCH you may spend; rateLimit is how FAST you may call. They are independent, so a healthy balance does not exempt you from throttling and staying under the rate limit does not pay for a call. rateLimit has your plan applied and lets you size a client before issuing a request. Every response also carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset for the per-minute window, plus X-RateLimit-Limit-Day and X-RateLimit-Remaining-Day for the daily backstop; those report the same ceilings with your live headroom. ## Example bash curl https://api.vaquill.ai/api/v1/credits/balance \\ -H \u0026quot;Authorization: Bearer $VAQUILL_API_KEY\u0026quot; json { \u0026quot;creditsRemaining\u0026quot;: 103039.0, \u0026quot;usdRemaining\u0026quot;: 1030.39, \u0026quot;bySource\u0026quot;: [ { \u0026quot;source\u0026quot;: \u0026quot;payg\u0026quot;, \u0026quot;credits\u0026quot;: 102539.0 }, { \u0026quot;source\u0026quot;: \u0026quot;subscription\u0026quot;, \u0026quot;credits\u0026quot;: 500.0 } ], \u0026quot;nextExpiry\u0026quot;: { \u0026quot;at\u0026quot;: \u0026quot;2026-10-01T00:00:00Z\u0026quot;, \u0026quot;credits\u0026quot;: 500.0 }, \u0026quot;plan\u0026quot;: \u0026quot;business\u0026quot;, \u0026quot;totalPurchased\u0026quot;: 150000.0, \u0026quot;totalConsumed\u0026quot;: 46961.0, \u0026quot;asOf\u0026quot;: \u0026quot;2026-09-19T12:34:56Z\u0026quot; }\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vaquill AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vaquill.mintlify.site/docs/_mintlify/api/og/v2?division=Credits\u0026amp;title=Get+your+credit+balance\u0026amp;description=Returns+the+credits+this+API+key%27s+account+can+spend+right+now.%0A%0A**Free.**+This+endpoint+is+never+charged%2C+so+you+can+poll+it+to+drive+alerting%0Aor+a+pre-flight+\u0026amp;theme=c0fd5b007b30a7a110519c4a\u0026amp;signature=d63d28f357066f954d47bd421f26938edec458724a5a54fe87d446fa3421ba2b\">\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=\"Get your credit balance - Vaquill AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the credits this API key\u0026#x27;s account can spend right now. Free. This endpoint is never charged, so you can poll it to drive alerting or a pre-flight check without the check itself costing you anything. It is rate limited like every other key-authenticated route. Authentication: any valid vq_key_ key. No particular scope is required. ## What the number means creditsRemaining is derived from your live credit buckets under the same expiry rule the billing path applies, so it is what a call would actually be allowed to spend, not a cached figure that a nightly job later corrects. It is the same field name metered responses use, so you can read creditsRemaining the same way everywhere. ## Not all credits behave alike Read bySource before assuming a balance is durable. subscription credits are use-it-or-lose-it and are forfeited at the end of the period, while payg credits you purchased burn last and persist. nextExpiry tells you what is about to be forfeited and when, which is the one thing a balance alone cannot. ## Two separate ceilings Credits are how MUCH you may spend; rateLimit is how FAST you may call. They are independent, so a healthy balance does not exempt you from throttling and staying under the rate limit does not pay for a call. rateLimit has your plan applied and lets you size a client before issuing a request. Every response also carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset for the per-minute window, plus X-RateLimit-Limit-Day and X-RateLimit-Remaining-Day for the daily backstop; those report the same ceilings with your live headroom. ## Example bash curl https://api.vaquill.ai/api/v1/credits/balance \\ -H \u0026quot;Authorization: Bearer $VAQUILL_API_KEY\u0026quot; json { \u0026quot;creditsRemaining\u0026quot;: 103039.0, \u0026quot;usdRemaining\u0026quot;: 1030.39, \u0026quot;bySource\u0026quot;: [ { \u0026quot;source\u0026quot;: \u0026quot;payg\u0026quot;, \u0026quot;credits\u0026quot;: 102539.0 }, { \u0026quot;source\u0026quot;: \u0026quot;subscription\u0026quot;, \u0026quot;credits\u0026quot;: 500.0 } ], \u0026quot;nextExpiry\u0026quot;: { \u0026quot;at\u0026quot;: \u0026quot;2026-10-01T00:00:00Z\u0026quot;, \u0026quot;credits\u0026quot;: 500.0 }, \u0026quot;plan\u0026quot;: \u0026quot;business\u0026quot;, \u0026quot;totalPurchased\u0026quot;: 150000.0, \u0026quot;totalConsumed\u0026quot;: 46961.0, \u0026quot;asOf\u0026quot;: \u0026quot;2026-09-19T12:34:56Z\u0026quot; }\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vaquill.mintlify.site/docs/_mintlify/api/og/v2?division=Credits\u0026amp;title=Get+your+credit+balance\u0026amp;description=Returns+the+credits+this+API+key%27s+account+can+spend+right+now.%0A%0A**Free.**+This+endpoint+is+never+charged%2C+so+you+can+poll+it+to+drive+alerting%0Aor+a+pre-flight+\u0026amp;theme=c0fd5b007b30a7a110519c4a\u0026amp;signature=d63d28f357066f954d47bd421f26938edec458724a5a54fe87d446fa3421ba2b\">\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=\"/docs/mintlify-assets/_mintlify/favicons/vaquill/cxXYvhk1ARjGdjCs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vaquill AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6E3730\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance\">\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/credits/get-your-credit-balance.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.vaquill.ai/#organization\",\"name\":\"Vaquill AI\",\"url\":\"https://www.vaquill.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vaquill/HoYf91pjRoTl4-t3/logo/light.png?fit=max\u0026auto=format\u0026n=HoYf91pjRoTl4-t3\u0026q=85\u0026s=1c97b6018caaa1fee0a743b05651bb81\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.vaquill.ai/docs#website\",\"name\":\"Vaquill AI\",\"url\":\"https://www.vaquill.ai/docs\",\"publisher\":{\"@id\":\"https://www.vaquill.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance#webpage\",\"url\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance\",\"name\":\"Get your credit balance\",\"description\":\"Returns the credits this API key's account can spend right now. Free. This endpoint is never charged, so you can poll it to drive alerting or a pre-flight check without the check itself costing you anything. It is rate limited like every other key-authenticated route. Authentication: any valid vq_key_ key. No particular scope is required. ## What the number means creditsRemaining is derived from your live credit buckets under the same expiry rule the billing path applies, so it is what a call would actually be allowed to spend, not a cached figure that a nightly job later corrects. It is the same field name metered responses use, so you can read creditsRemaining the same way everywhere. ## Not all credits behave alike Read bySource before assuming a balance is durable. subscription credits are use-it-or-lose-it and are forfeited at the end of the period, while payg credits you purchased burn last and persist. nextExpiry tells you what is about to be forfeited and when, which is the one thing a balance alone cannot. ## Two separate ceilings Credits are how MUCH you may spend; rateLimit is how FAST you may call. They are independent, so a healthy balance does not exempt you from throttling and staying under the rate limit does not pay for a call. rateLimit has your plan applied and lets you size a client before issuing a request. Every response also carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset for the per-minute window, plus X-RateLimit-Limit-Day and X-RateLimit-Remaining-Day for the daily backstop; those report the same ceilings with your live headroom. ## Example bash curl https://api.vaquill.ai/api/v1/credits/balance \\\\ -H \\\"Authorization: Bearer $VAQUILL_API_KEY\\\" json { \\\"creditsRemaining\\\": 103039.0, \\\"usdRemaining\\\": 1030.39, \\\"bySource\\\": [ { \\\"source\\\": \\\"payg\\\", \\\"credits\\\": 102539.0 }, { \\\"source\\\": \\\"subscription\\\", \\\"credits\\\": 500.0 } ], \\\"nextExpiry\\\": { \\\"at\\\": \\\"2026-10-01T00:00:00Z\\\", \\\"credits\\\": 500.0 }, \\\"plan\\\": \\\"business\\\", \\\"totalPurchased\\\": 150000.0, \\\"totalConsumed\\\": 46961.0, \\\"asOf\\\": \\\"2026-09-19T12:34:56Z\\\" }\",\"isPartOf\":{\"@id\":\"https://www.vaquill.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Vaquill AI\",\"item\":\"https://www.vaquill.ai/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get your credit balance\",\"item\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance#apireference\",\"headline\":\"Get your credit balance\",\"name\":\"Get your credit balance\",\"description\":\"Returns the credits this API key's account can spend right now. Free. This endpoint is never charged, so you can poll it to drive alerting or a pre-flight check without the check itself costing you anything. It is rate limited like every other key-authenticated route. Authentication: any valid vq_key_ key. No particular scope is required. ## What the number means creditsRemaining is derived from your live credit buckets under the same expiry rule the billing path applies, so it is what a call would actually be allowed to spend, not a cached figure that a nightly job later corrects. It is the same field name metered responses use, so you can read creditsRemaining the same way everywhere. ## Not all credits behave alike Read bySource before assuming a balance is durable. subscription credits are use-it-or-lose-it and are forfeited at the end of the period, while payg credits you purchased burn last and persist. nextExpiry tells you what is about to be forfeited and when, which is the one thing a balance alone cannot. ## Two separate ceilings Credits are how MUCH you may spend; rateLimit is how FAST you may call. They are independent, so a healthy balance does not exempt you from throttling and staying under the rate limit does not pay for a call. rateLimit has your plan applied and lets you size a client before issuing a request. Every response also carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset for the per-minute window, plus X-RateLimit-Limit-Day and X-RateLimit-Remaining-Day for the daily backstop; those report the same ceilings with your live headroom. ## Example bash curl https://api.vaquill.ai/api/v1/credits/balance \\\\ -H \\\"Authorization: Bearer $VAQUILL_API_KEY\\\" json { \\\"creditsRemaining\\\": 103039.0, \\\"usdRemaining\\\": 1030.39, \\\"bySource\\\": [ { \\\"source\\\": \\\"payg\\\", \\\"credits\\\": 102539.0 }, { \\\"source\\\": \\\"subscription\\\", \\\"credits\\\": 500.0 } ], \\\"nextExpiry\\\": { \\\"at\\\": \\\"2026-10-01T00:00:00Z\\\", \\\"credits\\\": 500.0 }, \\\"plan\\\": \\\"business\\\", \\\"totalPurchased\\\": 150000.0, \\\"totalConsumed\\\": 46961.0, \\\"asOf\\\": \\\"2026-09-19T12:34:56Z\\\" }\",\"url\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance\",\"mainEntityOfPage\":{\"@id\":\"https://www.vaquill.ai/docs/api-reference/credits/get-your-credit-balance#webpage\"},\"publisher\":{\"@id\":\"https://www.vaquill.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://www.vaquill.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vaquill AI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Vaquill AI","nav":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock","href":"/api-guide/changelog"},{"anchor":"MCP","icon":"plug","href":"/integrations/mcp/vaquill"}]},"tabs":[{"tab":"Guide","pages":[{"title":"Guide","href":"/api-guide/coverage"}]},{"tab":"US API reference","groups":[{"group":"US Statutes","pages":[{"title":"Search US statutes, constitutions, court rules, and executive actions","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/search","href":"/api-reference/us-statutes/search-us-statutes-constitutions-court-rules-and-executive-actions"},{"title":"Get statute section metadata","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}","href":"/api-reference/us-statutes/get-statute-section-metadata"},{"title":"Resolve a citation to its section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/resolve","href":"/api-reference/us-statutes/resolve-a-citation-to-its-section"},{"title":"Resolve many citations at once","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/resolve","href":"/api-reference/us-statutes/resolve-many-citations-at-once"},{"title":"Get the sections around this one","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/related","href":"/api-reference/us-statutes/get-the-sections-around-this-one"},{"title":"Get metadata for many statute sections","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/sections","href":"/api-reference/us-statutes/get-metadata-for-many-statute-sections"},{"title":"Get statute full text","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/body","href":"/api-reference/us-statutes/get-statute-full-text"},{"title":"Count the sections in a scope","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/count","href":"/api-reference/us-statutes/count-the-sections-in-a-scope"},{"title":"Coverage matrix by jurisdiction and corpusType","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/coverage","href":"/api-reference/us-statutes/coverage-matrix-by-jurisdiction-and-corpustype"},{"title":"Browse the statutory hierarchy","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/divisions","href":"/api-reference/us-statutes/browse-the-statutory-hierarchy"},{"title":"Get this section's change history","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/changes","href":"/api-reference/us-statutes/get-this-sections-change-history"},{"title":"Which acts a state publisher lists against this section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/enactments","href":"/api-reference/us-statutes/which-acts-a-state-publisher-lists-against-this-section"},{"title":"Get the Federal Register documents behind a CFR section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/rulemaking","href":"/api-reference/us-statutes/get-the-federal-register-documents-behind-a-cfr-section"},{"title":"Get every Federal Register document for a CFR part","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/part/{title}/{part}/rulemaking","href":"/api-reference/us-statutes/get-every-federal-register-document-for-a-cfr-part"},{"title":"Find the citations in a text and resolve each","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/statutes/extract-citations","href":"/api-reference/us-statutes/find-the-citations-in-a-text-and-resolve-each"},{"title":"Find the sections that cite this one","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/cited-by","href":"/api-reference/us-statutes/find-the-sections-that-cite-this-one"},{"title":"Get the defined terms that govern this section","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/definitions","href":"/api-reference/us-statutes/get-the-defined-terms-that-govern-this-section"},{"title":"Compare this provision against other states","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/statutes/section/{act_id}/cross-state","href":"/api-reference/us-statutes/compare-this-provision-against-other-states"}]},{"group":"Pricing","pages":[{"title":"Get API credit pricing","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/api-credits/pricing","href":"/api-reference/pricing/get-api-credit-pricing"}]},{"group":"Board Watches","pages":[{"title":"List watchable boards","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/boards","href":"/api-reference/board-watches/list-watchable-boards"},{"title":"List your board watches","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches","href":"/api-reference/board-watches/list-your-board-watches"},{"title":"Create a board watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/watches","href":"/api-reference/board-watches/create-a-board-watch"},{"title":"Send a test delivery","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/watches/{watch_id}/test","href":"/api-reference/board-watches/send-a-test-delivery"},{"title":"Delete a board watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json delete /api/v1/watches/{watch_id}","href":"/api-reference/board-watches/delete-a-board-watch"},{"title":"Update a board watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json patch /api/v1/watches/{watch_id}","href":"/api-reference/board-watches/update-a-board-watch"},{"title":"List what changed on a watch's source","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches/{watch_id}/changes","href":"/api-reference/board-watches/list-what-changed-on-a-watchs-source"},{"title":"Old-vs-new text for one change","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches/{watch_id}/changes/{change_id}/diff","href":"/api-reference/board-watches/old-vs-new-text-for-one-change"},{"title":"List delivery history for a watch","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/watches/{watch_id}/deliveries","href":"/api-reference/board-watches/list-delivery-history-for-a-watch"},{"title":"Law change alert","version":null,"deprecated":null,"openapi":"https://api.vaquill.ai/external/openapi.json webhook board.updated","href":"/api-reference/board-watches/law-change-alert"},{"title":"Webhook test delivery","description":"Sent by `POST /watches/{watchId}/test`, signed and authenticated exactly like a real delivery. Headers: `Content-Type: application/json`, `X-Vaquill-Event: board.test`.\n\n**Verification.** Present only when the watch has a `webhookSecret`. Prefer the Standard Webhooks headers: `webhook-id`, `webhook-timestamp` (Unix seconds) and `webhook-signature` (`v1,\u003cbase64>`, several space separated while a secret rotates), an HMAC-SHA256 over `{webhook-id}.{webhook-timestamp}.{raw body}`. The HMAC key is the base64 decoding of the secret after `whsec_` when it has that prefix, otherwise the secret's UTF-8 bytes. Verify against the raw bytes before parsing, and reject a timestamp more than 5 minutes old. `webhook-id` is stable across retries of one delivery. The legacy `X-Vaquill-Signature: sha256=\u003chex>` header (HMAC-SHA256 of the raw body) is also sent, is deprecated, and remains for at least 12 months. Respond with any 2xx to acknowledge; redirects are not followed.","version":null,"deprecated":null,"openapi":"https://api.vaquill.ai/external/openapi.json webhook board.test","href":"/api-reference/board-watches/webhook-test-delivery"}]},{"group":"Credits","pages":[{"title":"Get your credit balance","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/credits/balance","href":"/api-reference/credits/get-your-credit-balance"}]},{"group":"US Session Laws","pages":[{"title":"Feed of changes to the session-law registry","description":"A sync feed of the registry: every state law that began to be served, had its text added, was\ncorrected, unserved, withdrawn or merged, oldest first, as a cursor over an integer `id`. Poll it\nto keep a copy of the registry current without re-listing it: read from `sinceId=0` once, then\ncall again with the `cursor` you were given.\n\n**Cost**: 1 credit per page of up to 200 entries (default 50). An empty\npage is an answer, \"nothing changed since your cursor\", and is charged. A request that fails\nvalidation (422) is never charged; a failure on our side (500, 503) is refunded.\n\n**Walking the feed.** Send `sinceId=0` for the first page. While `hasMore` is true, call again with\n`sinceId` set to `cursor`: the feed is ordered by `id`, `id` only grows, and a page carries the\nentries after `sinceId` and nothing else, so no entry is skipped or repeated between your calls.\nWhen `hasMore` is false you have caught up as of this call; keep your cursor and ask again later.\nAn empty page has `cursor: null`: keep the one you hold.\n\n**What an entry says.** `kind` is what happened (see its description), `sessionLawId` the law,\n`jurisdiction` its state, and `detectedAt` when we recorded it, an upper bound on when the law\nchanged in the world and never an approval or effective date. Read the law itself at\n`GET /us/session-laws/{sessionLawId}`, or many at once with `POST /us/session-laws/batch`. A\n`withdrawn` or `merged` entry is a tombstone: the law no longer answers there.\n\n**Filter.** `jurisdiction` limits the feed to one state, `dc` or `pr`, and then `hasMore` means\nmore MATCHING entries follow. The cursor is a position in the whole feed, so the same `sinceId`\nmeans the same point with or without the filter, and a filtered page can skip ids.\n\n**Read a short window behind your cursor.** `id` is assigned in order but a row can become visible\nslightly after a later one if two writers commit at once. Every writer today commits a whole\nbatch together, so this has not happened, but a job that must never miss an entry should re-read\nthe last few hundred ids it has already seen.\n\n**Scope.** State session laws only: federal acts (`SAL_...`) are never in this feed.\n\n**Example**\n\n```bash\ncurl \"https://api.vaquill.ai/api/v1/us/session-laws/changes?sinceId=0\u0026limit=100\" \\\n -H \"Authorization: Bearer $VAQUILL_API_KEY\"\n```\n\n```javascript\nlet cursor = 0;\nfor (;;) {\n const res = await fetch(`https://api.vaquill.ai/api/v1/us/session-laws/changes?sinceId=${cursor}`, {\n headers: { Authorization: `Bearer ${process.env.VAQUILL_API_KEY}` },\n });\n const page = await res.json();\n for (const change of page.changes) handle(change);\n if (page.cursor !== null) cursor = page.cursor;\n if (!page.hasMore) break;\n}\n```\n\n**Related endpoints**\n\n- `GET /us/session-laws/list` lists the laws of one state, filtered; this feed is how you learn\n that one changed.\n- `POST /us/session-laws/batch` reads many laws at once from the ids this feed returns.\n- `GET /us/statutes/coverage` says which sessions we hold and how complete each is, in each\n jurisdiction's `sessionLaws` block.\n\n**Nulls.** Every field of a response is always present: one with no value is `null` (or `[]`\nfor a list). The examples on this page leave the nulls out for brevity.","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/changes","href":"/api-reference/us-session-laws/feed-of-changes-to-the-session-law-registry"},{"title":"Get many state session laws at once, by id or citation","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/session-laws/batch","href":"/api-reference/us-session-laws/get-many-state-session-laws-at-once-by-id-or-citation"},{"title":"Search the text of state session laws","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json post /api/v1/us/session-laws/search","href":"/api-reference/us-session-laws/search-the-text-of-state-session-laws"},{"title":"List every served version of a state session law","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/{session_law_id}/versions","href":"/api-reference/us-session-laws/list-every-served-version-of-a-state-session-law"},{"title":"List a state's session laws","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/list","href":"/api-reference/us-session-laws/list-a-states-session-laws"},{"title":"Get a state session law's text, current or a past version","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/{session_law_id}/body","href":"/api-reference/us-session-laws/get-a-state-session-laws-text-current-or-a-past-version"},{"title":"Get a state session law, by id or by citation","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/session-laws/{session_law_id}","href":"/api-reference/us-session-laws/get-a-state-session-law-by-id-or-by-citation"}]},{"group":"US Rulemaking","pages":[{"title":"What the rulemaking store holds (free)","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/coverage","href":"/api-reference/us-rulemaking/what-the-rulemaking-store-holds-free"},{"title":"List and filter Regulations.gov dockets","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/dockets/list","href":"/api-reference/us-rulemaking/list-and-filter-regulationsgov-dockets"},{"title":"One Regulations.gov docket","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/dockets/{docket_id}","href":"/api-reference/us-rulemaking/one-regulationsgov-docket"},{"title":"Documents of one docket, oldest first","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/dockets/{docket_id}/documents","href":"/api-reference/us-rulemaking/documents-of-one-docket-oldest-first"},{"title":"Everything we hold for one RIN","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/rins/{rin}","href":"/api-reference/us-rulemaking/everything-we-hold-for-one-rin"},{"title":"Unified Agenda history of one RIN","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/rins/{rin}/agenda","href":"/api-reference/us-rulemaking/unified-agenda-history-of-one-rin"},{"title":"List and filter Rules Committee records","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/committee-records/list","href":"/api-reference/us-rulemaking/list-and-filter-rules-committee-records"},{"title":"One Rules Committee record with its page text","deprecated":null,"version":null,"openapi":"https://api.vaquill.ai/external/openapi.json get /api/v1/us/rulemaking/committee-records/{record_id}","href":"/api-reference/us-rulemaking/one-rules-committee-record-with-its-page-text"}]}]},{"tab":"India API reference","pages":[{"title":"India API reference","href":"/api-guide/coverage/india"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations"}]}]},"basePath":"","title":"Get your credit balance - Vaquill AI","buildId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","deploymentId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Do6EtGSl.js","utils-id4tQ6My.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-Byrixac4.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-nakYa3Zl.js","snippetPresets-Bq-pUS7h.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CujTC_9K.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-FneVUsVu.js","shallow-DY9WpUCz.js","getApiPlaygroundDisplay-Bz8WpPfA.js","CodeSnippet-DgCuJg4G.js","CodeSnippets-Dub9c4T0.js","Page-CePXnjd1.js","getPastedJson-xdI8y2XB.js","icon--yVw5vkr.js","MethodPill-C47t7MdS.js","DuplicateIcon-BzwJ2LeC.js","createIcon-BzggGy84.js","DynamicMarkdown-AlxJK8VR.js","SectionHeading-CMlwFxdK.js","axios-vUo_bRtp.js","Markdown-BNgNrPsi.js","clsx-apD-Q0Oo.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-qmLwQyWY.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Dc4qTkWx.js"]}