Read a daily usage series for your billing reports without requesting each day separately. Results cover the whole workspace, including excluded/deleted repositories and unattributed usage. This read does not incur usage charges.
Amounts are provisional metered usage at current prices, not invoice amounts, balances, or net charges. Even past days can change as usage arrives or prices change. Reads may use cached data and do not form a snapshot.
Use this endpoint for daily trends. For one total per meter, use billing meter summaries. To see individual agent runs and what each cost, use agent credit usage. Those per-run costs are list-price estimates rounded per run, so their sum won’t exactly match the Agent meter amounts here; use the metered endpoints for billing totals.
Requires workspace Read. API keys can read only their bound workspace and do not inherit their creator’s Admin permissions. Repository access restrictions do not reduce these workspace-wide totals.
Opaque nextPageToken from the preceding response. Keep the workspace and original date bounds unchanged; pageSize may change. Tokens expire after 24 hours and may become invalid earlier. Every page requires valid credentials. An invalid token returns HTTP 400; restart without pageToken.
The interval is half-open: [startTime, endTime). Every UTC day intersecting it is returned, oldest first, even when there is no observed usage. The first and last day may be partial; their returned bounds are clipped to your requested timestamps. An end at midnight does not add the following day.Partial-day usage is retrieved at minute resolution: the start rounds down and the end rounds up to enclosing minutes. Returned period bounds still preserve your requested timestamps. For example, a start at 12:00:30Z can include usage from 12:00:00Z. Use minute-aligned timestamps when this distinction matters.
Whole-interval totals for each independent rate series, ordered by seriesCode. Uses the same series fields below, without observed. Quantity sums that series’ displayed daily quantities; amount sums its daily priced amounts, rather than applying a unit price to the interval’s quantity.
Daily meters[] and whole-interval series[] use these fields. Multiple rates on one meter stay separate: use seriesCode as the key, not displayName or meterCode.
Metered cost: amount is a decimal string in major currency units, formatted to cents (for example, "12.50"); currency is uppercase (for example, "USD").
Daily points only. true means an observation exists, even if its quantity and amount are zero. false or an omitted field means no observation; quantity and amount are zero placeholders.
A day with no observed series is missing data, not a measured zero. Missing observations do not mean reporting is complete. No configured meters produces an empty collection, which is different from configured meters with missing observations.Quantities use 64-bit floating-point precision, not arbitrary-precision decimal arithmetic. For series converted to decimal KB (1000 bytes), each day’s quantity rounds to two decimals, with ties away from zero. Other series retain their units. Conversion does not reprice usage: costs round to cents independently for each rate and day. Interval totals use 64-bit floating-point summation before formatting; KB quantities use two decimal places, other quantities use the shortest decimal preserving that precision, and amounts use two decimal places.
Omit pageToken for the first request. Save intervalMetadata once if you need whole-interval totals.
Process the complete days in days.
If nextPageToken is present, request the next page with that token and the original workspace and date bounds. Continue until the token is absent.
Interval metadata is not additive across pages and is not a page total or invoice amount. Continuation pages omit it. A restarted walk returns new metadata; replace the old metadata rather than adding it again.First-page totals and daily pages are independent reads, not a snapshot. Usage may be cached for up to one minute, and subscription and pricing information for up to five minutes. Reporting can also lag activity. Late usage or subscription/price changes can make the first-page totals differ from a later sum of the pages; there is no freshness guarantee. This endpoint does not reconstruct historical invoices.
The maximum interval is 366 elapsed days, with 1–200 complete days per page. Reads support at most 200 independent rate series and 368 usage observations per series. An encoded response exceeding 50 MiB also fails; results are never silently truncated.
HTTP
Meaning
Action
400
Invalid bounds, page size, or continuation token.
Correct the input; for an invalid token, restart the walk.
400
billing collection limit exceeded.
A rate-series, observation, or response-size limit was exceeded. A smaller interval or page may help with data size, but not with too many configured rate series.
401
Missing or invalid credentials.
Check your bearer token.
403
Insufficient permission or wrong workspace.
Check the key’s workspace and required permissions.
429
Rate limited.
Respect Retry-After before retrying; do not poll in a tight loop.
500
Internal error.
Retry with backoff; contact support if it persists.
503
Temporarily unavailable.
Retry with backoff.
See the API’s shared errors and rate limits. Request limits do not establish a data-freshness guarantee.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Macroscope","colors":{"primary":"#6f16a3","light":"#a26fd9","dark":"#a26fd9"},"logo":{"light":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc","dark":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/dark.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=05f568cf92a21f18b8ebaed893c0ff3b"},"favicon":"https://mintcdn.com/macroscope/Ij1wsJ7EUw4zYzA-/images/favicon.svg?fit=max\u0026auto=format\u0026n=Ij1wsJ7EUw4zYzA-\u0026q=85\u0026s=bab7bcd6e8c996d0426a6a241bf3ecbe","navbar":{"links":[{"href":"https://docs.macroscope.com/contact","label":"Contact Us"}],"primary":{"type":"button","label":"Macroscope","href":"https://app.macroscope.com"}},"integrations":{"gtm":{"tagId":"GTM-MFXG74M6"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"macroscope","hasAudioNarration":false,"actualSubdomain":"macroscope","customDomains":["docs.macroscope.com"],"gitSource":{"type":"github","owner":"prassoai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae1899c937c113a46a9ddbc","collectionId":"792f3262-f945-4491-94ad-3cefabff72e4","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae1899c937c113a46a9ddbc"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae1899c937c113a46a9ddbc","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":51},{"language":"default","tag":"Integrations","count":22},{"language":"default","tag":"API","count":19},{"language":"default","tag":"Code Review","count":11},{"language":"default","tag":"Status","count":6},{"language":"default","tag":"Workspace","count":4},{"language":"default","tag":"Resources","count":3},{"language":"default","tag":"Check Run Agents","count":3},{"language":"default","tag":"Pricing","count":3},{"language":"default","tag":"Modifying behavior","count":2}]},"assistantConfig":{},"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":"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":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/list-daily-billing-usage","slug":"/api-reference/endpoint/list-daily-billing-usage","pageMetadata":{"title":"List daily billing usage","description":"Daily metered usage and provisional costs, with whole-interval totals on the first page.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","playground":"none","href":"/api-reference/endpoint/list-daily-billing-usage"},"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: \"Daily metered usage and provisional costs, with whole-interval totals on the first page.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField,Table,Warning}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Read a daily usage series for your billing reports without requesting each day separately. Results cover the whole workspace, including excluded/deleted repositories and unattributed usage. This read does not incur usage charges.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Amounts are provisional metered usage at current prices, not invoice amounts, balances, or net charges. Even past days can change as usage arrives or prices change. Reads may use cached data and do not form a snapshot.`})}),`\n`,_jsxs(_components.p,{children:[`Use this endpoint for daily trends. For one total per meter, use `,_jsx(_components.a,{href:`/api-reference/endpoint/list-billing-meter-summaries`,children:`billing meter summaries`}),`. To see individual agent runs and what each cost, use `,_jsx(_components.a,{href:`/api-reference/endpoint/list-agent-credit-usage`,children:`agent credit usage`}),`. Those per-run costs are list-price estimates rounded per run, so their sum won’t exactly match the Agent meter amounts here; use the metered endpoints for billing totals.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(_components.p,{children:`Requires workspace Read. API keys can read only their bound workspace and do not inherit their creator’s Admin permissions. Repository access restrictions do not reduce these workspace-wide totals.`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`startTime`,type:`string`,required:true,id:`param-start-time`,children:_jsx(_components.p,{children:`Inclusive start of the requested interval, as an RFC 3339 timestamp. There is no default.`})}),`\n`,_jsx(ParamField,{query:`endTime`,type:`string`,required:true,id:`param-end-time`,children:_jsxs(_components.p,{children:[`Exclusive end of the interval, as an RFC 3339 timestamp. Must be after `,_jsx(_components.code,{children:`startTime`}),` and at most 366 elapsed days later. There is no default.`]})}),`\n`,_jsx(ParamField,{query:`pageSize`,type:`integer`,default:`50`,id:`param-page-size`,children:_jsx(_components.p,{children:`Complete UTC days per page, from 1 to 200. This counts days, not meters or rate series.`})}),`\n`,_jsx(ParamField,{query:`pageToken`,type:`string`,id:`param-page-token`,children:_jsxs(_components.p,{children:[`Opaque `,_jsx(_components.code,{children:`nextPageToken`}),` from the preceding response. Keep the workspace and original date bounds unchanged; `,_jsx(_components.code,{children:`pageSize`}),` may change. Tokens expire after 24 hours and may become invalid earlier. Every page requires valid credentials. An invalid token returns HTTP 400; restart without `,_jsx(_components.code,{children:`pageToken`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`utc-days-and-partial-days`,children:`UTC days and partial days`}),`\n`,_jsxs(_components.p,{children:[`The interval is half-open: `,_jsx(_components.code,{children:`[startTime, endTime)`}),`. Every UTC day intersecting it is returned, oldest first, even when there is no observed usage. The first and last day may be partial; their returned bounds are clipped to your requested timestamps. An end at midnight does not add the following day.`]}),`\n`,_jsxs(_components.p,{children:[`Partial-day usage is retrieved at minute resolution: the start rounds down and the end rounds up to enclosing minutes. Returned period bounds still preserve your requested timestamps. For example, a start at `,_jsx(_components.code,{children:`12:00:30Z`}),` can include usage from `,_jsx(_components.code,{children:`12:00:00Z`}),`. Use minute-aligned timestamps when this distinction matters.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`days`,type:`object[]`,id:`param-days`,children:[_jsxs(_components.p,{children:[`Complete days on this page, ordered by `,_jsx(_components.code,{children:`periodStart`}),` ascending. Each day contains all its rate series; meter collections are never truncated.`]}),_jsxs(Expandable,{title:`Day properties`,children:[_jsx(ResponseField,{name:`periodStart`,type:`string`,id:`param-period-start`,children:_jsx(_components.p,{children:`Inclusive start of this clipped UTC day (RFC 3339).`})}),_jsx(ResponseField,{name:`periodEnd`,type:`string`,id:`param-period-end`,children:_jsx(_components.p,{children:`Exclusive end of this clipped UTC day (RFC 3339).`})}),_jsx(ResponseField,{name:`meters`,type:`object[]`,id:`param-meters`,children:_jsxs(_components.p,{children:[`Independent rate series, ordered by `,_jsx(_components.code,{children:`seriesCode`}),`. See `,_jsx(_components.a,{href:`#series-fields`,children:`Series fields`}),`. Empty, possibly omitted in JSON, when no meters are configured.`]})}),_jsx(ResponseField,{name:`amountStatus`,type:`string`,id:`param-amount-status`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`BILLING_AMOUNT_STATUS_PROVISIONAL`}),`, including historical days.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`intervalMetadata`,type:`object`,id:`param-interval-metadata`,children:[_jsxs(_components.p,{children:[`Present only on the first page, when you omit `,_jsx(_components.code,{children:`pageToken`}),`. Covers the entire original requested interval, not just the days on this page.`]}),_jsxs(Expandable,{title:`Interval metadata properties`,children:[_jsx(ResponseField,{name:`periodStart`,type:`string`,id:`param-period-start-1`,children:_jsxs(_components.p,{children:[`Original inclusive `,_jsx(_components.code,{children:`startTime`}),` (RFC 3339).`]})}),_jsx(ResponseField,{name:`periodEnd`,type:`string`,id:`param-period-end-1`,children:_jsxs(_components.p,{children:[`Original exclusive `,_jsx(_components.code,{children:`endTime`}),` (RFC 3339).`]})}),_jsx(ResponseField,{name:`series`,type:`object[]`,id:`param-series`,children:_jsxs(_components.p,{children:[`Whole-interval totals for each independent rate series, ordered by `,_jsx(_components.code,{children:`seriesCode`}),`. Uses the same series fields below, without `,_jsx(_components.code,{children:`observed`}),`. Quantity sums that series’ displayed daily quantities; amount sums its daily priced amounts, rather than applying a unit price to the interval’s quantity.`]})}),_jsx(ResponseField,{name:`amountStatus`,type:`string`,id:`param-amount-status-1`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`BILLING_AMOUNT_STATUS_PROVISIONAL`}),`.`]})})]})]}),`\n`,_jsx(ResponseField,{name:`nextPageToken`,type:`string`,id:`param-next-page-token`,children:_jsxs(_components.p,{children:[`Pass as `,_jsx(_components.code,{children:`pageToken`}),` to read the next page. Omitted when there are no more pages.`]})}),`\n`,_jsx(ResponseField,{name:`readTime`,type:`string`,id:`param-read-time`,children:_jsx(_components.p,{children:`Response construction time (RFC 3339), not a data-freshness watermark.`})}),`\n`,_jsx(Heading,{level:`3`,id:`series-fields`,children:`Series fields`}),`\n`,_jsxs(_components.p,{children:[`Daily `,_jsx(_components.code,{children:`meters[]`}),` and whole-interval `,_jsx(_components.code,{children:`series[]`}),` use these fields. Multiple rates on one meter stay separate: use `,_jsx(_components.code,{children:`seriesCode`}),` as the key, not `,_jsx(_components.code,{children:`displayName`}),` or `,_jsx(_components.code,{children:`meterCode`}),`.`]}),`\n`,_jsx(ResponseField,{name:`seriesCode`,type:`string`,id:`param-series-code`,children:_jsx(_components.p,{children:`Opaque identity linking an independent rate series across pages and to its interval total. Do not parse it.`})}),`\n`,_jsx(ResponseField,{name:`meterCode`,type:`string`,id:`param-meter-code`,children:_jsxs(_components.p,{children:[`Opaque meter identity linking to `,_jsx(_components.code,{children:`meterSummaries`}),`. Different rate series can share it; do not add their quantities as if they were different meters.`]})}),`\n`,_jsx(ResponseField,{name:`displayName`,type:`string`,id:`param-display-name`,children:_jsx(_components.p,{children:`Display name. Names need not be unique.`})}),`\n`,_jsx(ResponseField,{name:`quantity`,type:`string`,id:`param-quantity`,children:_jsxs(_components.p,{children:[`Decimal usage quantity in this series’ `,_jsx(_components.code,{children:`unit`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`unit`,type:`string`,id:`param-unit`,children:_jsx(_components.p,{children:`Unit of the quantity. Each rate preserves its own unit and conversion.`})}),`\n`,_jsx(ResponseField,{name:`usageAmount`,type:`object`,id:`param-usage-amount`,children:_jsxs(_components.p,{children:[`Metered cost: `,_jsx(_components.code,{children:`amount`}),` is a decimal string in major currency units, formatted to cents (for example, `,_jsx(_components.code,{children:`\"12.50\"`}),`); `,_jsx(_components.code,{children:`currency`}),` is uppercase (for example, `,_jsx(_components.code,{children:`\"USD\"`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`observed`,type:`boolean`,id:`param-observed`,children:_jsxs(_components.p,{children:[`Daily points only. `,_jsx(_components.code,{children:`true`}),` means an observation exists, even if its quantity and amount are zero. `,_jsx(_components.code,{children:`false`}),` or an omitted field means no observation; quantity and amount are zero placeholders.`]})}),`\n`,_jsx(_components.p,{children:`A day with no observed series is missing data, not a measured zero. Missing observations do not mean reporting is complete. No configured meters produces an empty collection, which is different from configured meters with missing observations.`}),`\n`,_jsx(_components.p,{children:`Quantities use 64-bit floating-point precision, not arbitrary-precision decimal arithmetic. For series converted to decimal KB (1000 bytes), each day’s quantity rounds to two decimals, with ties away from zero. Other series retain their units. Conversion does not reprice usage: costs round to cents independently for each rate and day. Interval totals use 64-bit floating-point summation before formatting; KB quantities use two decimal places, other quantities use the shortest decimal preserving that precision, and amounts use two decimal places.`}),`\n`,_jsx(Heading,{level:`2`,id:`pagination-and-totals`,children:`Pagination and totals`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Omit `,_jsx(_components.code,{children:`pageToken`}),` for the first request. Save `,_jsx(_components.code,{children:`intervalMetadata`}),` once if you need whole-interval totals.`]}),`\n`,_jsxs(_components.li,{children:[`Process the complete days in `,_jsx(_components.code,{children:`days`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If `,_jsx(_components.code,{children:`nextPageToken`}),` is present, request the next page with that token and the `,_jsx(_components.strong,{children:`original`}),` workspace and date bounds. Continue until the token is absent.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Interval metadata is `,_jsx(_components.strong,{children:`not additive across pages`}),` and is not a page total or invoice amount. Continuation pages omit it. A restarted walk returns new metadata; replace the old metadata rather than adding it again.`]}),`\n`,_jsx(_components.p,{children:`First-page totals and daily pages are independent reads, not a snapshot. Usage may be cached for up to one minute, and subscription and pricing information for up to five minutes. Reporting can also lag activity. Late usage or subscription/price changes can make the first-page totals differ from a later sum of the pages; there is no freshness guarantee. This endpoint does not reconstruct historical invoices.`}),`\n`,_jsx(Heading,{level:`2`,id:`limits-and-errors`,children:`Limits and errors`}),`\n`,_jsx(_components.p,{children:`The maximum interval is 366 elapsed days, with 1–200 complete days per page. Reads support at most 200 independent rate series and 368 usage observations per series. An encoded response exceeding 50 MiB also fails; results are never silently truncated.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`Action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Invalid bounds, page size, or continuation token.`}),_jsx(_components.td,{children:`Correct the input; for an invalid token, restart the walk.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`billing collection limit exceeded`}),`.`]}),_jsx(_components.td,{children:`A rate-series, observation, or response-size limit was exceeded. A smaller interval or page may help with data size, but not with too many configured rate series.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing or invalid credentials.`}),_jsx(_components.td,{children:`Check your bearer token.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Insufficient permission or wrong workspace.`}),_jsx(_components.td,{children:`Check the key’s workspace and required permissions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limited.`}),_jsxs(_components.td,{children:[`Respect `,_jsx(_components.code,{children:`Retry-After`}),` before retrying; do not poll in a tight loop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Internal error.`}),_jsx(_components.td,{children:`Retry with backoff; contact support if it persists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Temporarily unavailable.`}),_jsx(_components.td,{children:`Retry with backoff.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See the API’s shared `,_jsx(_components.a,{href:`/api#errors`,children:`errors`}),` and `,_jsx(_components.a,{href:`/api#limits`,children:`rate limits`}),`. Request limits do not establish a data-freshness guarantee.`]})]})}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":"List daily billing usage","description":"Daily metered usage and provisional costs, with whole-interval totals on the first page.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","playground":"none","href":"/api-reference/endpoint/list-daily-billing-usage"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Read a daily usage series for your billing reports without requesting each day separately. Results cover the whole workspace, including excluded/deleted repositories and unattributed usage. This read does not incur usage charges.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Amounts are provisional metered usage at current prices, not invoice amounts, balances, or net charges. Even past days can change as usage arrives or prices change. Reads may use cached data and do not form a snapshot.`})}),`\n`,_jsxs(_components.p,{children:[`Use this endpoint for daily trends. For one total per meter, use `,_jsx(_components.a,{href:`/api-reference/endpoint/list-billing-meter-summaries`,children:`billing meter summaries`}),`. To see individual agent runs and what each cost, use `,_jsx(_components.a,{href:`/api-reference/endpoint/list-agent-credit-usage`,children:`agent credit usage`}),`. Those per-run costs are list-price estimates rounded per run, so their sum won’t exactly match the Agent meter amounts here; use the metered endpoints for billing totals.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(_components.p,{children:`Requires workspace Read. API keys can read only their bound workspace and do not inherit their creator’s Admin permissions. Repository access restrictions do not reduce these workspace-wide totals.`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsx(ParamField,{query:`startTime`,type:`string`,required:true,id:`param-start-time`,children:_jsx(_components.p,{children:`Inclusive start of the requested interval, as an RFC 3339 timestamp. There is no default.`})}),`\n`,_jsx(ParamField,{query:`endTime`,type:`string`,required:true,id:`param-end-time`,children:_jsxs(_components.p,{children:[`Exclusive end of the interval, as an RFC 3339 timestamp. Must be after `,_jsx(_components.code,{children:`startTime`}),` and at most 366 elapsed days later. There is no default.`]})}),`\n`,_jsx(ParamField,{query:`pageSize`,type:`integer`,default:`50`,id:`param-page-size`,children:_jsx(_components.p,{children:`Complete UTC days per page, from 1 to 200. This counts days, not meters or rate series.`})}),`\n`,_jsx(ParamField,{query:`pageToken`,type:`string`,id:`param-page-token`,children:_jsxs(_components.p,{children:[`Opaque `,_jsx(_components.code,{children:`nextPageToken`}),` from the preceding response. Keep the workspace and original date bounds unchanged; `,_jsx(_components.code,{children:`pageSize`}),` may change. Tokens expire after 24 hours and may become invalid earlier. Every page requires valid credentials. An invalid token returns HTTP 400; restart without `,_jsx(_components.code,{children:`pageToken`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`utc-days-and-partial-days`,children:`UTC days and partial days`}),`\n`,_jsxs(_components.p,{children:[`The interval is half-open: `,_jsx(_components.code,{children:`[startTime, endTime)`}),`. Every UTC day intersecting it is returned, oldest first, even when there is no observed usage. The first and last day may be partial; their returned bounds are clipped to your requested timestamps. An end at midnight does not add the following day.`]}),`\n`,_jsxs(_components.p,{children:[`Partial-day usage is retrieved at minute resolution: the start rounds down and the end rounds up to enclosing minutes. Returned period bounds still preserve your requested timestamps. For example, a start at `,_jsx(_components.code,{children:`12:00:30Z`}),` can include usage from `,_jsx(_components.code,{children:`12:00:00Z`}),`. Use minute-aligned timestamps when this distinction matters.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`days`,type:`object[]`,id:`param-days`,children:[_jsxs(_components.p,{children:[`Complete days on this page, ordered by `,_jsx(_components.code,{children:`periodStart`}),` ascending. Each day contains all its rate series; meter collections are never truncated.`]}),_jsxs(Expandable,{title:`Day properties`,children:[_jsx(ResponseField,{name:`periodStart`,type:`string`,id:`param-period-start`,children:_jsx(_components.p,{children:`Inclusive start of this clipped UTC day (RFC 3339).`})}),_jsx(ResponseField,{name:`periodEnd`,type:`string`,id:`param-period-end`,children:_jsx(_components.p,{children:`Exclusive end of this clipped UTC day (RFC 3339).`})}),_jsx(ResponseField,{name:`meters`,type:`object[]`,id:`param-meters`,children:_jsxs(_components.p,{children:[`Independent rate series, ordered by `,_jsx(_components.code,{children:`seriesCode`}),`. See `,_jsx(_components.a,{href:`#series-fields`,children:`Series fields`}),`. Empty, possibly omitted in JSON, when no meters are configured.`]})}),_jsx(ResponseField,{name:`amountStatus`,type:`string`,id:`param-amount-status`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`BILLING_AMOUNT_STATUS_PROVISIONAL`}),`, including historical days.`]})})]})]}),`\n`,_jsxs(ResponseField,{name:`intervalMetadata`,type:`object`,id:`param-interval-metadata`,children:[_jsxs(_components.p,{children:[`Present only on the first page, when you omit `,_jsx(_components.code,{children:`pageToken`}),`. Covers the entire original requested interval, not just the days on this page.`]}),_jsxs(Expandable,{title:`Interval metadata properties`,children:[_jsx(ResponseField,{name:`periodStart`,type:`string`,id:`param-period-start-1`,children:_jsxs(_components.p,{children:[`Original inclusive `,_jsx(_components.code,{children:`startTime`}),` (RFC 3339).`]})}),_jsx(ResponseField,{name:`periodEnd`,type:`string`,id:`param-period-end-1`,children:_jsxs(_components.p,{children:[`Original exclusive `,_jsx(_components.code,{children:`endTime`}),` (RFC 3339).`]})}),_jsx(ResponseField,{name:`series`,type:`object[]`,id:`param-series`,children:_jsxs(_components.p,{children:[`Whole-interval totals for each independent rate series, ordered by `,_jsx(_components.code,{children:`seriesCode`}),`. Uses the same series fields below, without `,_jsx(_components.code,{children:`observed`}),`. Quantity sums that series’ displayed daily quantities; amount sums its daily priced amounts, rather than applying a unit price to the interval’s quantity.`]})}),_jsx(ResponseField,{name:`amountStatus`,type:`string`,id:`param-amount-status-1`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`BILLING_AMOUNT_STATUS_PROVISIONAL`}),`.`]})})]})]}),`\n`,_jsx(ResponseField,{name:`nextPageToken`,type:`string`,id:`param-next-page-token`,children:_jsxs(_components.p,{children:[`Pass as `,_jsx(_components.code,{children:`pageToken`}),` to read the next page. Omitted when there are no more pages.`]})}),`\n`,_jsx(ResponseField,{name:`readTime`,type:`string`,id:`param-read-time`,children:_jsx(_components.p,{children:`Response construction time (RFC 3339), not a data-freshness watermark.`})}),`\n`,_jsx(Heading,{level:`3`,id:`series-fields`,children:`Series fields`}),`\n`,_jsxs(_components.p,{children:[`Daily `,_jsx(_components.code,{children:`meters[]`}),` and whole-interval `,_jsx(_components.code,{children:`series[]`}),` use these fields. Multiple rates on one meter stay separate: use `,_jsx(_components.code,{children:`seriesCode`}),` as the key, not `,_jsx(_components.code,{children:`displayName`}),` or `,_jsx(_components.code,{children:`meterCode`}),`.`]}),`\n`,_jsx(ResponseField,{name:`seriesCode`,type:`string`,id:`param-series-code`,children:_jsx(_components.p,{children:`Opaque identity linking an independent rate series across pages and to its interval total. Do not parse it.`})}),`\n`,_jsx(ResponseField,{name:`meterCode`,type:`string`,id:`param-meter-code`,children:_jsxs(_components.p,{children:[`Opaque meter identity linking to `,_jsx(_components.code,{children:`meterSummaries`}),`. Different rate series can share it; do not add their quantities as if they were different meters.`]})}),`\n`,_jsx(ResponseField,{name:`displayName`,type:`string`,id:`param-display-name`,children:_jsx(_components.p,{children:`Display name. Names need not be unique.`})}),`\n`,_jsx(ResponseField,{name:`quantity`,type:`string`,id:`param-quantity`,children:_jsxs(_components.p,{children:[`Decimal usage quantity in this series’ `,_jsx(_components.code,{children:`unit`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`unit`,type:`string`,id:`param-unit`,children:_jsx(_components.p,{children:`Unit of the quantity. Each rate preserves its own unit and conversion.`})}),`\n`,_jsx(ResponseField,{name:`usageAmount`,type:`object`,id:`param-usage-amount`,children:_jsxs(_components.p,{children:[`Metered cost: `,_jsx(_components.code,{children:`amount`}),` is a decimal string in major currency units, formatted to cents (for example, `,_jsx(_components.code,{children:`\"12.50\"`}),`); `,_jsx(_components.code,{children:`currency`}),` is uppercase (for example, `,_jsx(_components.code,{children:`\"USD\"`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`observed`,type:`boolean`,id:`param-observed`,children:_jsxs(_components.p,{children:[`Daily points only. `,_jsx(_components.code,{children:`true`}),` means an observation exists, even if its quantity and amount are zero. `,_jsx(_components.code,{children:`false`}),` or an omitted field means no observation; quantity and amount are zero placeholders.`]})}),`\n`,_jsx(_components.p,{children:`A day with no observed series is missing data, not a measured zero. Missing observations do not mean reporting is complete. No configured meters produces an empty collection, which is different from configured meters with missing observations.`}),`\n`,_jsx(_components.p,{children:`Quantities use 64-bit floating-point precision, not arbitrary-precision decimal arithmetic. For series converted to decimal KB (1000 bytes), each day’s quantity rounds to two decimals, with ties away from zero. Other series retain their units. Conversion does not reprice usage: costs round to cents independently for each rate and day. Interval totals use 64-bit floating-point summation before formatting; KB quantities use two decimal places, other quantities use the shortest decimal preserving that precision, and amounts use two decimal places.`}),`\n`,_jsx(Heading,{level:`2`,id:`pagination-and-totals`,children:`Pagination and totals`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Omit `,_jsx(_components.code,{children:`pageToken`}),` for the first request. Save `,_jsx(_components.code,{children:`intervalMetadata`}),` once if you need whole-interval totals.`]}),`\n`,_jsxs(_components.li,{children:[`Process the complete days in `,_jsx(_components.code,{children:`days`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If `,_jsx(_components.code,{children:`nextPageToken`}),` is present, request the next page with that token and the `,_jsx(_components.strong,{children:`original`}),` workspace and date bounds. Continue until the token is absent.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Interval metadata is `,_jsx(_components.strong,{children:`not additive across pages`}),` and is not a page total or invoice amount. Continuation pages omit it. A restarted walk returns new metadata; replace the old metadata rather than adding it again.`]}),`\n`,_jsx(_components.p,{children:`First-page totals and daily pages are independent reads, not a snapshot. Usage may be cached for up to one minute, and subscription and pricing information for up to five minutes. Reporting can also lag activity. Late usage or subscription/price changes can make the first-page totals differ from a later sum of the pages; there is no freshness guarantee. This endpoint does not reconstruct historical invoices.`}),`\n`,_jsx(Heading,{level:`2`,id:`limits-and-errors`,children:`Limits and errors`}),`\n`,_jsx(_components.p,{children:`The maximum interval is 366 elapsed days, with 1–200 complete days per page. Reads support at most 200 independent rate series and 368 usage observations per series. An encoded response exceeding 50 MiB also fails; results are never silently truncated.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`Action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Invalid bounds, page size, or continuation token.`}),_jsx(_components.td,{children:`Correct the input; for an invalid token, restart the walk.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`billing collection limit exceeded`}),`.`]}),_jsx(_components.td,{children:`A rate-series, observation, or response-size limit was exceeded. A smaller interval or page may help with data size, but not with too many configured rate series.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Missing or invalid credentials.`}),_jsx(_components.td,{children:`Check your bearer token.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Insufficient permission or wrong workspace.`}),_jsx(_components.td,{children:`Check the key’s workspace and required permissions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limited.`}),_jsxs(_components.td,{children:[`Respect `,_jsx(_components.code,{children:`Retry-After`}),` before retrying; do not poll in a tight loop.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Internal error.`}),_jsx(_components.td,{children:`Retry with backoff; contact support if it persists.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Temporarily unavailable.`}),_jsx(_components.td,{children:`Retry with backoff.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See the API’s shared `,_jsx(_components.a,{href:`/api#errors`,children:`errors`}),` and `,_jsx(_components.a,{href:`/api#limits`,children:`rate limits`}),`. Request limits do not establish a data-freshness guarantee.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,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:`5`,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:` --fail-with-body`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --get`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/billing/dailyUsage`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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:`$MACROSCOPE_API_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:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startTime=2026-10-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endTime=2026-10-03T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pageSize=1\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python pagination`,numberOfLines:`24`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`24`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/billing/dailyUsage\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'MACROSCOPE_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`params `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-03T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pageSize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`interval_metadata `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`params, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"intervalMetadata\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` interval_metadata `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"intervalMetadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` day `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"days\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, []):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(day)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` token `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nextPageToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` token:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` params[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pageToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` token`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`43`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`43`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"days\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"periodStart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"periodEnd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-02T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"meters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"meterCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"meter_example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"seriesCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"series_example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"KB\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usageAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"observed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amountStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BILLING_AMOUNT_STATUS_PROVISIONAL\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"intervalMetadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"periodStart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-01T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"periodEnd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-03T00:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"series\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"seriesCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"series_example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"meterCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"meter_example\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"KB\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3000.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usageAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"30.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USD\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amountStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BILLING_AMOUNT_STATUS_PROVISIONAL\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"nextPageToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"opaque-continuation-token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"readTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-03T00:05:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`9`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"billing collection limit exceeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]})]})}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":"List daily billing usage","description":"Daily metered usage and provisional costs, with whole-interval totals on the first page.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","playground":"none","href":"/api-reference/endpoint/list-daily-billing-usage"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Query parameters","slug":"query-parameters","depth":2,"children":[{"title":"UTC days and partial days","slug":"utc-days-and-partial-days","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Series fields","slug":"series-fields","depth":3,"children":[]}]},{"title":"Pagination and totals","slug":"pagination-and-totals","depth":2,"children":[]},{"title":"Limits and errors","slug":"limits-and-errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --fail-with-body\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --get\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/billing/dailyUsage\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$MACROSCOPE_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"startTime=2026-10-01T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"endTime=2026-10-03T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data-urlencode\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pageSize=1\"\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python pagination","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"24\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> os\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/billing/dailyUsage\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">os.environ[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'MACROSCOPE_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">params \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"startTime\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-01T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"endTime\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-03T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pageSize\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">interval_metadata \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> None\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">while\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> True\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.get(url, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">params\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">params, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">timeout\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.raise_for_status()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> page \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> if\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"intervalMetadata\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> in\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> page:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> interval_metadata \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> page[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"intervalMetadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> for\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> day \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">in\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> page.get(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"days\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, []):\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(day)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> token \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> page.get(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"nextPageToken\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> if\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> not\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> token:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> break\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> params[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pageToken\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">] \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> token\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"43\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"days\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"periodStart\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-01T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"periodEnd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-02T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"meters\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"meterCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"meter_example\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"seriesCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"series_example\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"displayName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example usage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"quantity\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1000.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"unit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"KB\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"usageAmount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"10.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"USD\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"observed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amountStatus\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"BILLING_AMOUNT_STATUS_PROVISIONAL\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"intervalMetadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"periodStart\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-01T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"periodEnd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-03T00:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"series\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"seriesCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"series_example\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"meterCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"meter_example\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"displayName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example usage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"unit\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"KB\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"quantity\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3000.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"usageAmount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"30.00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"currency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"USD\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amountStatus\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"BILLING_AMOUNT_STATUS_PROVISIONAL\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"nextPageToken\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"opaque-continuation-token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"readTime\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-03T00:05:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">9\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"billing collection limit exceeded\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"List daily billing usage","path":"/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","servers":[{"url":"https://api.macroscope.com"}],"method":"get","request":{"security":[],"parameters":{"query":{"startTime":{"schema":[{"type":"string","description":"Inclusive start of the requested interval, as an RFC 3339 timestamp. There is no default.","required":true}]},"endTime":{"schema":[{"type":"string","description":"Exclusive end of the interval, as an RFC 3339 timestamp. Must be after `startTime` and at most 366 elapsed days later. There is no default.","required":true}]},"pageSize":{"schema":[{"type":"integer","description":"Complete UTC days per page, from 1 to 200. This counts days, not meters or rate series."}]},"pageToken":{"schema":[{"type":"string","description":"Opaque `nextPageToken` from the preceding response. Keep the workspace and original date bounds unchanged; `pageSize` may change. Tokens expire after 24 hours and may become invalid earlier. Every page requires valid credentials. An invalid token returns HTTP 400; restart without `pageToken` ."}]}},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer \u003ckey>` . See Authentication .","required":true}]}},"cookie":{},"path":{"workspaceType":{"schema":[{"type":"string","description":"`GITHUB_ORGANIZATION` or `GITHUB_USER` .","required":true}]},"workspaceId":{"schema":[{"type":"string","description":"Numeric GitHub ID of the organization or user.","required":true}]}}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"days":[{"type":"array","items":[{"type":"object","properties":{"periodStart":[{"type":"string","description":"Inclusive start of this clipped UTC day (RFC 3339)."}],"periodEnd":[{"type":"string","description":"Exclusive end of this clipped UTC day (RFC 3339)."}],"meters":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Independent rate series, ordered by `seriesCode` . See Series fields . Empty, possibly omitted in JSON, when no meters are configured."}],"amountStatus":[{"type":"string","description":"Always `BILLING_AMOUNT_STATUS_PROVISIONAL` , including historical days."}]}}],"description":"Complete days on this page, ordered by `periodStart` ascending. Each day contains all its rate series; meter collections are never truncated."}],"intervalMetadata":[{"type":"object","properties":{"periodStart":[{"type":"string","description":"Original inclusive `startTime` (RFC 3339)."}],"periodEnd":[{"type":"string","description":"Original exclusive `endTime` (RFC 3339)."}],"series":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Whole-interval totals for each independent rate series, ordered by `seriesCode` . Uses the same series fields below, without `observed` . Quantity sums that series’ displayed daily quantities; amount sums its daily priced amounts, rather than applying a unit price to the interval’s quantity."}],"amountStatus":[{"type":"string","description":"Always `BILLING_AMOUNT_STATUS_PROVISIONAL` ."}]},"description":"Present only on the first page, when you omit `pageToken` . Covers the entire original requested interval, not just the days on this page."}],"nextPageToken":[{"type":"string","description":"Pass as `pageToken` to read the next page. Omitted when there are no more pages."}],"readTime":[{"type":"string","description":"Response construction time (RFC 3339), not a data-freshness watermark."}],"seriesCode":[{"type":"string","description":"Opaque identity linking an independent rate series across pages and to its interval total. Do not parse it."}],"meterCode":[{"type":"string","description":"Opaque meter identity linking to `meterSummaries` . Different rate series can share it; do not add their quantities as if they were different meters."}],"displayName":[{"type":"string","description":"Display name. Names need not be unique."}],"quantity":[{"type":"string","description":"Decimal usage quantity in this series’ `unit` ."}],"unit":[{"type":"string","description":"Unit of the quantity. Each rate preserves its own unit and conversion."}],"usageAmount":[{"type":"object","properties":{},"description":"Metered cost: `amount` is a decimal string in major currency units, formatted to cents (for example, `\"12.50\"` ); `currency` is uppercase (for example, `\"USD\"` )."}],"observed":[{"type":"boolean","description":"Daily points only. `true` means an observation exists, even if its quantity and amount are zero. `false` or an omitted field means no observation; quantity and amount are zero placeholders."}]}}],"examples":{"example":{"value":{"days":[{"periodStart":"\u003cstring>","periodEnd":"\u003cstring>","meters":[{}],"amountStatus":"\u003cstring>"}],"intervalMetadata":{"periodStart":"\u003cstring>","periodEnd":"\u003cstring>","series":[{}],"amountStatus":"\u003cstring>"},"nextPageToken":"\u003cstring>","readTime":"\u003cstring>","seriesCode":"\u003cstring>","meterCode":"\u003cstring>","displayName":"\u003cstring>","quantity":"\u003cstring>","unit":"\u003cstring>","usageAmount":{},"observed":true}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"macroscope","siteName":"Macroscope","title":"List daily billing usage - Macroscope","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T05:35:33.107Z","originalFileLocation":"api-reference/endpoint/list-daily-billing-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=\"Daily metered usage and provisional costs, with whole-interval totals on the first page.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List daily billing usage - Macroscope\">\u003cmeta data-mint-head property=\"og:description\" content=\"Daily metered usage and provisional costs, with whole-interval totals on the first page.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Macroscope\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://macroscope.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=List+daily+billing+usage\u0026amp;description=Daily+metered+usage+and+provisional+costs%2C+with+whole-interval+totals+on+the+first+page.\u0026amp;theme=b088c8c661c8523bb64e06f0\u0026amp;signature=ab0d99afaf323ca379f62026d8e3bf4b03e6c48f05357cce60d9ffc9b9241fca\">\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=\"List daily billing usage - Macroscope\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Daily metered usage and provisional costs, with whole-interval totals on the first page.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://macroscope.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=List+daily+billing+usage\u0026amp;description=Daily+metered+usage+and+provisional+costs%2C+with+whole-interval+totals+on+the+first+page.\u0026amp;theme=b088c8c661c8523bb64e06f0\u0026amp;signature=ab0d99afaf323ca379f62026d8e3bf4b03e6c48f05357cce60d9ffc9b9241fca\">\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/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6f16a3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-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/endpoint/list-daily-billing-usage.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.macroscope.com/#organization\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.macroscope.com#website\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage#webpage\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage\",\"name\":\"List daily billing usage\",\"description\":\"Daily metered usage and provisional costs, with whole-interval totals on the first page.\",\"dateModified\":\"2026-10-28T05:35:33.107Z\",\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://docs.macroscope.com/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https://docs.macroscope.com/api\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"List daily billing usage\",\"item\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage#apireference\",\"headline\":\"List daily billing usage\",\"name\":\"List daily billing usage\",\"description\":\"Daily metered usage and provisional costs, with whole-interval totals on the first page.\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage\",\"mainEntityOfPage\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/list-daily-billing-usage#webpage\"},\"dateModified\":\"2026-10-28T05:35:33.107Z\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Macroscope\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Macroscope","nav":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Overview","href":"/welcome"},{"title":"Setup","href":"/setup-instructions"},{"group":"Pricing","pages":[{"title":"Pricing overview","href":"/pricing"},{"title":"Models and token rates","href":"/model-pricing"},{"title":"Spend controls","href":"/spend-limits"}]},{"group":"Code Review","pages":[{"title":"Correctness","href":"/correctness"},{"title":"Detection mode","href":"/code-review/detection-mode"},{"group":"Modifying behavior","root":{"title":"Modifying behavior","href":"/code-review/macroscope"},"pages":[{"title":"Custom instructions","href":"/custom-instructions"},{"title":"Ignore files","href":"/code-review/ignore-files"}]},{"group":"Check Run Agents","root":{"title":"Check Run Agents","href":"/check-run-agents"},"pages":[{"title":"Configuration","href":"/check-run-agents/configuration"},{"title":"Instructions and context","href":"/check-run-agents/instructions"},{"title":"Triggers and skips","href":"/check-run-agents/triggers"}]},{"title":"Approvability","href":"/approvability"},{"title":"CLI","href":"/cli"},{"title":"PR summaries","href":"/pull-request-descriptions"},{"title":"Fix it for me","href":"/fix-it-for-me"}]},{"group":"Status","pages":[{"title":"Status","href":"/status"},{"title":"Areas","href":"/areas"},{"title":"Productivity","href":"/productivity"},{"title":"Slack subscriptions","href":"/slack-subscriptions"},{"title":"Ask Macroscope","href":"/agent"},{"title":"Macros","href":"/macros"}]},{"group":"Integrations","pages":[{"title":"Webhooks","href":"/webhooks"},{"title":"Connected tools","href":"/integrations"},{"group":"API","root":{"title":"API","href":"/api"},"pages":[{"title":"Get workspace","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}","playground":"none","href":"/api-reference/endpoint/get-workspace"},{"title":"List areas","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/areas","playground":"none","href":"/api-reference/endpoint/list-areas"},{"title":"Get workspace report","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/workspaceReport","playground":"none","href":"/api-reference/endpoint/get-workspace-report"},{"title":"Get sprint elapsed hours","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/sprintElapsedHours","playground":"none","href":"/api-reference/endpoint/get-sprint-elapsed-hours"},{"title":"List contributor statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/contributorStatistics","playground":"none","href":"/api-reference/endpoint/list-contributor-statistics"},{"title":"List team memberships","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teams/memberships","playground":"none","href":"/api-reference/endpoint/list-team-memberships"},{"title":"List team statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teamStatistics","playground":"none","href":"/api-reference/endpoint/list-team-statistics"},{"title":"Get coding time statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/codingTimeStatistics","playground":"none","href":"/api-reference/endpoint/get-coding-time-statistics"},{"title":"Query code review statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","playground":"none","href":"/api-reference/endpoint/query-code-review-statistics"},{"title":"List code review comments","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-comments","playground":"none","href":"/api-reference/endpoint/list-code-review-comments"},{"title":"List commits","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/commits","playground":"none","href":"/api-reference/endpoint/list-commits"},{"title":"Get billing status","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/status","playground":"none","href":"/api-reference/endpoint/get-billing-status"},{"title":"Get billing balance","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/balance","playground":"none","href":"/api-reference/endpoint/get-billing-balance"},{"title":"Get billing controls","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/controls","playground":"none","href":"/api-reference/endpoint/get-billing-controls"},{"title":"List billing meter summaries","description":"Per-meter usage quantities and provisional priced amounts for a time interval.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/meterSummaries","playground":"none","href":"/api-reference/endpoint/list-billing-meter-summaries"},{"title":"List daily billing usage","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","playground":"none","href":"/api-reference/endpoint/list-daily-billing-usage"},{"title":"List agent credit usage","description":"Recorded agent credit usage with attribution and nominal cost, newest first.","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/agentCreditUsage","playground":"none","href":"/api-reference/endpoint/list-agent-credit-usage"},{"title":"List workspace reporting periods","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/reportingPeriods","playground":"none","href":"/api-reference/endpoint/list-workspace-reporting-periods"},{"title":"List check-run agent billing summaries","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/checkRunAgentSummaries","playground":"none","href":"/api-reference/endpoint/list-check-run-agent-billing-summaries"}]},{"group":"S3 exports","root":{"title":"S3 exports","href":"/s3-exports"},"pages":[{"title":"Export schema","href":"/s3-exports/format"}]}]},{"group":"Workspace","pages":[{"title":"Workspace settings","href":"/settings"},{"title":"Enterprise Managed Users","href":"/github-enterprise-login"},{"title":"GitHub IP allow lists","href":"/github-ip-allow-list"},{"title":"Cancellation","href":"/cancel-subscription"}]},{"group":"Resources","pages":[{"title":"Murmur","href":"/murmur"},{"title":"Support","href":"/contact"},{"title":"Release notes","href":"/changelog"}]}]}]},"title":"List daily billing usage - Macroscope","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","Page-R3M_BF4L.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js"]}