An ISO-8601 timestamp. Returns everything from that moment on.
project_id
Restrict to a single project.
# Last 7 dayscurl -H "Authorization: Bearer $KEY" "https://codecobra.ai/api/usage?days=7"# Everything since a fixed pointcurl -H "Authorization: Bearer $KEY" \ "https://codecobra.ai/api/usage?since=2026-05-01T00:00:00Z"
If you send both since and days, since wins and days is ignored. The response tells you which was used: since comes back as the effective lower bound, and days comes back as null whenever since was applied. Check that field rather than assuming your days took effect.
For a nightly job, keep the since value the last run returned and pass it back next time. That gives you exactly the rows you haven’t seen, with no overlap to de-duplicate and no gap if a run is late.
Every billed event attributable to the workspace, one row per request, so you can attribute spend by member or project in your own reporting. Owners and admins only.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CodeCobra","colors":{"primary":"#16A34A","light":"#4ADE80","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/rooteam/ZjWZy-Fv5eN6NLjR/images/file.svg?fit=max\u0026auto=format\u0026n=ZjWZy-Fv5eN6NLjR\u0026q=85\u0026s=9e8c21b1d5a2894c24e8dac1fa5f737c","dark":"https://mintcdn.com/rooteam/jQjrykmEoo3G0v-A/images/logo-light.svg?fit=max\u0026auto=format\u0026n=jQjrykmEoo3G0v-A\u0026q=85\u0026s=6e301bf2bb33ff26daefed0c75b4a45b","href":"https://codecobra.ai/"},"favicon":"https://mintcdn.com/rooteam/jQjrykmEoo3G0v-A/favicon.svg?fit=max\u0026auto=format\u0026n=jQjrykmEoo3G0v-A\u0026q=85\u0026s=12e841861a8dfc86573053c01e230043","navbar":{"links":[{"href":"https://codecobra.ai/blog","label":"Blog"},{"href":"https://codecobra.ai/support","label":"Support"},{"href":"https://codecobra.ai/login","label":"Sign In"}],"primary":{"type":"button","label":"Get Started Free","href":"https://codecobra.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/codecobra","website":"https://codecobra.ai"}},"search":{"prompt":"Ask me how CodeCobra works"},"seo":{"organization":{"id":"https://codecobra.ai/#organization","name":"CodeCobra","legalName":"Rooteam.com Inc","url":"https://codecobra.ai","sameAs":["https://www.linkedin.com/company/codecobra/"]},"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rooteam","hasAudioNarration":false,"actualSubdomain":"rooteam","customDomains":["docs.codecobra.ai"],"gitSource":{"type":"github","owner":"rooteam","repo":"seacobra","deployBranch":"master","contentDirectory":"mint","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ac4832c7c2921fdba0c92ed","collectionId":"d2ea8d4a-35f3-44ab-990b-76b15830b35f","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ac4832c7c2921fdba0c92ed"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ac5469383fcdf297018401d","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API reference","count":149},{"language":"default","tag":"Endpoints","count":146},{"language":"default","tag":"Guides","count":32},{"language":"default","tag":"Projects","count":21},{"language":"default","tag":"Tasks","count":21},{"language":"default","tag":"Odoo Connections","count":20},{"language":"default","tag":"Billing","count":19},{"language":"default","tag":"Members \u0026 Invitations","count":16},{"language":"default","tag":"Plans \u0026 Artifacts","count":13},{"language":"default","tag":"Workspace Billing","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","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":"billing-updated-9-15","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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api/usage-export","slug":"/api/usage-export","pageMetadata":{"title":"Export usage","description":"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.","keywords":["usage","export","reporting","chargeback","cost","api","tokens"],"href":"/api/usage-export"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`If you split costs across teams or clients, you’ll want the usage figures in your own systems rather than reading them off a page.`}),`\n`,_jsx(Heading,{level:`2`,id:`your-usage`,children:`Your usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer cc_your_key_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://codecobra.ai/api/usage\"`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Returns usage across every project you can see, grouped by day, for the last 30 days.`}),`\n`,_jsx(Heading,{level:`3`,id:`narrowing-it`,children:`Narrowing it`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`days`})}),_jsx(_components.td,{children:`Rolling window, in days. Defaults to 30.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`since`})}),_jsx(_components.td,{children:`An ISO-8601 timestamp. Returns everything from that moment on.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`project_id`})}),_jsx(_components.td,{children:`Restrict to a single project.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Last 7 days`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://codecobra.ai/api/usage?days=7\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Everything since a fixed point`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://codecobra.ai/api/usage?since=2026-05-01T00:00:00Z\"`})}),`\n`]})})}),`\n`,_jsxs(Warning,{children:[`If you send both `,_jsx(_components.code,{children:`since`}),` and `,_jsx(_components.code,{children:`days`}),`, `,_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`since`}),` wins`]}),` and `,_jsx(_components.code,{children:`days`}),` is ignored. The response tells you which was used: `,_jsx(_components.code,{children:`since`}),` comes back as the effective lower bound, and `,_jsx(_components.code,{children:`days`}),` comes back as `,_jsx(_components.code,{children:`null`}),` whenever `,_jsx(_components.code,{children:`since`}),` was applied. Check that field rather than assuming your `,_jsx(_components.code,{children:`days`}),` took effect.`]}),`\n`,_jsx(Heading,{level:`2`,id:`incremental-exports`,children:`Incremental exports`}),`\n`,_jsxs(_components.p,{children:[`For a nightly job, keep the `,_jsx(_components.code,{children:`since`}),` value the last run returned and pass it back next time. That gives you exactly the rows you haven’t seen, with no overlap to de-duplicate and no gap if a run is late.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://codecobra.ai/api/public/usage?since=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$LAST_RUN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`one-task’s-usage`,children:`One task’s usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://codecobra.ai/api/public/usage/task/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TASK_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Grouped by capability class — useful when you want to know what a specific piece of work cost.`}),`\n`,_jsx(Heading,{level:`2`,id:`workspace-usage`,children:`Workspace usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://codecobra.ai/api/organizations/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$ORG_ID`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/usage\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Every billed event attributable to the workspace, one row per request, so you can attribute spend by member or project in your own reporting. Owners and admins only.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Export usage","description":"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.","keywords":["usage","export","reporting","chargeback","cost","api","tokens"],"href":"/api/usage-export"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Your usage","slug":"your-usage","depth":2,"children":[{"title":"Narrowing it","slug":"narrowing-it","depth":3,"children":[]}]},{"title":"Incremental exports","slug":"incremental-exports","depth":2,"children":[]},{"title":"One task’s usage","slug":"one-task’s-usage","depth":2,"children":[]},{"title":"Workspace usage","slug":"workspace-usage","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rooteam","siteName":"CodeCobra","title":"Export usage - CodeCobra","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-23T02:19:45.014Z","originalFileLocation":"api/usage-export.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=\"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CodeCobra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rooteam/kOvF8eXIILyBQ68C/_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/rooteam/kOvF8eXIILyBQ68C/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rooteam/kOvF8eXIILyBQ68C/_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/rooteam/kOvF8eXIILyBQ68C/_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/rooteam/kOvF8eXIILyBQ68C/_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/rooteam/kOvF8eXIILyBQ68C/_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/rooteam/kOvF8eXIILyBQ68C/_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/rooteam/kOvF8eXIILyBQ68C/_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/rooteam/kOvF8eXIILyBQ68C/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Export usage - CodeCobra\">\u003cmeta data-mint-head property=\"og:description\" content=\"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CodeCobra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.codecobra.ai/api/usage-export\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rooteam.mintlify.app/_mintlify/api/og/v2?division=Getting+started\u0026amp;title=Export+usage\u0026amp;description=Pull+your+CodeCobra+usage+into+your+own+reporting%2C+for+chargeback+or+cost+tracking.\u0026amp;theme=2f8a691ae13d9be2f40976aa\u0026amp;signature=cdc82c6b6d690eb8714fff0c29194b88dd72fc413cc07504585e9cdb0e700118\">\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=\"Export usage - CodeCobra\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rooteam.mintlify.app/_mintlify/api/og/v2?division=Getting+started\u0026amp;title=Export+usage\u0026amp;description=Pull+your+CodeCobra+usage+into+your+own+reporting%2C+for+chargeback+or+cost+tracking.\u0026amp;theme=2f8a691ae13d9be2f40976aa\u0026amp;signature=cdc82c6b6d690eb8714fff0c29194b88dd72fc413cc07504585e9cdb0e700118\">\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/rooteam/kOvF8eXIILyBQ68C/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CodeCobra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.codecobra.ai/api/usage-export\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/usage-export.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://codecobra.ai/#organization\",\"name\":\"CodeCobra\",\"legalName\":\"Rooteam.com Inc\",\"url\":\"https://codecobra.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rooteam/ZjWZy-Fv5eN6NLjR/images/file.svg?fit=max\u0026auto=format\u0026n=ZjWZy-Fv5eN6NLjR\u0026q=85\u0026s=9e8c21b1d5a2894c24e8dac1fa5f737c\"},\"sameAs\":[\"https://www.linkedin.com/company/codecobra/\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.codecobra.ai#website\",\"name\":\"CodeCobra\",\"url\":\"https://docs.codecobra.ai\",\"publisher\":{\"@id\":\"https://codecobra.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.codecobra.ai/api/usage-export#webpage\",\"url\":\"https://docs.codecobra.ai/api/usage-export\",\"name\":\"Export usage\",\"description\":\"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.\",\"dateModified\":\"2026-09-23T02:19:45.014Z\",\"isPartOf\":{\"@id\":\"https://docs.codecobra.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.codecobra.ai/api/usage-export#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.codecobra.ai/api/usage-export#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting started\",\"item\":\"https://docs.codecobra.ai/api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Export usage\",\"item\":\"https://docs.codecobra.ai/api/usage-export\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.codecobra.ai/api/usage-export#article\",\"headline\":\"Export usage\",\"name\":\"Export usage\",\"description\":\"Pull your CodeCobra usage into your own reporting, for chargeback or cost tracking.\",\"url\":\"https://docs.codecobra.ai/api/usage-export\",\"mainEntityOfPage\":{\"@id\":\"https://docs.codecobra.ai/api/usage-export#webpage\"},\"dateModified\":\"2026-09-23T02:19:45.014Z\",\"keywords\":\"usage, export, reporting, chargeback, cost, api, tokens\",\"publisher\":{\"@id\":\"https://codecobra.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.codecobra.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CodeCobra\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"CodeCobra","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Getting started","pages":[{"title":"API overview","href":"/api/overview"},{"title":"Authentication","description":"Create a CodeCobra API key and use it to authenticate your requests.","href":"/api/authentication"},{"title":"Export usage","href":"/api/usage-export"}]},{"group":"Endpoints","pages":[{"group":"Billing","pages":[{"title":"Add funds to your balance","description":"Charge a saved card and credit the amount to your balance. Usage draws down from that balance.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/billing/add-funds","href":"/api-reference/billing/add-funds-to-your-balance"},{"title":"Get auto-reload settings","deprecated":null,"version":null,"openapi":"/openapi.json get /api/billing/auto-reload","href":"/api-reference/billing/get-auto-reload-settings"},{"title":"Update auto-reload settings","deprecated":null,"version":null,"openapi":"/openapi.json put /api/billing/auto-reload","href":"/api-reference/billing/update-auto-reload-settings"},{"title":"Confirm a saved payment method","deprecated":null,"version":null,"openapi":"/openapi.json post /api/billing/confirm-payment-method","href":"/api-reference/billing/confirm-a-saved-payment-method"},{"title":"Set your default card","deprecated":null,"version":null,"openapi":"/openapi.json put /api/billing/default-payment-method","href":"/api-reference/billing/set-your-default-card"},{"title":"Get your billing history","deprecated":null,"version":null,"openapi":"/openapi.json get /api/billing/history","href":"/api-reference/billing/get-your-billing-history"},{"title":"Invoice your usage now","deprecated":null,"version":null,"openapi":"/openapi.json post /api/billing/invoice-now","href":"/api-reference/billing/invoice-your-usage-now"},{"title":"List your invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /api/billing/invoices","href":"/api-reference/billing/list-your-invoices"},{"title":"Pay an open invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /api/billing/invoices/{invoice_ref}/pay","href":"/api-reference/billing/pay-an-open-invoice"},{"title":"Download an invoice PDF","deprecated":null,"version":null,"openapi":"/openapi.json get /api/billing/invoices/{stripe_invoice_id}/pdf","href":"/api-reference/billing/download-an-invoice-pdf"},{"title":"Get an invoice preview link","deprecated":null,"version":null,"openapi":"/openapi.json get /api/billing/invoices/{stripe_invoice_id}/preview","href":"/api-reference/billing/get-an-invoice-preview-link"},{"title":"Remove a payment method","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/billing/payment-method/{payment_method_id}","href":"/api-reference/billing/remove-a-payment-method"},{"title":"Open the billing portal","deprecated":null,"version":null,"openapi":"/openapi.json post /api/billing/portal-session","href":"/api-reference/billing/open-the-billing-portal"},{"title":"Start saving a payment method","deprecated":null,"version":null,"openapi":"/openapi.json post /api/billing/setup-intent","href":"/api-reference/billing/start-saving-a-payment-method"},{"title":"Get your billing status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/billing/status","href":"/api-reference/billing/get-your-billing-status"},{"title":"List recent balance transactions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/billing/transactions","href":"/api-reference/billing/list-recent-balance-transactions"}]},{"group":"Odoo Connections","pages":[{"title":"List my connections","deprecated":null,"version":null,"openapi":"/openapi.json get /api/connections","href":"/api-reference/odoo-connections/list-my-connections"},{"title":"Create a connection","deprecated":null,"version":null,"openapi":"/openapi.json post /api/connections","href":"/api-reference/odoo-connections/create-a-connection"},{"title":"Update a connection","deprecated":null,"version":null,"openapi":"/openapi.json put /api/connections/{connection_id}","href":"/api-reference/odoo-connections/update-a-connection"},{"title":"Delete a connection","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/connections/{connection_id}","href":"/api-reference/odoo-connections/delete-a-connection"},{"title":"Test a connection","deprecated":null,"version":null,"openapi":"/openapi.json post /api/connections/{connection_id}/test","href":"/api-reference/odoo-connections/test-a-connection"},{"title":"List an Odoo server's databases","deprecated":null,"version":null,"openapi":"/openapi.json post /api/odoo/databases","href":"/api-reference/odoo-connections/list-an-odoo-servers-databases"},{"title":"Check an Odoo address","deprecated":null,"version":null,"openapi":"/openapi.json post /api/odoo/probe","href":"/api-reference/odoo-connections/check-an-odoo-address"},{"title":"Test Odoo credentials","deprecated":null,"version":null,"openapi":"/openapi.json post /api/odoo/test","href":"/api-reference/odoo-connections/test-odoo-credentials"},{"title":"List a project's Odoo connections","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}/odoo/credentials","href":"/api-reference/odoo-connections/list-a-projects-odoo-connections"},{"title":"Add an Odoo connection","deprecated":null,"version":null,"openapi":"/openapi.json post /api/projects/{project_id}/odoo/credentials","href":"/api-reference/odoo-connections/add-an-odoo-connection"},{"title":"Update an Odoo connection","deprecated":null,"version":null,"openapi":"/openapi.json put /api/projects/{project_id}/odoo/credentials/{cred_id}","href":"/api-reference/odoo-connections/update-an-odoo-connection"},{"title":"Delete an Odoo connection","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/projects/{project_id}/odoo/credentials/{cred_id}","href":"/api-reference/odoo-connections/delete-an-odoo-connection"},{"title":"Test a stored connection","deprecated":null,"version":null,"openapi":"/openapi.json post /api/projects/{project_id}/odoo/credentials/{cred_id}/test","href":"/api-reference/odoo-connections/test-a-stored-connection"},{"title":"Get a sign-in link for the task's Odoo","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/odoo-login-url","href":"/api-reference/odoo-connections/get-a-sign-in-link-for-the-tasks-odoo"},{"title":"Check the task's Odoo","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/odoo-status","href":"/api-reference/odoo-connections/check-the-tasks-odoo"},{"title":"List users in the task's Odoo","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/odoo-users","href":"/api-reference/odoo-connections/list-users-in-the-tasks-odoo"},{"title":"Get a task's Odoo access","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/odoo/active","href":"/api-reference/odoo-connections/get-a-tasks-odoo-access"},{"title":"Set a task's Odoo access","deprecated":null,"version":null,"openapi":"/openapi.json put /api/tasks/{task_id}/odoo/active","href":"/api-reference/odoo-connections/set-a-tasks-odoo-access"},{"title":"Start the task's Odoo","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/start-odoo","href":"/api-reference/odoo-connections/start-the-tasks-odoo"},{"title":"Stop the task's Odoo","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/stop-odoo","href":"/api-reference/odoo-connections/stop-the-tasks-odoo"}]},{"group":"Account","pages":[{"title":"List available model options","deprecated":null,"version":null,"openapi":"/openapi.json get /api/experimental/models","href":"/api-reference/account/list-available-model-options"},{"title":"Send feedback","deprecated":null,"version":null,"openapi":"/openapi.json post /api/feedback","href":"/api-reference/account/send-feedback"},{"title":"Get feedback attachment limits","deprecated":null,"version":null,"openapi":"/openapi.json get /api/feedback/limits","href":"/api-reference/account/get-feedback-attachment-limits"},{"title":"Open a support ticket","deprecated":null,"version":null,"openapi":"/openapi.json post /api/support-ticket","href":"/api-reference/account/open-a-support-ticket"},{"title":"Get your profile","deprecated":null,"version":null,"openapi":"/openapi.json get /api/users/me","href":"/api-reference/account/get-your-profile"},{"title":"Update your profile","deprecated":null,"version":null,"openapi":"/openapi.json put /api/users/me","href":"/api-reference/account/update-your-profile"}]},{"group":"GitHub","pages":[{"title":"Get GitHub app details","deprecated":null,"version":null,"openapi":"/openapi.json get /api/github/app-info","href":"/api-reference/github/get-github-app-details"},{"title":"List your GitHub installations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/github/installations","href":"/api-reference/github/list-your-github-installations"},{"title":"List your repositories","deprecated":null,"version":null,"openapi":"/openapi.json get /api/github/repositories","href":"/api-reference/github/list-your-repositories"},{"title":"List a repository's branches","deprecated":null,"version":null,"openapi":"/openapi.json get /api/github/repositories/{owner}/{repo}/branches","href":"/api-reference/github/list-a-repositorys-branches"},{"title":"Check your GitHub connection","deprecated":null,"version":null,"openapi":"/openapi.json get /api/github/status","href":"/api-reference/github/check-your-github-connection"},{"title":"List a workspace's repositories","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/github/repositories","href":"/api-reference/github/list-a-workspaces-repositories"},{"title":"List branches via a workspace","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/github/repositories/{owner}/{repo}/branches","href":"/api-reference/github/list-branches-via-a-workspace"},{"title":"Check a workspace's GitHub connection","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/github/status","href":"/api-reference/github/check-a-workspaces-github-connection"}]},{"group":"Members \u0026 Invitations","pages":[{"title":"Accept an invitation you were shown","deprecated":null,"version":null,"openapi":"/openapi.json post /api/invitations/id/{invitation_id}/accept","href":"/api-reference/members-\u0026-invitations/accept-an-invitation-you-were-shown"},{"title":"Decline an invitation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/invitations/id/{invitation_id}/decline","href":"/api-reference/members-\u0026-invitations/decline-an-invitation"},{"title":"List invitations addressed to you","deprecated":null,"version":null,"openapi":"/openapi.json get /api/invitations/me/pending","href":"/api-reference/members-\u0026-invitations/list-invitations-addressed-to-you"},{"title":"Get invitation details","deprecated":null,"version":null,"openapi":"/openapi.json get /api/invitations/{token}","href":"/api-reference/members-\u0026-invitations/get-invitation-details"},{"title":"Accept an invitation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/invitations/{token}/accept","href":"/api-reference/members-\u0026-invitations/accept-an-invitation"},{"title":"List pending invitations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/invitations","href":"/api-reference/members-\u0026-invitations/list-pending-invitations"},{"title":"Invite someone","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations/{org_id}/invitations","href":"/api-reference/members-\u0026-invitations/invite-someone"},{"title":"Revoke an invitation","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/organizations/{org_id}/invitations/{invitation_id}","href":"/api-reference/members-\u0026-invitations/revoke-an-invitation"},{"title":"List members","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/members","href":"/api-reference/members-\u0026-invitations/list-members"},{"title":"Change a member's role","deprecated":null,"version":null,"openapi":"/openapi.json put /api/organizations/{org_id}/members/{user_id}","href":"/api-reference/members-\u0026-invitations/change-a-members-role"},{"title":"Remove a member","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/organizations/{org_id}/members/{user_id}","href":"/api-reference/members-\u0026-invitations/remove-a-member"},{"title":"List roles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/roles","href":"/api-reference/members-\u0026-invitations/list-roles"},{"title":"Create a role","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations/{org_id}/roles","href":"/api-reference/members-\u0026-invitations/create-a-role"},{"title":"Reorder roles","deprecated":null,"version":null,"openapi":"/openapi.json put /api/organizations/{org_id}/roles/order","href":"/api-reference/members-\u0026-invitations/reorder-roles"},{"title":"Delete a role","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/organizations/{org_id}/roles/{role_key}","href":"/api-reference/members-\u0026-invitations/delete-a-role"},{"title":"Change a role","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/organizations/{org_id}/roles/{role_key}","href":"/api-reference/members-\u0026-invitations/change-a-role"}]},{"group":"Workspaces","pages":[{"title":"List your workspaces","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations","href":"/api-reference/workspaces/list-your-workspaces"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations","href":"/api-reference/workspaces/create-a-workspace"},{"title":"Get a workspace","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}","href":"/api-reference/workspaces/get-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/openapi.json put /api/organizations/{org_id}","href":"/api-reference/workspaces/update-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/organizations/{org_id}","href":"/api-reference/workspaces/delete-a-workspace"},{"title":"Transfer ownership","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations/{org_id}/transfer-ownership","href":"/api-reference/workspaces/transfer-ownership"}]},{"group":"Workspace Billing","pages":[{"title":"Get workspace billing","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/billing","href":"/api-reference/workspace-billing/get-workspace-billing"},{"title":"Add funds to a workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations/{org_id}/billing/add-funds","href":"/api-reference/workspace-billing/add-funds-to-a-workspace"},{"title":"Invoice workspace usage now","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations/{org_id}/billing/invoice-now","href":"/api-reference/workspace-billing/invoice-workspace-usage-now"},{"title":"List workspace invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/billing/invoices","href":"/api-reference/workspace-billing/list-workspace-invoices"},{"title":"Pay a workspace invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations/{org_id}/billing/invoices/{invoice_ref}/pay","href":"/api-reference/workspace-billing/pay-a-workspace-invoice"},{"title":"List workspace cards","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/billing/payment-methods","href":"/api-reference/workspace-billing/list-workspace-cards"},{"title":"Attach a card to a workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /api/organizations/{org_id}/billing/payment-methods","href":"/api-reference/workspace-billing/attach-a-card-to-a-workspace"},{"title":"Detach a workspace card","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/organizations/{org_id}/billing/payment-methods/{payment_method_id}","href":"/api-reference/workspace-billing/detach-a-workspace-card"},{"title":"Update workspace billing settings","deprecated":null,"version":null,"openapi":"/openapi.json put /api/organizations/{org_id}/billing/settings","href":"/api-reference/workspace-billing/update-workspace-billing-settings"},{"title":"List workspace transactions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/billing/transactions","href":"/api-reference/workspace-billing/list-workspace-transactions"},{"title":"Get workspace usage","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/billing/usage","href":"/api-reference/workspace-billing/get-workspace-usage"}]},{"group":"Usage","pages":[{"title":"Get workspace usage detail","deprecated":null,"version":null,"openapi":"/openapi.json get /api/organizations/{org_id}/usage","href":"/api-reference/usage/get-workspace-usage-detail"},{"title":"Get a project's usage","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}/usage","href":"/api-reference/usage/get-a-projects-usage"},{"title":"Export usage since a date","deprecated":null,"version":null,"openapi":"/openapi.json get /api/public/usage","href":"/api-reference/usage/export-usage-since-a-date"},{"title":"Export one task's usage","deprecated":null,"version":null,"openapi":"/openapi.json get /api/public/usage/task/{task_id}","href":"/api-reference/usage/export-one-tasks-usage"},{"title":"Get your usage","deprecated":null,"version":null,"openapi":"/openapi.json get /api/usage","href":"/api-reference/usage/get-your-usage"}]},{"group":"Projects","pages":[{"title":"List projects","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects","href":"/api-reference/projects/list-projects"},{"title":"Create a project","deprecated":null,"version":null,"openapi":"/openapi.json post /api/projects","href":"/api-reference/projects/create-a-project"},{"title":"Get a project","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}","href":"/api-reference/projects/get-a-project"},{"title":"Update a project","deprecated":null,"version":null,"openapi":"/openapi.json put /api/projects/{project_id}","href":"/api-reference/projects/update-a-project"},{"title":"Delete a project","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/projects/{project_id}","href":"/api-reference/projects/delete-a-project"},{"title":"Get your defaults for a project","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}/composer-prefs","href":"/api-reference/projects/get-your-defaults-for-a-project"},{"title":"Update your defaults for a project","deprecated":null,"version":null,"openapi":"/openapi.json put /api/projects/{project_id}/composer-prefs","href":"/api-reference/projects/update-your-defaults-for-a-project"},{"title":"List a project's people","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}/people","href":"/api-reference/projects/list-a-projects-people"},{"title":"Give someone a project role","deprecated":null,"version":null,"openapi":"/openapi.json post /api/projects/{project_id}/people","href":"/api-reference/projects/give-someone-a-project-role"},{"title":"Remove someone's project role","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/projects/{project_id}/people/{user_id}","href":"/api-reference/projects/remove-someones-project-role"},{"title":"Change someone's project role","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/projects/{project_id}/people/{user_id}","href":"/api-reference/projects/change-someones-project-role"},{"title":"Get your permissions on a project","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}/permissions","href":"/api-reference/projects/get-your-permissions-on-a-project"},{"title":"Attach a repository","deprecated":null,"version":null,"openapi":"/openapi.json post /api/projects/{project_id}/repositories","href":"/api-reference/projects/attach-a-repository"},{"title":"Detach a repository","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/projects/{project_id}/repositories/{repo_id}","href":"/api-reference/projects/detach-a-repository"},{"title":"List the roles available on a project","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}/roles","href":"/api-reference/projects/list-the-roles-available-on-a-project"},{"title":"Transfer a project","deprecated":null,"version":null,"openapi":"/openapi.json post /api/projects/{project_id}/transfer","href":"/api-reference/projects/transfer-a-project"},{"title":"Hide a project from its workspace","deprecated":null,"version":null,"openapi":"/openapi.json put /api/projects/{project_id}/visibility","href":"/api-reference/projects/hide-a-project-from-its-workspace"}]},{"group":"Tasks","pages":[{"title":"List a project's tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /api/projects/{project_id}/tasks","href":"/api-reference/tasks/list-a-projects-tasks"},{"title":"List tasks","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks","href":"/api-reference/tasks/list-tasks"},{"title":"Create a task","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks","href":"/api-reference/tasks/create-a-task"},{"title":"Get a task","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}","href":"/api-reference/tasks/get-a-task"},{"title":"Delete a task","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/tasks/{task_id}","href":"/api-reference/tasks/delete-a-task"},{"title":"Move a task to another project","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/tasks/{task_id}","href":"/api-reference/tasks/move-a-task-to-another-project"},{"title":"Answer a question","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/answer","href":"/api-reference/tasks/answer-a-question"},{"title":"Upload attachments","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/attachments","href":"/api-reference/tasks/upload-attachments"},{"title":"Delete an attachment","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/tasks/{task_id}/attachments/{attachment_id}","href":"/api-reference/tasks/delete-an-attachment"},{"title":"Download an attachment","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/attachments/{attachment_id}/content","href":"/api-reference/tasks/download-an-attachment"},{"title":"Stop background work","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/background/stop","href":"/api-reference/tasks/stop-background-work"},{"title":"Compact a task's history","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/compact","href":"/api-reference/tasks/compact-a-tasks-history"},{"title":"Get a task's build checklist","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/dev-todo","href":"/api-reference/tasks/get-a-tasks-build-checklist"},{"title":"Start a task's environment","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/ensure-pod","href":"/api-reference/tasks/start-a-tasks-environment"},{"title":"Keep a task's environment awake","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/heartbeat","href":"/api-reference/tasks/keep-a-tasks-environment-awake"},{"title":"Get a task's messages","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/messages","href":"/api-reference/tasks/get-a-tasks-messages"},{"title":"Send a message","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/messages","href":"/api-reference/tasks/send-a-message"},{"title":"Link a task to a ticket","deprecated":null,"version":null,"openapi":"/openapi.json put /api/tasks/{task_id}/source-url","href":"/api-reference/tasks/link-a-task-to-a-ticket"},{"title":"Reconnect to a running reply","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/stream","href":"/api-reference/tasks/reconnect-to-a-running-reply"},{"title":"Check for a running reply","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/stream/status","href":"/api-reference/tasks/check-for-a-running-reply"},{"title":"Stop a running reply","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/stream/stop","href":"/api-reference/tasks/stop-a-running-reply"}]},{"group":"Plans \u0026 Artifacts","pages":[{"title":"List deliverables","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/artifacts","href":"/api-reference/plans-\u0026-artifacts/list-deliverables"},{"title":"Get a deliverable","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/artifacts/{artifact_id}","href":"/api-reference/plans-\u0026-artifacts/get-a-deliverable"},{"title":"Download a deliverable","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/artifacts/{artifact_id}/content","href":"/api-reference/plans-\u0026-artifacts/download-a-deliverable"},{"title":"Preview a document or deck","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/artifacts/{artifact_id}/preview.pdf","href":"/api-reference/plans-\u0026-artifacts/preview-a-document-or-deck"},{"title":"Read a spreadsheet's rows","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/artifacts/{artifact_id}/rows","href":"/api-reference/plans-\u0026-artifacts/read-a-spreadsheets-rows"},{"title":"Get a task's deliverables checklist","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/deliverables","href":"/api-reference/plans-\u0026-artifacts/get-a-tasks-deliverables-checklist"},{"title":"Download the built modules","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/download-addons","href":"/api-reference/plans-\u0026-artifacts/download-the-built-modules"},{"title":"Get a task's plan","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/plan","href":"/api-reference/plans-\u0026-artifacts/get-a-tasks-plan"},{"title":"Revise a plan","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/plan","href":"/api-reference/plans-\u0026-artifacts/revise-a-plan"},{"title":"Approve a plan","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/plan/approve","href":"/api-reference/plans-\u0026-artifacts/approve-a-plan"},{"title":"List plan revisions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/plan/revisions","href":"/api-reference/plans-\u0026-artifacts/list-plan-revisions"},{"title":"Get one plan revision","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/plan/revisions/{version}","href":"/api-reference/plans-\u0026-artifacts/get-one-plan-revision"},{"title":"Restore a plan revision","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/plan/revisions/{version}/restore","href":"/api-reference/plans-\u0026-artifacts/restore-a-plan-revision"}]},{"group":"Pull Requests \u0026 Deploys","pages":[{"title":"Check pull request status","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/check-ci","href":"/api-reference/pull-requests-\u0026-deploys/check-pull-request-status"},{"title":"List deployments","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/deploy-runs","href":"/api-reference/pull-requests-\u0026-deploys/list-deployments"},{"title":"Compose a fix-checks request","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/prs/{pr_id}/fix-ci","href":"/api-reference/pull-requests-\u0026-deploys/compose-a-fix-checks-request"},{"title":"Auto-fix checks when they finish","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/tasks/{task_id}/prs/{pr_id}/fix-ci-intent","href":"/api-reference/pull-requests-\u0026-deploys/auto-fix-checks-when-they-finish"},{"title":"Merge and deploy","deprecated":null,"version":null,"openapi":"/openapi.json post /api/tasks/{task_id}/prs/{pr_id}/merge","href":"/api-reference/pull-requests-\u0026-deploys/merge-and-deploy"},{"title":"Get available merge targets","deprecated":null,"version":null,"openapi":"/openapi.json get /api/tasks/{task_id}/prs/{pr_id}/merge-targets","href":"/api-reference/pull-requests-\u0026-deploys/get-available-merge-targets"},{"title":"Set the staging branch","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/tasks/{task_id}/prs/{pr_id}/staging-branch","href":"/api-reference/pull-requests-\u0026-deploys/set-the-staging-branch"}]}]}]}]},"title":"Export usage - CodeCobra","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":[],"chunks":[]}