For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhooks

Manage webhook endpoints

Configure webhooks to receive real-time notifications about events in your Mailtrap account. For a complete guide, see Webhooks.

List webhooks

get

Returns all webhooks for the account.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Responses
200

List of webhooks

application/json
get/api/webhooks
cURL

Create a webhook

post

Create a new webhook for the account. The response includes a signing_secret that is used to verify webhook signatures.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Body
Responses
200

Webhook created successfully

application/json
post/api/webhooks
cURL

Get a webhook

get

Returns a single webhook by ID.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
webhook_idintegerRequired

Webhook ID

Example: 1
Responses
200

Webhook details

application/json
get/api/webhooks/{webhook_id}
cURL

Delete a webhook

delete

Permanently delete a webhook.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
webhook_idintegerRequired

Webhook ID

Example: 1
Responses
200

Webhook deleted successfully

application/json
delete/api/webhooks/{webhook_id}
cURL

Update a webhook

patch

Update an existing webhook.

Authorizations
Api-TokenstringRequired

API token in Api-Token header

Path parameters
webhook_idintegerRequired

Webhook ID

Example: 1
Body
Responses
200

Webhook updated successfully

application/json
patch/api/webhooks/{webhook_id}
cURL

Last updated

Was this helpful?