Get the cost report
⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/organizations/cost_reportReturn spending in US dollars per UTC day, by workspace and line item. Plan-covered usage appears with billing_source: "subscription" and an amount of zero, so you see both what was used and what was paid. A day’s figures are final 24 hours after it ends; summing a month matches that month’s usage-credit charges to within a cent per line.
For how this fits into a full workflow, see Cost report.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <admin key>: an Admin API key (sk_admin_...). Inference keys are refused with 403 admin_key_required. See Admin API keys. |
syntic-beta | Yes, while in preview | admin-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
starting_at | RFC 3339 time | Required | First day, at midnight UTC. |
ending_at | RFC 3339 time | now | Exclusive end. |
group_by[] | string | workspace_id, description, model, billing_source. Repeatable. | |
workspace_ids[] | string | Only these workspaces. | |
limit | integer | 7 | Days per page, 1 to 31. |
after_id | string | Next page. | |
before_id | string | Previous page. |
Response
200 OK, Content-Type: application/json
{
"data": [
{
"starting_at": "2026-11-04T00:00:00Z",
"ending_at": "2026-11-05T00:00:00Z",
"results": [
{
"workspace_id": "wrkspc_01JC0A2C4E6G8J0L2N4Q",
"description": "Amara S1.2 output tokens",
"line_item": "tokens.output",
"model": "Amara S1.2",
"billing_source": "api_credit",
"quantity": "1204011",
"unit": "token",
"amount_usd": "14.4481"
},
{
"workspace_id": "wrkspc_01JC0A2C4E6G8J0L2N4Q",
"description": "Web search",
"line_item": "server_tool.web_search",
"model": null,
"billing_source": "api_credit",
"quantity": "412",
"unit": "search",
"amount_usd": "4.1200"
}
]
}
],
"has_more": false,
"first_id": "bkt_01JC7A0B2C4D6E8F",
"last_id": "bkt_01JC7A0B2C4D6E8F"
}| Field | Type | Description |
|---|---|---|
results[].line_item | string | Stable machine name such as tokens.output, server_tool.web_search or batch.tokens.input. New items appear as features ship. |
results[].quantity | string | Amount used, as a decimal string, in unit. |
results[].amount_usd | string | Cost with four decimal places. |
Examples
curl -sS "https://app.syntic.ai/v1/organizations/cost_report?starting_at=2026-11-01T00%3A00%3A00Z&group_by%5B%5D=workspace_id&group_by%5B%5D=description&limit=31" \
-H "Authorization: Bearer $SYNTIC_ADMIN_KEY" \
-H "syntic-beta: admin-2026-11-01"Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 400 | invalid_request_error | invalid_time_range | starting_at missing, after ending_at, or outside the data available for the bucket width. |
| 400 | invalid_request_error | invalid_group_by | Unknown grouping dimension. |
| 401 | authentication_error | invalid_api_key | The admin key is missing, unknown, revoked or expired. |
| 403 | permission_error | admin_key_required | An inference key was used. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Not included
Plan subscription fees, credit purchases, taxes and refunds are on your invoices in the Console’s Billing page, not in this report.
Related
Was this page helpful?