List bills and funding records
Required permission: billing:read. Authenticate with an OpenAPI Key bound to the target workspace using Authorization: Bearer <OpenAPI Key>.
Query Parameters
- Type: stringtype
- Type: stringfrom
An RFC3339 timestamp or YYYY-MM-DD date (UTC).
- Type: stringto
RFC3339 is an exclusive end time. YYYY-MM-DD includes that day and is interpreted in UTC.
- Type: integerpagemin:1
Integer numbers.
- Type: integerpage
_size min:1max:100Integer numbers.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/v1/bills
curl 'https://openapi.apigo.ai/v1/bills?type=&from=2026-01-01T00%3A00%3A00Z&to=2026-01-08T00%3A00%3A00Z&page=1&page_size=20' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"code": 0,
"message": "string",
"data": {
"items": [
{
"id": "string",
"time": "2026-10-19T02:14:25.575Z",
"type": "string",
"amount_usd": 1,
"balance_after_usd": 1,
"billing_day": "2026-10-19",
"timezone": "string",
"invoice_id": "string",
"status": "string",
"note": "string",
"source": "string",
"source_ref": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
}
}