BillOS v1
Console llms.txt OpenAPI
GET/requests/{requestId}

One request by its id

GET /requests/{requestId}

Requires the businesses scope.

The request log's row for one call, looked up by the X-Request-Id its response carried (or the request_id of an error body). On an error, guide says what its reason means and what to change. No bodies are kept, so none are returned.

Path parameters

NameTypeDescription
requestIdstringrequired

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
requestApiRequestrequiredOne call made with your key, as the request log recorded it.
guideErrorGuideWhat an error reason means and what to change, from the same table the API answers errors with (the Errors page).

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/{requestId}
curl -X GET "$BASE/requests/{requestId}" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/requests/{requestId}`, {
  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/{requestId}",
    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.