Management
A runtime key's spend against its governing policy
Authorization
managementKey AuthorizationBearer <token>
An issued management key (sk-dz-…). One credential type across inference and management: scopes are properties of the issued key, set at issue time — keys:read, keys:write, usage:read, models:read. A key issued with no scopes holds all four. Each operation declares its required scope as x-required-scope.
In: header
Path Parameters
key_id*string
A runtime key id.
Response Body
application/json
curl -X GET "https://example.com/api/v1/keys/string/usage"{ "policy_id": "string", "source": "string", "active": true, "counter_scope": "string", "pooled": true, "limit_micro_usd": 0, "window_start": "2019-08-24T14:15:22Z", "reset": "2019-08-24T14:15:22Z", "window_unbounded": true, "bucket_spent_micro_usd": 0, "bucket_as_of": "2019-08-24T14:15:22Z", "principal_spent_micro_usd": 0, "principal_spent_from": "2019-08-24T14:15:22Z", "principal_spent_complete": true, "remaining_micro_usd": 0, "queried_at": "2019-08-24T14:15:22Z"}