Resend failed webhook events
/webhook-event/resend
Request Body
Resend the failed events created in this window.
Created after this time (ISO 8601, compared to the second).
Created before this time (ISO 8601, compared to the second).
The environment whose events to resend. Required when you call with a dashboard session; an API token uses its own environment.
Resend the failed events of this type.
integrated_account:createdThe events to resend, in this order. Ones that are not failed are skipped.
Resend the failed events about this integrated account.
The next_cursor of the previous call with the same ids or filters.
Resend the failed events for this webhook.
Response Body
Whether more of the events you selected are still to be resent.
truePass this with the same ids or filters to carry on; null when has_more is false.
How many failed events this call sent back to pending.
1000curl -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())