---
title: "Get agent profile usage"
method: GET
path: "/orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}/usage"
tags: ["Configs and Profiles"]
---

# Get agent profile usage

`GET /orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}/usage`

## Request

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

Tallies model token usage and cost across the top-level agents launched from this profile, broken down by configured model. Usage from subagents those agents spawned is included only when `include_subagents` is true. Optionally limits the tally to a time window.

## Path parameters

- `orgID` string, required
- `projectID` string, required: Project ID (proj_...).
- `agentProfileID` string, required

## Query parameters

- `since` string, date-time
- `until` string, date-time
- `include_subagents` boolean

## Response `200`

Usage totals for the agent profile.

- UsageReport
  - `totals` UsageTotals, required
    - `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
  - `by_model` ModelUsageTotals[], required: Per-model rows ordered by provider config name, configured model name, then provider model slug. Models with distinct provider slugs across revisions appear once per slug.
    - `model` UsageModel, required
      - `configured_model_id` string, required
      - `name` string, required: Configured model name, resolved even if the model has since been deleted.
      - `provider_model_slug` string, required
      - `model_provider_config_id` string, required
      - `model_provider_config_name` string, required: Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
    - `model_calls` integer, required
    - `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

## Other responses

- `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`: 4 info
  - added the required property `by_model/items/cost/effective_usd` to the response with the `200` status
  - added the required property `by_model/items/cost/model_calls_with_effective_cost` to the response with the `200` status
  - 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-05** `3d9e2cf46e07`: 113 info
  - added the optional property `current_digest` to the response with the `401` status
  - added the optional property `current_digest` to the response with the `403` status
  - added the optional property `current_digest` to the response with the `404` status
  - added the optional property `current_digest` to the response with the `503` status
  - …109 more
  - …this revision’s changelog is incomplete
- **2026-09-28** `acddeb8fc6a5`: 5 warning, 5 info
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `404`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `4XX`
  - …6 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/projects/:projectID/agent-profiles/:agentProfileID/usage/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)
