Skip to content
POST /webhook-event/resend

Sends failed events again with the same id and body, so your endpoint can deduplicate them. X-Truto-Signature is computed with the webhook's current secret, so it differs from the first send if the secret has changed since; a form-data event also gets a new multipart boundary. Each event goes back to pending and waits behind new events, so a large resend never delays live delivery. It is then tried once more, and retried like a new event: up to 5 attempts over the 5 minutes after that first attempt. When it is delivered it leaves the failed list and is listed as delivered (a sync_job_run:record event is removed instead). If its webhook is no longer active, it fails again without being sent. Pending and delivered events are never resent.

Name the events by ids, or select them with filters, not both. One of them is required. A call resends failed events oldest first, up to 1,000 of them and about 64 MB of their bodies. While 1,000 or more events of the environment are waiting to be sent, it answers 429: wait Retry-After seconds. When has_more is true, call again with the same ids or filters and the next_cursor it returned; the cursor carries on after the events already resent, so one that has failed again since is not sent twice.

Request Body

created_atobject

Resend the failed events created in this window.

gtstring · date-time

Created after this time (ISO 8601, compared to the second).

ltstring · date-time

Created before this time (ISO 8601, compared to the second).

environment_idstring · uuid

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

eventstring

Resend the failed events of this type.

Example: integrated_account:created
idsstring[]

The events to resend, in this order. Ones that are not failed are skipped.

integrated_account_idstring · uuid

Resend the failed events about this integrated account.

next_cursorstring

The next_cursor of the previous call with the same ids or filters.

webhook_idstring · uuid

Resend the failed events for this webhook.

Response Body

has_moreboolean

Whether more of the events you selected are still to be resent.

Example: true
next_cursorstring

Pass this with the same ids or filters to carry on; null when has_more is false.

resentinteger

How many failed events this call sent back to pending.

Example: 1000

Errors

StatusDescription
400No ids or filters, both, an invalid or unknown field, an invalid next_cursor, or no environment_id from a dashboard session. Nothing is resent.
403The caller cannot reach environment_id.
4291,000 or more events of the environment are waiting to be sent, so nothing was resent. Try again after Retry-After seconds.
503A resend by filters needs the same preparation as the list (see GET /webhook-event). Try again after Retry-After seconds. A resend by ids does not.
507The environment's event storage filled up during the call. The message says how many events were resent before it stopped. Try again later.
curl -X POST 'https://api.truto.one/webhook-event/resend' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "webhook_id": "4a4de828-f4db-4c9e-adfd-434e0864c3c7",
  "created_at": {
    "gt": "2026-11-08T00:00:00Z"
  }
}'
const body = {
  "webhook_id": "4a4de828-f4db-4c9e-adfd-434e0864c3c7",
  "created_at": {
    "gt": "2026-11-08T00:00:00Z"
  }
};

const response = await fetch('https://api.truto.one/webhook-event/resend', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

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

url = "https://api.truto.one/webhook-event/resend"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}
payload = {
    "webhook_id": "4a4de828-f4db-4c9e-adfd-434e0864c3c7",
    "created_at": {
        "gt": "2026-11-08T00:00:00Z"
    }
}

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