BillOS v1
Console llms.txt OpenAPI
GET/requests

Your recent requests

GET /requests

Requires the businesses scope.

The request log: every call made with your key over the last days (7 by default), newest first, with the status it got, how long it took and the X-Request-Id it carried. No bodies and no headers are kept. Page back with before (the last row's at).

Query parameters

NameTypeDescription
statusstringerror = 4xx/5xx only, ok = 2xx/3xx only. One of: ok, error.
endpointstringOne route pattern, as GET /usage lists them (e.g. POST /businesses/:bid/documents).
businessIdstringOnly calls under one business.
methodstringOnly calls with this HTTP method. One of: GET, POST, PATCH, PUT, DELETE.
reasonstringOnly errors with this reason (e.g. validation), as GET /errors groups them.
sourcestringOnly calls from one kind of client (see source on a row). One of: sdk, python, cli, curl, browser, other.
requestIdstringRequests whose id starts with this (the first characters of an X-Request-Id are enough).
beforestringTime cursor: requests strictly before this instant.
limitintegerDefault 50.

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
requestsarray of ApiRequestrequired

Errors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).

GET /requests
curl -X GET "$BASE/requests?status=&endpoint=&businessId=" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/requests`, {
  method: 'GET',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.get(
    f"{BASE}/requests",
    headers={"X-Api-Key": KEY},
)
data = res.json()
Set BASE to https://api.billos.co.il/v1 and KEY to your bk_live_… key, or a bk_test_… key to run it against the sandbox.
Manage your businesses, keys and webhooks in the BillOS Console.