Configs and Profiles

Get agent profile usage

Changed on

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.

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

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session

Path parameters

orgID, string required

Organization ID (org_...).

projectID, string required

Project ID (proj_...).

agentProfileID, string required

Agent profile ID (aprf_...).

Query parameters

since, string date-time

Only tally model calls started at or after this instant. Omit to start from the earliest recorded call.

until, string date-time

Only tally model calls started before this instant. Must be later than since when both are given. Omit to include calls up to now.

include_subagents, boolean

Also include usage from subagents spawned, at every depth, by agents launched from this profile. Defaults to false.

Response

Usage totals for the agent profile.

UsageReport required
totals, UsageTotals 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.

Changes

    • info

      added the required property by_model/items/cost/effective_usd to the response with the status

    • info

      added the required property by_model/items/cost/model_calls_with_effective_cost to the response with the status

    • info

      added the required property totals/cost/effective_usd to the response with the status

    1 more change in this revision