API referenceKeys and access
List API keys
API keys for this org (never the secret).
Authorization
bearer AuthorizationBearer <token>
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/keys"{ "items": [ { "object": "api_key", "id": "string", "name": "string", "prefix": "string", "scopes": [ "*" ], "status": "active", "label": "string", "agent_id": "string", "created_at": "2019-08-24T14:15:22Z", "last_used_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "allowed_ips": [ "string" ], "limit_micro": 0, "limit_reset": "day", "usage_micro": 0, "limit_remaining_micro": 0, "secret": "string" } ]}Set a key's credit limit PUT
Cap what one key can spend, resetting daily, weekly, monthly or never. null removes the cap. Calls over the cap fail with budget_blocked.
Set a key's default options PUT
Default ExecutionOptions for one API key, between the preset and the workspace defaults. Send `{}` to clear.