List deliveries
const url = 'https://api.vaartix.com/webhooks/wh_4n8x2k7q1m9c3v5d/deliveries?limit=50';const options = {method: 'GET', 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 GET \ --url 'https://api.vaartix.com/webhooks/wh_4n8x2k7q1m9c3v5d/deliveries?limit=50' \ --header 'Authorization: Bearer <token>'The most recent deliveries to this endpoint, newest first, with your server’s response.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
wh_4n8x2k7q1m9c3v5dQuery Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Deliveries.
object
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
{ "data": [ { "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" }}