Retry a delivery
const url = 'https://api.vaartix.com/webhooks/wh_4n8x2k7q1m9c3v5d/deliveries/whd_8m3k1q7v2c9x4d6p/retry';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vaartix.com/webhooks/wh_4n8x2k7q1m9c3v5d/deliveries/whd_8m3k1q7v2c9x4d6p/retry \ --header 'Authorization: Bearer <token>'Sends the delivery again from the first attempt, with the same webhook-id, so your
server can recognise it. The endpoint must be enabled.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
wh_4n8x2k7q1m9c3v5dExample
whd_8m3k1q7v2c9x4d6pResponses
Section titled “Responses”Queued for sending.
object
Also sent as the webhook-id header.
Your server’s HTTP status on the last attempt, or null if it couldn’t be reached.
The first 2 KB of your server’s response, or the connection error.
object
When the event happened.
object
The address this event is about, for per-recipient events.
object
Event details, such as the bounce type or SMTP response from the mail provider. For email.delivery_delayed it is a DelayedEventDetails, for email.bounced a BouncedEventDetails, for email.opened an OpenedEventDetails, for email.clicked a ClickedEventDetails.
object
Example
{ "type": "email.sent", "status": "pending", "payload": { "type": "email.sent", "data": { "emailId": "em_7hq2kv9xr4m1c8d3", "eventId": "evt_2m9k4q7v1c8x3d6p", "subject": "Your login code" } }}unauthorized: the API key is missing, invalid or revoked.
object
object
Stable, machine-readable error type.
Human-readable explanation, safe to show to developers.
Example
{ "error": { "type": "validation_error" }}forbidden: the key cannot do this, for example a send-only key on a management endpoint.
object
object
Stable, machine-readable error type.
Human-readable explanation, safe to show to developers.
Example
{ "error": { "type": "validation_error" }}not_found: no such resource in your team.
object
object
Stable, machine-readable error type.
Human-readable explanation, safe to show to developers.
Example
{ "error": { "type": "validation_error" }}conflict: the request clashes with the current state, for example too many endpoints.
object
object
Stable, machine-readable error type.
Human-readable explanation, safe to show to developers.
Example
{ "error": { "type": "validation_error" }}