Skip to content
GET /webhook-event

Lists the events Truto sent, is sending or failed to send to the webhooks of one environment, newest first, each with the body that was or will be sent. Use it to see what your endpoint missed, or to export events: page with next_cursor until it is null.

An event is kept for 30 days after it is delivered or fails. An environment keeps about its newest 100,000 delivered events, up to 1 GB of their payloads, and about its newest 25,000 failed events. Past those, the oldest go first, so a busy environment keeps less than 30 days of delivered events. A delivered event is kept even though your endpoint accepted it, because a 2xx does not prove you processed it. Deactivating or deleting a webhook deletes its events.

Not listed:

  • a delivered sync_job_run:record event (a failed one is listed and can be resent);

  • events a sync job run sends to its own webhook (the run's webhook_id), which the run delivers itself, and file pages;

  • an event sent while a sync job run waits on it that your endpoint answers with 400, 404 or 413;

  • test events from POST /webhook/test;

  • events delivered before this endpoint existed.

A page holds at most limit events and about 4 MB of payloads, so a page of large events can hold fewer.

Query Parameters

environment_idstring · uuid

The environment whose events to list. Required when you call with a dashboard session; an API token uses its own environment.

webhook_idstring · uuid

Only events for this webhook.

integrated_account_idstring · uuid

Only events about this integrated account.

eventstring

Only events of this type.

Example: integrated_account:created
statusstring

Only events in this state.

Possible values:
pendingfaileddelivered
created_atobject

A window on when the events were created, created_at[gt] and created_at[lt].

Example: {"gt":"2026-11-01T00:00:00Z"}
gtstring · date-time

Only events created after this time (ISO 8601, compared to the second).

ltstring · date-time

Only events created before this time (ISO 8601, compared to the second).

limitinteger

The most events to return.

next_cursorstring

The next_cursor from the previous page.

Response Body

limitnumber
next_cursorstring

Pass this as next_cursor for the next page; null on the last page.

resultobject[]
attemptsinteger

Delivery attempts since the event was created or last resent.

Example: 1
created_atstring · date-time

When Truto stored the event, to the second.

Example: 2026-11-09T10:00:00.000Z
delivered_atstring · date-time

When your endpoint accepted the event.

Example: 2026-11-09T10:00:01.000Z
endpoint_statusinteger

The HTTP status your endpoint answered on the last attempt. Null when it did not answer (a timeout or a connection error) or no attempt has been made.

Example: 200
eventstring

The event type.

Example: integrated_account:created
failed_atstring · date-time

When the event was marked failed.

idstring · uuid

The event's ID, the same id your endpoint receives in the payload. A resend keeps it, so you can deduplicate on it.

Example: 6f1c1d4e-8a1b-5c2d-9e3f-4a5b6c7d8e9f
integrated_account_idstring · uuid

The integrated account the event is about, when it is about one. Null for events stored before this field existed.

Example: 94801e49-a652-42f9-af14-dd203d7897da
last_errorstring

Why the last attempt failed. Null once the event is delivered.

Example: Webhook endpoint returned 503
payloadRecord<string, any>

The event as it was or will be sent: the JSON body your endpoint receives. An event that carries a file, such as a sync job run's file page, reaches your endpoint as multipart/form-data with these values as form fields. X-Truto-Signature signs the body with the webhook's secret at the time it is sent.

statusstring

pending: waiting for its first attempt, a retry, or a resend. failed: it was not delivered: every attempt failed, its five-minute retry window ran out, or your endpoint answered 400, 404 or 413, which are not retried. You can resend it. delivered: your endpoint answered with a 2xx.

Example: delivered
Possible values:
pendingfaileddelivered
webhook_idstring · uuid

The webhook the event is for.

Example: 4a4de828-f4db-4c9e-adfd-434e0864c3c7

Errors

StatusDescription
400An invalid or unknown filter, an invalid next_cursor, or no environment_id from a dashboard session. The message says which.
403The caller cannot reach environment_id.
503The environment's events are not ready to list yet: Truto prepares them once, usually within a minute of the first request, or its event storage is full. Try again after Retry-After seconds.
curl -X GET 'https://api.truto.one/webhook-event' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/webhook-event', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/webhook-event"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())