Export team usage metrics
Changed onExport stored team usage metrics as JSON or CSV. Historical data remains available when verification is missing or stale. reportingCoverage lists each UTC day as verified, unverified, stale, or live; totals are verified, partial, or provisional. Partial totals include all stored values but may be incomplete or outdated; missing unverified days do not establish zero usage. Today is live and provisional. CSV includes equivalent verification columns. The "pure cost" field is usage credits multiplied by the current active contract's credit_overage_rate in USD; it is a usage valuation at that rate, not an invoice total or provider cost. All viewers with usage metrics access receive dollar values when a valid contract rate is available. When there is no active contract or its rate is missing or non-positive, exports return credit metrics and omit dollar values. Usage Metrics in Shortcut provides a prefilled request with your team_id; use these query parameters to customize the date range, output format, and optional platform grouping. API keys must belong to a user with usage metrics access for the requested team or organization.
Request
- Base URLhttps://api.shortcut.ai (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Query parameters
With report=work, include retained execution details in JSON or export one CSV row per execution group. Includes current conversation titles and associated file IDs only with prompt-history permission and verified scope. Current workbook filenames are separately resolved under scoped metadata authority; workbook content and download access are not granted.
Team or organization ID to export. Required for API-key integrations. Usage Metrics shows a prefilled request for the current organization.
Relative date range when explicit dates are omitted. all starts at the later of usage tracking or team creation, while preserving any older stored usage.
YYYY-MM-DD. Must be provided together with end_date; takes precedence over period.
YYYY-MM-DD. Must be provided together with start_date; takes precedence over period.
IANA timezone used to resolve relative periods and day boundaries.
Response format.
summary exports per-member totals; daily exports member usage by day. work returns deterministic gross metered credits grouped by explicit work reference and workflow category, in JSON or CSV.
Work report platform filter.
Work report reference UUID, or unassigned.
Exact work report category filter.
Expected work report revision. A changed source or attribution returns 409.
JSON only. Add platform usage breakdowns to the response.
Response
Default Response
Changes
- info
added the new optional
queryrequest parameterdetail - info
added the new optional
queryrequest parameterplatform - info
added the new optional
queryrequest parameterrevision - info
added the new optional
queryrequest parameterwork_reference_id - info
added the new optional
queryrequest parameterworkflow_category - info
added the new enum value
workto thequeryrequest parameterreport
- info