BillOS v1
Console llms.txt OpenAPI
POST/webhooks/{id}/replay

Replay a time range

POST /webhooks/{id}/replay

Requires the businesses scope.

Queues a new delivery for every event in [from, to) this endpoint would have received (its own event and business filters apply; events / businessId narrow further). Reads the event log, so it also covers events the endpoint never had a delivery for (created later, or paused at the time). An event that already has a delivered or pending delivery to this endpoint is skipped unless includeDelivered. For an outage on your side: "we were down from 02:00 to 05:00". Bounded per call (1,000 events); a longer window answers truncated: true with nextFrom to continue from. Refused while the endpoint is paused or auto-disabled.

Path parameters

NameTypeDescription
idstringrequiredWebhook endpoint id.

Body

FieldTypeDescription
fromstringrequiredStart of the window (ISO timestamp, inclusive).
tostringEnd of the window (ISO timestamp, exclusive). Default: now.
eventsarray of stringOnly these event types (within what the endpoint subscribes to).
businessIdstringOnly one business under your key.
includeDeliveredbooleanAlso queue events that already reached this endpoint. Default false.

Response

201: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
queuedintegerrequiredDeliveries created by this call.
skippedintegerrequiredEvents in the window that already had a delivered or pending delivery to this endpoint.
truncatedbooleanrequiredMore events matched than one call queues.
nextFromstringWhen truncated: pass as from to continue.
fromstring
tostring

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).

POST /webhooks/{id}/replay
curl -X POST "$BASE/webhooks/$DOC_ID/replay" \
  -H "X-Api-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "2026-07-01"
  }'
const res = await fetch(`${BASE}/webhooks/${DOC_ID}/replay`, {
  method: 'POST',
  headers: {
    'X-Api-Key': KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "from": "2026-07-01"
  }),
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.post(
    f"{BASE}/webhooks/{DOC_ID}/replay",
    headers={"X-Api-Key": KEY},
    json={
      "from": "2026-07-01"
    },
)
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.