API reference · Agents
List the account's agents
GET/v1/agentsAPI key
An agent is a named sub balance of the account with a key of its own (lib/agents.ts). Money reaches it only by a transfer from the account's own balance, written as two ledger rows that sum to zero; its requests are held and settled against it alone, and when it is empty they are refused with 402 agent_balance_exhausted. Needs a key with the agents scope; an agent's own key is refused.
Answer 200
The agents.
| Field | Type | What it is |
|---|---|---|
| object | string | One of "list". |
| data | array of object | |
| data[] | string | One of "agent". |
| data[] | integer | |
| data[] | string | |
| data[] | string | One of "active", "paused". |
| data[] | integer | Unix seconds. |
| data[] | integer or null | |
| data[] | boolean | |
| data[] | array of string or null | |
| data[] | integer or null | |
| data[] | integer or null | |
| data[] | object or null | |
| data[] | integer | Move at least this much per refill. At least 1. |
| data[] | integer | Never refill more than this per UTC day. At least 1. |
| data[] | string or null | |
| data[] | object or null | |
| data[] | integer | |
| data[] | string | |
| data[] | integer or null | |
| data[] | integer | Spendable: open holds taken off. |
| data[] | integer | |
| data[] | integer | Today's settled spend plus open holds: what the daily cap counts. |
| data[] | integer | |
| data[] | string | One of "USD". |
Errors
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.