Skip to content
POST /webhook-event/resend

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
curl -X POST 'https://api.truto.one/webhook-event/resend' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "environment_id": "your_environment_id",
  "ids": [],
  "webhook_id": "your_webhook_id",
  "integrated_account_id": "your_integrated_account_id",
  "event": "integrated_account:created",
  "created_at": {},
  "next_cursor": "your_next_cursor"
}'
const body = {
  "environment_id": "your_environment_id",
  "ids": [],
  "webhook_id": "your_webhook_id",
  "integrated_account_id": "your_integrated_account_id",
  "event": "integrated_account:created",
  "created_at": {},
  "next_cursor": "your_next_cursor"
};

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 = {
    "environment_id": "your_environment_id",
    "ids": [],
    "webhook_id": "your_webhook_id",
    "integrated_account_id": "your_integrated_account_id",
    "event": "integrated_account:created",
    "created_at": {},
    "next_cursor": "your_next_cursor"
}

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