Get a campaign run's costs
GET/run/:id/costs
Returns what each attack run of a campaign run spent: model calls by role (target, attacker, judge), the target's tokens, elapsed time and the target's latency, with per-goal samples (calls and time to the first jailbreak). Accepts a login token or an API key (not a run token). Every response has a weak ETag: send it back as If-None-Match to get 304 without a body while nothing changed.
Request
Responses
- 200
- 304
- 400
- 401
- 403
- 404
- 429
OK
The If-None-Match ETag still holds.
Invalid query parameter.
Missing, invalid, expired or revoked credential, or a credential this endpoint does not accept.
The credential may not do this: for example a run token outside its own run, or a caller without an organization.
Not a visible campaign run.
Rate limited: retry after the number of seconds in the Retry-After header.