Skip to main content
GET
Get a crew's usage

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

template_id
string<uuid>
required

ID of the crew template.

Query Parameters

days
integer
default:30

How many days back to count.

Required range: 1 <= x <= 365

Response

Successful Response

What a crew's runs cost over a period (model calls only).

days
integer
required
runs
integer
default:0
tokens
integer
default:0
tokens_in
integer
default:0
tokens_out
integer
default:0
est_cost
number | null

Null when no run in the period had a price.

cost_per_run
number | null
cost_failed
number | null

The part of the cost spent on unsuccessful runs.

duration_p50_s
number | null
duration_p90_s
number | null