Skip to content

Truto sends a signed POST to your HTTPS endpoint when something happens in your environment: an account connects, a sync job run finishes, or a record changes in a connected app (record:* events).

Skip the reading — fast path for coding agents
CLI
truto webhooks list -o json
Skill
View truto skill on GitHub Cursor / Claude Code: /skill truto

Webhooks API reference

Webhook endpoints

A webhook receives every event of the types it subscribes to, for every integrated account in its environment. To act on one account, check it in your handler: payload.id on integrated_account:* events, and payload.integrated_account_id on record:* events and on the sync_job_run:* events of runtime versions 1 to 3 (a version 4 run carries its account in payload.args). On record:* events, payload.resource names the unified resource.

HTTPS and POST

The endpoint must be a public https:// URL that accepts POST. Truto refuses (400) a URL that uses http, includes a username or password, or points at localhost or a private IP address.

Register the exact URL your endpoint answers on. Truto follows redirects, but a 301, 302 or 303 turns the request into a GET without the event body, and a 2xx to that GET counts as delivered. If you must redirect, use 307 or 308.

Each environment has a limit on the number of webhooks it can hold. Creating one past the limit returns a 400 error.

Security

SHA256 Signature

Every request made to a webhook endpoint has an X-Truto-Signature header which contains the SHA256 HMAC of the request body being sent. This helps you make sure that the requests are originating from Truto. The SHA256 HMAC uses a secret string (UUID) which is shared with you when the webhook is created. See creating webhook endpoint.

Retries and resends of an event carry the same id, created_at and payload as its first attempt. Store the ids you've processed and drop repeats; this also stops replays. Don't reject events by the age of created_at: retries arrive up to 5 minutes late, and events you resend can be up to 30 days old. Events a runtime version 1 sync job run sends to its own webhook are the exception: each attempt gets a new id.

See verifying webhook events

Retries

Webhook endpoints need to respond with any 2XX status code. Truto makes up to five delivery attempts: one immediately, then retries after 30 seconds, 1 minute, 1.5 minutes, and 2 minutes, all inside a five-minute window. After the last attempt the event is marked failed, and you can resend it for 30 days.

Network errors and other non-2XX responses are retried. 400, 404, and 413 responses are treated as permanent and are not retried.

Events a sync job run sends to its own webhook take a shorter path. That webhook is the run's webhook_id on runtime versions 1 to 3, or a webhook destination on version 4. Each delivery gets four attempts a few seconds apart while the run waits. There are no later retries, and these events don't appear in webhook event history. Every other sync_job_run:* event goes to each webhook subscribed to it, with the retries above. That includes sync_job_run:created, :updated and :deleted, and the events of a run with no webhook of its own (on version 1, only a super_query run sends these).

Find and resend failed events

Truto keeps each event it sends to your webhooks for 30 days after it's delivered or fails. To see what your endpoint missed, list failed events with GET /webhook-event?status=failed. After an outage, resend them with POST /webhook-event/resend. A resent event keeps its id and body, so drop any you already processed.

curl -G "https://api.truto.one/webhook-event" \
  -H "Authorization: Bearer <API token>" \
  --data-urlencode "status=failed" \
  --data-urlencode "webhook_id=<webhook_id>" \
  --data-urlencode "created_at[gt]=2026-11-18T09:00:00Z"
 
curl -X POST "https://api.truto.one/webhook-event/resend" \
  -H "Authorization: Bearer <API token>" \
  -H "Content-Type: application/json" \
  -d '{ "webhook_id": "<webhook_id>", "created_at": { "gt": "2026-11-18T09:00:00Z" } }'

A resend selects failed events by ids (up to 1,000) or by filters, not both, and sends up to 1,000 of them per call, oldest first. When the response has "has_more": true, call again with the same ids or filters and the next_cursor it returned. While 1,000 or more of the environment's events are waiting to be sent, it answers 429 with Retry-After: 60. To export events, page through GET /webhook-event with next_cursor until it is null.

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, so a busy environment keeps less than 30 days. These aren't kept:

  • a delivered sync_job_run:record event (a failed one is kept and can be resent)
  • events a sync job run sends to its own webhook, including file contents
  • an event sent while a sync job run waits on it that your endpoint answers with 400, 404 or 413
  • test events
  • events sent before event history was added in November 2026

Turning a webhook off, or deleting it, deletes its events: queued retries, failed events and delivered history. Turning it back on doesn't bring them back, so resend any failed events you need first.

See the List webhook events and Resend failed webhook events API references.

Logging

Every webhook delivery is logged. View deliveries in the dashboard under Logs → Webhook, or fetch them with GET /log?log_type=webhook.

Next

Create a webhook through the API or in the dashboard. Event types lists every event Truto sends, and Processing webhook events shows how to verify and handle them.