Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription’s 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without scope, returns your personal subscriptions followed by the organization’s, each in the order workspaces use them.
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Replicas Docs","colors":{"primary":"#1c6a49","light":"#3eeba3","dark":"#16865b"},"logo":{"light":"https://mintcdn.com/replicas/PCNWUrW07f_UGjWs/logo/R-logo-light.svg?fit=max\u0026auto=format\u0026n=PCNWUrW07f_UGjWs\u0026q=85\u0026s=04a073003bfe1531044b6915b6b16746","dark":"https://mintcdn.com/replicas/PCNWUrW07f_UGjWs/logo/R-logo-dark.svg?fit=max\u0026auto=format\u0026n=PCNWUrW07f_UGjWs\u0026q=85\u0026s=677b1ccffaec8a7580cc7366ea752ada"},"favicon":"https://mintcdn.com/replicas/PCNWUrW07f_UGjWs/favicon.svg?fit=max\u0026auto=format\u0026n=PCNWUrW07f_UGjWs\u0026q=85\u0026s=e7fb59cfcee65ba62d7c57cb76eecb8d","navbar":{"links":[{"href":"mailto:founders@replicas.dev","label":"Support"}],"primary":{"type":"button","label":"Open Replicas","href":"https://app.replicas.dev"}},"footer":{"socials":{"x":"https://x.com/usereplicas"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","vscode"],"display":"header"},"styling":{"latex":true},"background":{"color":{"light":"#f8fbfa","dark":"#0b1010"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"replicas","hasAudioNarration":false,"actualSubdomain":"replicas","customDomains":["docs.replicas.dev"],"gitSource":{"type":"github","owner":"replicas-group","repo":"replicas","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af0bfcf2cd4551135848833","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API Reference","count":144},{"language":"default","tag":"Documentation","count":50},{"language":"default","tag":"Replica","count":16},{"language":"default","tag":"Environments","count":13},{"language":"default","tag":"Workspaces","count":12},{"language":"default","tag":"Chats","count":11},{"language":"default","tag":"Admin","count":9},{"language":"default","tag":"Build and automate","count":9},{"language":"default","tag":"Agent credentials","count":9},{"language":"default","tag":"Automations","count":9}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","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":"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":false},"customCss":[{"filePath":"styles.css","content":":root{--radius: 0px;--radius-xs: 0px;--radius-sm: 0px;--radius-md: 0px;--radius-lg: 0px;--radius-xl: 0px}[class*=\"rounded\"]{border-radius:0!important}a img:is([src$=\"/logo/claude.svg\"],[src$=\"/logo/codex.svg\"],[src$=\"/logo/cursor.svg\"],[src$=\"/logo/doppler.svg\"],[src$=\"/logo/infisical.svg\"],[src$=\"/logo/opencode.svg\"],[src$=\"/logo/sentry.svg\"]){display:none}a div:has(>img:is([src$=\"/logo/claude.svg\"],[src$=\"/logo/codex.svg\"],[src$=\"/logo/cursor.svg\"],[src$=\"/logo/doppler.svg\"],[src$=\"/logo/infisical.svg\"],[src$=\"/logo/opencode.svg\"],[src$=\"/logo/sentry.svg\"]))::before{content:\"\";display:block;width:1rem;height:1rem;background-color:rgb(156 163 175);-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain;mask-repeat:no-repeat;mask-position:center;mask-size:contain}a div:has(>img[src$=\"/logo/claude.svg\"])::before{-webkit-mask-image:url(\"/logo/claude.svg\");mask-image:url(\"/logo/claude.svg\")}a div:has(>img[src$=\"/logo/codex.svg\"])::before{-webkit-mask-image:url(\"/logo/codex.svg\");mask-image:url(\"/logo/codex.svg\")}a div:has(>img[src$=\"/logo/cursor.svg\"])::before{-webkit-mask-image:url(\"/logo/cursor.svg\");mask-image:url(\"/logo/cursor.svg\")}a div:has(>img[src$=\"/logo/doppler.svg\"])::before{-webkit-mask-image:url(\"/logo/doppler.svg\");mask-image:url(\"/logo/doppler.svg\")}a div:has(>img[src$=\"/logo/infisical.svg\"])::before{-webkit-mask-image:url(\"/logo/infisical.svg\");mask-image:url(\"/logo/infisical.svg\")}a div:has(>img[src$=\"/logo/opencode.svg\"])::before{-webkit-mask-image:url(\"/logo/opencode.svg\");mask-image:url(\"/logo/opencode.svg\")}a div:has(>img[src$=\"/logo/sentry.svg\"])::before{-webkit-mask-image:url(\"/logo/sentry.svg\");mask-image:url(\"/logo/sentry.svg\")}.dark a div:has(>img:is([src$=\"/logo/claude.svg\"],[src$=\"/logo/codex.svg\"],[src$=\"/logo/cursor.svg\"],[src$=\"/logo/doppler.svg\"],[src$=\"/logo/infisical.svg\"],[src$=\"/logo/opencode.svg\"],[src$=\"/logo/sentry.svg\"]))::before{background-color:rgb(107 114 128)}a.text-primary div:has(>img:is([src$=\"/logo/claude.svg\"],[src$=\"/logo/codex.svg\"],[src$=\"/logo/cursor.svg\"],[src$=\"/logo/doppler.svg\"],[src$=\"/logo/infisical.svg\"],[src$=\"/logo/opencode.svg\"],[src$=\"/logo/sentry.svg\"]))::before{background-color:var(--color-primary, #3eeba3)}.dark a.text-primary div:has(>img:is([src$=\"/logo/claude.svg\"],[src$=\"/logo/codex.svg\"],[src$=\"/logo/cursor.svg\"],[src$=\"/logo/doppler.svg\"],[src$=\"/logo/infisical.svg\"],[src$=\"/logo/opencode.svg\"],[src$=\"/logo/sentry.svg\"]))::before{background-color:var(--color-primary-light, #3eeba3)}#sidebar-group>li>ul{max-height:22rem;overflow-y:auto;scrollbar-width:thin}#sidebar-group>li>ul::-webkit-scrollbar{width:6px}#sidebar-group>li>ul::-webkit-scrollbar-thumb{background-color:rgb(0 0 0 / 0.15);border-radius:3px}.dark #sidebar-group>li>ul::-webkit-scrollbar-thumb{background-color:rgb(255 255 255 / 0.15)}"}],"page":{"pagePath":"api-reference/agent-credentials/get-subscription-usage","slug":"/api-reference/agent-credentials/get-subscription-usage","pageMetadata":{"title":"Get subscription usage","description":"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription's 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without `scope`, returns your personal subscriptions followed by the organization's, each in the order workspaces use them.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents/subscription-usage","href":"/api-reference/agent-credentials/get-subscription-usage","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: [\"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription’s 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without \", _jsx(_components.code, {\n children: \"scope\"\n }), \", returns your personal subscriptions followed by the organization’s, each in the order workspaces use them.\"]\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":"Get subscription usage","description":"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription's 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without `scope`, returns your personal subscriptions followed by the organization's, each in the order workspaces use them.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents/subscription-usage","href":"/api-reference/agent-credentials/get-subscription-usage","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getSubscriptionUsage","summary":"Get subscription usage","tags":["Agent credentials"],"description":"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription's 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without `scope`, returns your personal subscriptions followed by the organization's, each in the order workspaces use them.","parameters":["be66c360-5445-4a98-b272-4b29afc77a02","98c35283-b8b7-44b5-9cca-1a5010d9c34b"],"responses":{"200":"119539ac-60ed-4462-93d4-88ea8c35247c","400":"2b74ae32-80ab-403e-a10a-bb10587d64fb","401":"31468c22-cef1-4ca7-8850-79c3731029bb","403":"ed9b8e15-09b4-42a1-a405-2a4ed53ec089"},"method":"get","type":"path","servers":["c9e5da3f-a2a2-4151-a4c8-4d3120b8ca5f"],"security":["3f0e4527-d69e-4dda-a47b-6c09ed3dec29"],"path":"/v1/agents/subscription-usage","baseUrlOptions":["https://api.replicas.dev"],"title":"Get subscription usage","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"be66c360-5445-4a98-b272-4b29afc77a02":{"name":"scope","in":"query","description":"Only `user` (needs a personal API key) or only `org` subscriptions.","schema":{"type":"string","enum":["user","org"],"description":"Only `user` (needs a personal API key) or only `org` subscriptions.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"98c35283-b8b7-44b5-9cca-1a5010d9c34b":{"name":"X-Replicas-Api-Version","in":"header","description":"API version. `2026-10-07` returns `snake_case` responses. See [versioning](/features/api#versioning).","required":false,"schema":{"type":"string","enum":["2026-10-07"],"isRequired":false,"description":"API version. `2026-10-07` returns `snake_case` responses. See [versioning](/features/api#versioning).","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"responses":{"119539ac-60ed-4462-93d4-88ea8c35247c":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["claude","codex"],"isRequired":true,"uniqueKey":"accounts.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"scope":{"type":"string","enum":["user","org"],"isRequired":true,"uniqueKey":"accounts.items.[INDEX].scope","typeLabel":"enum\u003cstring>"},"credential_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"accounts.items.[INDEX].credential_id","typeLabel":"string\u003cuuid>"},"exhausted_until":{"oneOf":[{"type":"string","format":"date-time","description":"Workspaces skip the account until then because it last hit a usage limit.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].exhausted_until.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Workspaces skip the account until then because it last hit a usage limit.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].exhausted_until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"accounts.items.[INDEX].exhausted_until","typeLabel":"string\u003cdate-time> | null"},"windows":{"oneOf":[{"type":"array","description":"Null when the provider did not report usage. Empty when the plan has no limits.","items":{"type":"object","properties":{"kind":{"type":"string","enum":["session","weekly"],"description":"`session` is the 5-hour limit.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"model":{"oneOf":[{"type":"string","description":"Set when the limit covers one model family, e.g. `Opus`.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].model.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set when the limit covers one model family, e.g. `Opus`.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].model","typeLabel":"string | null"},"used_percent":{"type":"number","isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].used_percent","typeLabel":"number"},"resets_at":{"oneOf":[{"type":"string","format":"date-time","description":"Null until usage starts the window.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].resets_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Null until usage starts the window.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].resets_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX].resets_at","typeLabel":"string\u003cdate-time> | null"}},"required":["kind","model","used_percent","resets_at"],"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Null when the provider did not report usage. Empty when the plan has no limits.","items":{"type":"object","properties":{"kind":{"type":"string","enum":["session","weekly"],"description":"`session` is the 5-hour limit."},"model":{"oneOf":[{"type":"string","description":"Set when the limit covers one model family, e.g. `Opus`."},{"type":"null","description":"Set when the limit covers one model family, e.g. `Opus`."}]},"used_percent":{"type":"number"},"resets_at":{"oneOf":[{"type":"string","format":"date-time","description":"Null until usage starts the window."},{"type":"null","format":"date-time","description":"Null until usage starts the window."}]}},"required":["kind","model","used_percent","resets_at"]},"isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"accounts.items.[INDEX].windows","typeLabel":"object[] | null"},"reconnect_required":{"type":"boolean","description":"The provider rejected the saved login, so workspaces cannot use the account until it is reconnected.","isRequired":true,"uniqueKey":"accounts.items.[INDEX].reconnect_required","typeLabel":"boolean"},"email":{"type":"string","uniqueKey":"accounts.items.[INDEX].email","typeLabel":"string"},"plan_type":{"type":"string","description":"Plan name as the provider reports it, e.g. `max` or `pro`","uniqueKey":"accounts.items.[INDEX].plan_type","typeLabel":"string"}},"required":["provider","scope","credential_id","exhausted_until","windows","reconnect_required"],"uniqueKey":"accounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"accounts","typeLabel":"object[]"}},"required":["accounts"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"accounts":[{"provider":"claude","scope":"user","credential_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","exhausted_until":"2023-11-07T05:31:56Z","windows":[{"kind":"session","model":"\u003cstring>","used_percent":123,"resets_at":"2023-11-07T05:31:56Z"}],"reconnect_required":true,"email":"\u003cstring>","plan_type":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"2b74ae32-80ab-403e-a10a-bb10587d64fb":{"description":"Bad request - Missing or invalid parameters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Additional error details","uniqueKey":"details.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional error details","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"string | null"},"code":{"type":"string","description":"Machine-readable error code when available","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","details":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"31468c22-cef1-4ca7-8850-79c3731029bb":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Additional error details","uniqueKey":"details.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional error details","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"string | null"},"code":{"type":"string","description":"Machine-readable error code when available","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","details":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"ed9b8e15-09b4-42a1-a405-2a4ed53ec089":{"description":"Forbidden - The authenticated account cannot access this resource","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Additional error details","uniqueKey":"details.oneOf.0","typeLabel":"string"},{"type":"null","description":"Additional error details","uniqueKey":"details.oneOf.1","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"string | null"},"code":{"type":"string","description":"Machine-readable error code when available","uniqueKey":"code","typeLabel":"string"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","details":"\u003cstring>","code":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3f0e4527-d69e-4dda-a47b-6c09ed3dec29":{"apiKey":{"type":"http","scheme":"bearer","description":"Organization or personal API key from **Settings → API Keys**.","scopes":[],"schemeName":"apiKey"}}},"servers":{"c9e5da3f-a2a2-4151-a4c8-4d3120b8ca5f":{"url":"https://api.replicas.dev","description":"Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Organization or personal API key from **Settings → API Keys**.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Organization or personal API key from **Settings → API Keys**.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"replicas","siteName":"Replicas Docs","title":"Get subscription usage - Replicas Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-08T05:32:40.752Z","originalFileLocation":"api-reference/agent-credentials/get-subscription-usage.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=\"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription\u0026#x27;s 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without scope, returns your personal subscriptions followed by the organization\u0026#x27;s, each in the order workspaces use them.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Replicas Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get subscription usage - Replicas Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription\u0026#x27;s 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without scope, returns your personal subscriptions followed by the organization\u0026#x27;s, each in the order workspaces use them.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Replicas Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://replicas.mintlify.site/_mintlify/api/og/v2?division=Agent+credentials\u0026amp;title=Get+subscription+usage\u0026amp;description=Reads+live+from+Anthropic+and+OpenAI+how+much+of+each+connected+Claude+and+ChatGPT+subscription%27s+5-hour+and+weekly+limits+is+used.+Muse+Code+and+OpenCode+Go+do\u0026amp;theme=68bdbda72179db93a84d0711\u0026amp;signature=ad06c5acf848bc0d0a62378a96c664b1e28ac44470c2977709acb9473b733ce6\">\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 subscription usage - Replicas Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription\u0026#x27;s 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without scope, returns your personal subscriptions followed by the organization\u0026#x27;s, each in the order workspaces use them.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://replicas.mintlify.site/_mintlify/api/og/v2?division=Agent+credentials\u0026amp;title=Get+subscription+usage\u0026amp;description=Reads+live+from+Anthropic+and+OpenAI+how+much+of+each+connected+Claude+and+ChatGPT+subscription%27s+5-hour+and+weekly+limits+is+used.+Muse+Code+and+OpenCode+Go+do\u0026amp;theme=68bdbda72179db93a84d0711\u0026amp;signature=ad06c5acf848bc0d0a62378a96c664b1e28ac44470c2977709acb9473b733ce6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/replicas/Xl41Pb3xogvv0S7U/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Replicas Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1c6a49\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agent-credentials/get-subscription-usage.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.replicas.dev/#organization\",\"name\":\"Replicas Docs\",\"url\":\"https://docs.replicas.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/replicas/PCNWUrW07f_UGjWs/logo/R-logo-light.svg?fit=max\u0026auto=format\u0026n=PCNWUrW07f_UGjWs\u0026q=85\u0026s=04a073003bfe1531044b6915b6b16746\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.replicas.dev#website\",\"name\":\"Replicas Docs\",\"url\":\"https://docs.replicas.dev\",\"publisher\":{\"@id\":\"https://docs.replicas.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage#webpage\",\"url\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage\",\"name\":\"Get subscription usage\",\"description\":\"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription's 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without scope, returns your personal subscriptions followed by the organization's, each in the order workspaces use them.\",\"dateModified\":\"2026-11-08T05:32:40.752Z\",\"isPartOf\":{\"@id\":\"https://docs.replicas.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent credentials\",\"item\":\"https://docs.replicas.dev/api-reference/agent-credentials/list-models\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get subscription usage\",\"item\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage#apireference\",\"headline\":\"Get subscription usage\",\"name\":\"Get subscription usage\",\"description\":\"Reads live from Anthropic and OpenAI how much of each connected Claude and ChatGPT subscription's 5-hour and weekly limits is used. Muse Code and OpenCode Go do not report usage. Without scope, returns your personal subscriptions followed by the organization's, each in the order workspaces use them.\",\"url\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage\",\"mainEntityOfPage\":{\"@id\":\"https://docs.replicas.dev/api-reference/agent-credentials/get-subscription-usage#webpage\"},\"dateModified\":\"2026-11-08T05:32:40.752Z\",\"publisher\":{\"@id\":\"https://docs.replicas.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.replicas.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Replicas Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Replicas Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Replica","pages":[{"title":"List organization conversations","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/organization/conversations","href":"/api-reference/replica/list-organization-conversations"},{"title":"List replicas","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica","href":"/api-reference/replica/list-replicas"},{"title":"Create replica","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica","href":"/api-reference/replica/create-replica"},{"title":"Get replica","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}","href":"/api-reference/replica/get-replica"},{"title":"Delete replica","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/replica/{id}","href":"/api-reference/replica/delete-replica"},{"title":"Rename replica","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/replica/{id}","href":"/api-reference/replica/rename-replica"},{"title":"Send message","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/messages","href":"/api-reference/replica/send-message"},{"title":"Read history","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/history","href":"/api-reference/replica/read-history"},{"title":"Get hook logs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/hooks","href":"/api-reference/replica/get-hook-logs"},{"title":"Stream events","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/events","href":"/api-reference/replica/stream-events"},{"title":"Wake replica","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/wake","href":"/api-reference/replica/wake-replica"},{"title":"Sleep replica","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/sleep","href":"/api-reference/replica/sleep-replica"},{"title":"Archive replica","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/archive","href":"/api-reference/replica/archive-replica"},{"title":"Make replica a Mothership","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/mothership","href":"/api-reference/replica/make-replica-a-mothership"},{"title":"List replica media","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/media","href":"/api-reference/replica/list-replica-media"},{"title":"Wait for replica","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/wait","href":"/api-reference/replica/wait-for-replica"}]},{"group":"Chats","pages":[{"title":"List chats","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/chats","href":"/api-reference/chats/list-chats"},{"title":"Create chat","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats","href":"/api-reference/chats/create-chat"},{"title":"Delete chat","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/replica/{id}/chats/{chat_id}","href":"/api-reference/chats/delete-chat"},{"title":"Rename chat","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/replica/{id}/chats/{chat_id}","href":"/api-reference/chats/rename-chat"},{"title":"List slash commands","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/chats/{chat_id}/slash-commands","href":"/api-reference/chats/list-slash-commands"},{"title":"Restore chat","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats/{chat_id}/restore","href":"/api-reference/chats/restore-chat"},{"title":"Interrupt chat","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats/{chat_id}/interrupt","href":"/api-reference/chats/interrupt-chat"},{"title":"Update chat goal","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/replica/{id}/chats/{chat_id}/goal","href":"/api-reference/chats/update-chat-goal"},{"title":"Clear chat goal","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats/{chat_id}/goal/clear","href":"/api-reference/chats/clear-chat-goal"},{"title":"Answer agent question","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats/{chat_id}/tool-input","href":"/api-reference/chats/answer-agent-question"},{"title":"Fork chat","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats/{chat_id}/fork","href":"/api-reference/chats/fork-chat"}]},{"group":"Message queue","pages":[{"title":"Get queue","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/chats/{chat_id}/queue","href":"/api-reference/message-queue/get-queue"},{"title":"Clear queue","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/replica/{id}/chats/{chat_id}/queue","href":"/api-reference/message-queue/clear-queue"},{"title":"Reorder queued message","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/replica/{id}/chats/{chat_id}/queue/reorder","href":"/api-reference/message-queue/reorder-queued-message"},{"title":"Remove queued message","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/replica/{id}/chats/{chat_id}/queue/{message_id}","href":"/api-reference/message-queue/remove-queued-message"},{"title":"Edit queued message","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/replica/{id}/chats/{chat_id}/queue/{message_id}","href":"/api-reference/message-queue/edit-queued-message"},{"title":"Steer with queued message","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats/{chat_id}/queue/{message_id}/steer","href":"/api-reference/message-queue/steer-with-queued-message"},{"title":"Send queued message now","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/chats/{chat_id}/queue/{message_id}/send-now","href":"/api-reference/message-queue/send-queued-message-now"}]},{"group":"Commands and terminals","pages":[{"title":"Run command","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/exec","href":"/api-reference/commands-and-terminals/run-command"},{"title":"List terminal sessions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/terminal/sessions","href":"/api-reference/commands-and-terminals/list-terminal-sessions"},{"title":"Create terminal session","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/terminal/sessions","href":"/api-reference/commands-and-terminals/create-terminal-session"},{"title":"Send terminal input","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/terminal/sessions/{session_id}/input","href":"/api-reference/commands-and-terminals/send-terminal-input"},{"title":"Resize terminal","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/terminal/sessions/{session_id}/resize","href":"/api-reference/commands-and-terminals/resize-terminal"},{"title":"Stream terminal output","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/terminal/sessions/{session_id}/stream","href":"/api-reference/commands-and-terminals/stream-terminal-output"},{"title":"Close terminal session","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/replica/{id}/terminal/sessions/{session_id}","href":"/api-reference/commands-and-terminals/close-terminal-session"},{"title":"Get SSH access","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/ssh-token","href":"/api-reference/commands-and-terminals/get-ssh-access"}]},{"group":"Pull requests","pages":[{"title":"Get pull requests","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/pull-requests/details","href":"/api-reference/pull-requests/get-pull-requests"},{"title":"Merge pull request","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/pull-requests/merge","href":"/api-reference/pull-requests/merge-pull-request"},{"title":"Update pull request","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/pull-requests/update","href":"/api-reference/pull-requests/update-pull-request"}]},{"group":"Previews","pages":[{"title":"List previews","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/previews","href":"/api-reference/previews/list-previews"},{"title":"Create preview","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/previews","href":"/api-reference/previews/create-preview"},{"title":"Delete preview","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/replica/{id}/previews/{port}","href":"/api-reference/previews/delete-preview"}]},{"group":"Canvas","pages":[{"title":"List Canvas files","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/canvas","href":"/api-reference/canvas/list-canvas-files"},{"title":"Download Canvas file","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/canvas-files/{filename}","href":"/api-reference/canvas/download-canvas-file"},{"title":"Read Canvas file","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/canvas/{filename}","href":"/api-reference/canvas/read-canvas-file"},{"title":"Write Canvas file","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/replica/{id}/canvas/{filename}","href":"/api-reference/canvas/write-canvas-file"}]},{"group":"Sharing","pages":[{"title":"List shares","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/{id}/shares","href":"/api-reference/sharing/list-shares"},{"title":"Share replica","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/replica/{id}/share","href":"/api-reference/sharing/share-replica"},{"title":"Unshare replica","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/replica/{id}/share/{user_id}","href":"/api-reference/sharing/unshare-replica"}]},{"group":"Environments","pages":[{"title":"List environments","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments","href":"/api-reference/environments/list-environments"},{"title":"Create environment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments","href":"/api-reference/environments/create-environment"},{"title":"Get environment","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{id}","href":"/api-reference/environments/get-environment"},{"title":"Delete environment","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{id}","href":"/api-reference/environments/delete-environment"},{"title":"Update environment","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/environments/{id}","href":"/api-reference/environments/update-environment"},{"title":"Fork environment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{id}/fork","href":"/api-reference/environments/fork-environment"},{"title":"Detach fork","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{id}/detach","href":"/api-reference/environments/detach-fork"},{"title":"Restore an earlier setup","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/restore","href":"/api-reference/environments/restore-an-earlier-setup"},{"title":"List hook runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/hook-runs","href":"/api-reference/environments/list-hook-runs"},{"title":"Get hook run log","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/hook-runs/{run_id}","href":"/api-reference/environments/get-hook-run-log"},{"title":"Get effective environment","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/effective","href":"/api-reference/environments/get-effective-environment"},{"title":"Exclude inherited item","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/exclusions","href":"/api-reference/environments/exclude-inherited-item"},{"title":"Reset to inherited","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/reset-inherited","href":"/api-reference/environments/reset-to-inherited"}]},{"group":"Environment variables","pages":[{"title":"List environment variables","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/variables","href":"/api-reference/environment-variables/list-environment-variables"},{"title":"Create environment variable","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/variables","href":"/api-reference/environment-variables/create-environment-variable"},{"title":"Create environment variables","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/variables/bulk","href":"/api-reference/environment-variables/create-environment-variables"},{"title":"Delete environment variable","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{environment_id}/variables/{id}","href":"/api-reference/environment-variables/delete-environment-variable"},{"title":"Update environment variable","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/environments/{environment_id}/variables/{id}","href":"/api-reference/environment-variables/update-environment-variable"}]},{"group":"Environment files","pages":[{"title":"List environment files","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/files","href":"/api-reference/environment-files/list-environment-files"},{"title":"Create environment file","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/files","href":"/api-reference/environment-files/create-environment-file"},{"title":"Delete environment file","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{environment_id}/files/{id}","href":"/api-reference/environment-files/delete-environment-file"},{"title":"Update environment file","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/environments/{environment_id}/files/{id}","href":"/api-reference/environment-files/update-environment-file"}]},{"group":"Environment skills","pages":[{"title":"List environment skills","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/skills","href":"/api-reference/environment-skills/list-environment-skills"},{"title":"Enable environment skill","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/skills","href":"/api-reference/environment-skills/enable-environment-skill"},{"title":"Disable environment skill","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{environment_id}/skills/{id}","href":"/api-reference/environment-skills/disable-environment-skill"},{"title":"List skill registries","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/skills-registries","href":"/api-reference/environment-skills/list-skill-registries"},{"title":"Add skill registry","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/skills-registries","href":"/api-reference/environment-skills/add-skill-registry"},{"title":"Remove skill registry","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{environment_id}/skills-registries/{skills_registry_id}","href":"/api-reference/environment-skills/remove-skill-registry"},{"title":"List repository skills","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/repo-skills","href":"/api-reference/environment-skills/list-repository-skills"},{"title":"Search skill catalog","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environment-skills/search","href":"/api-reference/environment-skills/search-skill-catalog"}]},{"group":"Environment MCPs","pages":[{"title":"List environment MCPs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/mcps","href":"/api-reference/environment-mcps/list-environment-mcps"},{"title":"Create environment MCP","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/mcps","href":"/api-reference/environment-mcps/create-environment-mcp"},{"title":"Delete environment MCP","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{environment_id}/mcps/{id}","href":"/api-reference/environment-mcps/delete-environment-mcp"},{"title":"Update environment MCP","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/environments/{environment_id}/mcps/{id}","href":"/api-reference/environment-mcps/update-environment-mcp"}]},{"group":"Hooks","pages":[{"title":"Get warm hook","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/warm-hooks","href":"/api-reference/hooks/get-warm-hook"},{"title":"Save warm hook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/warm-hooks/save","href":"/api-reference/hooks/save-warm-hook"},{"title":"Save and test warm hook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/warm-hooks/save-test","href":"/api-reference/hooks/save-and-test-warm-hook"},{"title":"Test warm hook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/warm-hooks/test","href":"/api-reference/hooks/test-warm-hook"},{"title":"Get start hook","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/start-hooks","href":"/api-reference/hooks/get-start-hook"},{"title":"Save start hook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/start-hooks/save","href":"/api-reference/hooks/save-start-hook"},{"title":"Test start hook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/start-hooks/test","href":"/api-reference/hooks/test-start-hook"},{"title":"Test start hook (streaming)","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/start-hooks/test/stream","href":"/api-reference/hooks/test-start-hook-streaming"}]},{"group":"Warm pools","pages":[{"title":"Enable or disable warm pool","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/environments/{environment_id}/warm-pools","href":"/api-reference/warm-pools/enable-or-disable-warm-pool"},{"title":"Refresh warm pool","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/warm-pools/refresh","href":"/api-reference/warm-pools/refresh-warm-pool"},{"title":"Start queued warm pool build","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/warm-pools/build-now","href":"/api-reference/warm-pools/start-queued-warm-pool-build"},{"title":"Restore warm pool snapshot","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/warm-pool-snapshots/{snapshot_id}/restore","href":"/api-reference/warm-pools/restore-warm-pool-snapshot"},{"title":"List warm pool workspaces","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/warm-pools/{config_id}/workspaces","href":"/api-reference/warm-pools/list-warm-pool-workspaces"},{"title":"Stream warm pool workspace updates","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/warm-pool-workspaces/{workspace_id}/stream","href":"/api-reference/warm-pools/stream-warm-pool-workspace-updates"}]},{"group":"Automations","pages":[{"title":"List automations","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations","href":"/api-reference/automations/list-automations"},{"title":"Create automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations","href":"/api-reference/automations/create-automation"},{"title":"List all executions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations/executions","href":"/api-reference/automations/list-all-executions"},{"title":"Get automation","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations/{id}","href":"/api-reference/automations/get-automation"},{"title":"Delete automation","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/automations/{id}","href":"/api-reference/automations/delete-automation"},{"title":"Update automation","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/automations/{id}","href":"/api-reference/automations/update-automation"},{"title":"Trigger automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations/{id}/trigger","href":"/api-reference/automations/trigger-automation"},{"title":"List automation executions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations/{id}/executions","href":"/api-reference/automations/list-automation-executions"},{"title":"Retry automation execution","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations/{id}/executions/{execution_id}/retry","href":"/api-reference/automations/retry-automation-execution"}]},{"group":"Repositories","pages":[{"title":"List repositories","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/replica/repositories","href":"/api-reference/repositories/list-repositories"},{"title":"List repository branches","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/repositories/{id}/branches","href":"/api-reference/repositories/list-repository-branches"},{"title":"List connectable GitHub repositories","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/github/repositories","href":"/api-reference/repositories/list-connectable-github-repositories"},{"title":"Add repository","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/repositories","href":"/api-reference/repositories/add-repository"},{"title":"Remove repository","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/repositories/{id}","href":"/api-reference/repositories/remove-repository"},{"title":"Update repository","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/repositories/{id}","href":"/api-reference/repositories/update-repository"}]},{"group":"Learnings","pages":[{"title":"List learnings","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/learned-skills","href":"/api-reference/learnings/list-learnings"},{"title":"Create learning","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/learned-skills","href":"/api-reference/learnings/create-learning"},{"title":"Update learning","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/learned-skills/{id}","href":"/api-reference/learnings/update-learning"},{"title":"Delete learning","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/learned-skills/{id}","href":"/api-reference/learnings/delete-learning"}]},{"group":"Agent credentials","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents/{agent}/models","href":"/api-reference/agent-credentials/list-models"},{"title":"Get organization credential","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/{provider}/credentials","href":"/api-reference/agent-credentials/get-organization-credential"},{"title":"Set organization credential","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/{provider}/credentials","href":"/api-reference/agent-credentials/set-organization-credential"},{"title":"Delete organization credential","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/{provider}/credentials","href":"/api-reference/agent-credentials/delete-organization-credential"},{"title":"Get personal credential","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/{provider}/user/credentials","href":"/api-reference/agent-credentials/get-personal-credential"},{"title":"Set personal credential","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/{provider}/user/credentials","href":"/api-reference/agent-credentials/set-personal-credential"},{"title":"Delete personal credential","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/{provider}/user/credentials","href":"/api-reference/agent-credentials/delete-personal-credential"},{"title":"List credentials for an agent","description":"Lists the credential methods connected for a coding agent and which one workspaces use.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents/{agent}/credentials","href":"/api-reference/agent-credentials/list-credentials-for-an-agent"},{"title":"Get subscription usage","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents/subscription-usage","href":"/api-reference/agent-credentials/get-subscription-usage"}]},{"group":"Plugins","pages":[{"title":"List plugins","description":"Lists every [plugin](/features/plugins) and which are connected for the environment.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/plugins/connections","href":"/api-reference/plugins/list-plugins"},{"title":"Connect plugin","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/plugins/{plugin_id}/connect","href":"/api-reference/plugins/connect-plugin"},{"title":"Start plugin OAuth","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/plugins/{plugin_id}/oauth/start","href":"/api-reference/plugins/start-plugin-oauth"},{"title":"Disconnect plugin","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{environment_id}/plugins/{plugin_id}","href":"/api-reference/plugins/disconnect-plugin"}]},{"group":"Organization","pages":[{"title":"Get current identity","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/whoami","href":"/api-reference/organization/get-current-identity"},{"title":"List members","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/organization/members","href":"/api-reference/organization/list-members"}]},{"group":"Media","pages":[{"title":"Get a media download URL","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/media/{id}/url","href":"/api-reference/media/get-a-media-download-url"},{"title":"Get a media preview URL","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/media/{id}/preview-url","href":"/api-reference/media/get-a-media-preview-url"},{"title":"Get media metadata","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/media/{id}/metadata","href":"/api-reference/media/get-media-metadata"}]},{"group":"Slack","pages":[{"title":"Attach Slack thread","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/slack/threads/attach","href":"/api-reference/slack/attach-slack-thread"}]},{"group":"Workspace identity","pages":[{"title":"Get workspace identity discovery document","deprecated":null,"version":null,"openapi":"/openapi.json get /.well-known/openid-configuration","href":"/api-reference/workspace-identity/get-workspace-identity-discovery-document"},{"title":"Get workspace identity signing keys","deprecated":null,"version":null,"openapi":"/openapi.json get /.well-known/jwks.json","href":"/api-reference/workspace-identity/get-workspace-identity-signing-keys"},{"title":"Get workspace identity configuration","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}/workload-identity","href":"/api-reference/workspace-identity/get-workspace-identity-configuration"}]}]}]},"basePath":"","title":"Get subscription usage - Replicas Docs","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}