List webhook endpoints
GET
/webhooks
const url = 'https://api.vaartix.com/webhooks';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 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Your team’s endpoints. Signing secrets are not included.
Media typeapplication/json
object
data
required
Array<object>
object
id
string
url
string format: uri
events
Array<string>
status
Endpoints are turned off automatically after 5 deliveries in a row fail every attempt.
string
createdAt
string format: date-time
Example
{ "data": [ { "id": "wh_4n8x2k7q1m9c3v5d", "events": [ "email.sent" ], "status": "enabled" } ]}unauthorized: the API key is missing, invalid or revoked.
Media typeapplication/json
object
error
required
object
type
required
Stable, machine-readable error type.
string
message
required
Human-readable explanation, safe to show to developers.
string
Example
{ "error": { "type": "validation_error" }}forbidden: the key cannot do this, for example a send-only key on a management endpoint.
Media typeapplication/json
object
error
required
object
type
required
Stable, machine-readable error type.
string
message
required
Human-readable explanation, safe to show to developers.
string
Example
{ "error": { "type": "validation_error" }}