API reference · API
This key's account's payments
GET/v1/pay/paymentsAPI key
Newest first; on an agent's key, the agent's own. Needs the pay or the read scope.
Parameters
| Field | Type | What it is |
|---|---|---|
| limit (query) | integer | From 1 to 500. |
| before (query) | integer | Unix ms. |
Answer 200
The payments.
| Field | Type | What it is |
|---|---|---|
| object | string | |
| data | array of object | |
| data[] | string | pay_ and 24 hex digits. |
| data[] | string | refused: the terms or the rules said no and nothing was signed. unconfirmed: the signed authorization went to the service and the chain has not yet said whether it moved; the charge is held. paid: the chain shows it moved, charged once. not_paid: it lapsed unused and the hold was released. paid_unverified: its chain could not be read for three days, so it was charged its hold. One of "refused", "signing", "unconfirmed", "paid", "paid_unverified", "not_paid". |
| data[] | string | |
| data[] | integer or null | |
| data[] | string or null | CAIP-2, such as eip155:8453. |
| data[] | integer | What the service was paid, micro USD. |
| data[] | integer | What the balance was charged; 0 until paid. |
| data[] | integer | |
| data[] | integer | |
| data[] | string or null | |
| data[] | string or null | The transaction on the chain's explorer. |
| data[] | integer or null | |
| data[] | string or null | |
| data[] | integer | |
| data[] | integer or null |
Errors
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI 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.