---
title: "Get usage timeseries"
method: GET
path: "/orgs/{orgID}/usage/timeseries"
tags: ["Organizations and Projects"]
---

# Get usage timeseries

`GET /orgs/{orgID}/usage/timeseries`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/usage/timeseries`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session`

Buckets model usage over time for one metric, optionally broken down by configured model or agent profile. Covers every project the caller can read in the organization; `project_ids` and `agent_profile_ids` narrow that scope. Buckets are calendar days, weeks (starting Monday), or months in `timezone`.

## Path parameters

- `orgID` string, required

## Query parameters

- `since` string, date-time
- `until` string, date-time
- `timezone` string
- `interval` 'hour' | 'day' | 'week' | 'month'
- `metric` 'sum_tokens' | 'sum_input_tokens' | 'sum_output_tokens' | 'sum_cost' | 'count_model_calls': `sum_tokens` is input plus output tokens. `sum_cost` is cost in USD: the model's own pricing when set, otherwise the provider-reported cost, otherwise a list-price estimate; calls that could not be priced contribute nothing. `count_model_calls` counts model calls that recorded usage.
- `group_by` 'model' | 'profile'
- `group_limit` integer
- `project_ids` ProjectID[]
- `agent_profile_ids` AgentProfileID[]
- `include_subagents` boolean

## Response `200`

Usage timeseries.

- UsageTimeseries
  - `metric` 'sum_tokens' | 'sum_input_tokens' | 'sum_output_tokens' | 'sum_cost' | 'count_model_calls', required: `sum_tokens` is input plus output tokens. `sum_cost` is cost in USD: the model's own pricing when set, otherwise the provider-reported cost, otherwise a list-price estimate; calls that could not be priced contribute nothing. `count_model_calls` counts model calls that recorded usage.
  - `interval` 'hour' | 'day' | 'week' | 'month', required
  - `group_by` 'model' | 'profile'
  - `timezone` string, required: IANA time zone the buckets follow.
  - `bucket_starts` Timestamp[], required: Start of each bucket in `timezone`, oldest first, including buckets without usage. The first bucket starts at the beginning of the interval containing `since`, but only usage at or after `since` counts.
  - `until` string, date-time, required: End of the window; usage at or after this instant is excluded.
  - `totals` UsageTotals, required: All usage in the window, regardless of `metric` and `group_by`.
    - `model_calls` integer, required: Model calls that recorded token usage or a provider-reported cost.
    - `tokens` UsageTokenTotals, required: Summed token counts across the tallied model calls. Input totals are the sum of uncached, cache-read, and cache-write tokens; output totals include reasoning tokens.
      - `input_tokens_total` integer, required
      - `uncached_input_tokens` integer, required
      - `cache_read_input_tokens` integer, required
      - `cache_write_input_tokens` integer, required
      - `output_tokens_total` integer, required
      - `reasoning_output_tokens` integer, required
    - `cost` UsageCostTotals, required
      - `provider_reported_usd` string, required: Exact decimal sum in USD of the costs the provider reported for the tallied model calls. Calls whose provider reported no cost contribute nothing; compare model_calls_with_reported_cost against model_calls to see how complete the figure is.
      - `model_calls_with_reported_cost` integer, required
      - `effective_usd` string, required: Decimal sum in USD of the cost Omnara counts for each tallied model call: the model's own pricing when set, otherwise the provider-reported cost, otherwise a list-price estimate. Calls that could not be priced contribute nothing; compare model_calls_with_effective_cost against model_calls to see how complete the figure is.
      - `model_calls_with_effective_cost` integer, required
  - `active_agents` integer, required: Agents, not counting subagents, that made at least one model call in the window.
  - `series` UsageTimeseriesSeries[], required: Without `group_by`, a single `all` series. With it, one series per ranked group, most first, then an `other` series when usage remains.
    - `kind` 'all' | 'model' | 'profile' | 'no_profile' | 'other', required: `no_profile` groups usage from agents launched without a profile; `other` folds together every group beyond `group_limit`.
    - `id` string: Configured model ID for `model` series, agent profile ID for `profile` series.
    - `name` string: Configured model or agent profile name, resolved even if it has since been deleted. Present with `id`.
    - `model_provider_config_name` string: Name of the configured model's provider config, so same-named models can be told apart. Present on `model` series.
    - `project_name` string: Name of the agent profile's project, so same-named profiles in different projects can be told apart. Present on `profile` series.
    - `total` number, double, required: Metric over the whole window.
    - `values` number[], required: Metric in each bucket, aligned with `bucket_starts`.

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-11-24** `69f93619121b`: 2 info
  - added the required property `totals/cost/effective_usd` to the response with the `200` status
  - added the required property `totals/cost/model_calls_with_effective_cost` to the response with the `200` status
- **2026-10-06** `0a5562d0d229`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/usage/timeseries/get.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
