BillOS v1
Console llms.txt OpenAPI
GET/events

The event log

GET /events

Requires the businesses scope.

Everything that happened under your key, newest first, whether or not a webhook was subscribed at the time. The place to reconcile after an outage on your side: page back with before, act on what you missed. Kept for the same retention as deliveries (30 days by default). With a Connect access token, the connected business's events only: also where an automation platform reads sample data for a trigger.

Query parameters

NameTypeDescription
businessIdstringOnly one business under your key.
eventstringOnly one event type. One of: document.issued, document.pdf_ready, document.allocation_assigned, document.paid, expense.recorded, export.completed, recurring.ran, quote.sent, quote.accepted, quote.declined, business.status_changed, connection.created, connection.revoked, ita.connected, ita.disconnected, ita.expiring, ita.expired.
beforestringTime cursor: events created strictly before this instant. Page by passing the last row's createdAt.
limitintegerDefault 50.

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
eventsarray of Eventrequired

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