Webhooks
Register, update and delete webhook endpoints that receive Emailchaser events as they happen.
List webhooks
Lists all registered webhook endpoints for the authenticated user's space.
Responses
- 200 List of webhooks · ListWebhooksResponse
- 401 Unauthorized - invalid or missing API key · ErrorUnauthorized
- 500 Failed to retrieve webhooks · ErrorResponse
Fields in the 200 response
- total integerExample:
2 - webhooks array of WebhookResponse
7 fields inside webhooks
- createdAt stringExample:
2024-01-15T10:30:00Z - id integerExample:
123 - isEnabled booleanExample:
true - name stringExample:
LeadCreated webhook - status stringExample:
active - type stringExample:
LeadCreated - url stringExample:
https://hook.make.com/abc123
Request
curl -X GET "https://api.emailchaser.com/r/webhooks" \
-H "Authorization: Bearer $EMAILCHASER_API_KEY"Response
{
"total": 2,
"webhooks": [
{
"createdAt": "2024-01-15T10:30:00Z",
"id": 123,
"isEnabled": true,
"name": "LeadCreated webhook",
"status": "active",
"type": "LeadCreated",
"url": "https://hook.make.com/abc123"
}
]
}Register a webhook
Registers a webhook endpoint that will be called when the given event type occurs (e.g. LeadCreated, CampaignStatusChanged, EmailReply). The URL must use HTTPS. A signing secret is created for the webhook, but the API does not return it. Copy it in the app under Settings, Integrations & API, on the Webhooks tab, where you can also rotate it.
Request bodyJSON · RegisterWebhookRequest
- name string
- type string required
- url string required
Responses
- 201 Webhook registered successfully · RegisterWebhookResponse
- 400 Invalid request body, webhook type or URL · ErrorInvalidWebhookType
- 401 Unauthorized - invalid or missing API key · ErrorUnauthorized
- 500 Failed to register webhook · ErrorFailedToRegisterWebhook
Fields in the 201 response
- message stringExample:
webhook registered successfully - webhook WebhookResponse
7 fields inside webhook
- createdAt stringExample:
2024-01-15T10:30:00Z - id integerExample:
123 - isEnabled booleanExample:
true - name stringExample:
LeadCreated webhook - status stringExample:
active - type stringExample:
LeadCreated - url stringExample:
https://hook.make.com/abc123
Request
curl -X POST "https://api.emailchaser.com/r/webhooks" \
-H "Authorization: Bearer $EMAILCHASER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Doe",
"type": "string",
"url": "https://example.com/webhooks/emailchaser"
}'Response
{
"message": "webhook registered successfully",
"webhook": {
"createdAt": "2024-01-15T10:30:00Z",
"id": 123,
"isEnabled": true,
"name": "LeadCreated webhook",
"status": "active",
"type": "LeadCreated",
"url": "https://hook.make.com/abc123"
}
}Update a webhook
Updates a registered webhook's name, URL, event type or enabled state. Only provided fields are changed. Disabling a webhook stops deliveries without deleting it.
Parameters
- id integer required in path
Webhook ID
Request bodyJSON · UpdateWebhookRequest
- isEnabled boolean
- name stringAt least 1 characters. At most 255 characters
- type string
- url string
Responses
- 200 Webhook updated successfully · UpdateWebhookResponse
- 400 Invalid webhook ID, request body, type or URL · ErrorInvalidWebhookType
- 401 Unauthorized - invalid or missing API key · ErrorUnauthorized
- 404 Webhook not found · ErrorWebhookNotFound
- 500 Failed to update webhook · ErrorFailedToUpdateWebhook
Fields in the 200 response
- message stringExample:
webhook updated successfully - webhook WebhookResponse
7 fields inside webhook
- createdAt stringExample:
2024-01-15T10:30:00Z - id integerExample:
123 - isEnabled booleanExample:
true - name stringExample:
LeadCreated webhook - status stringExample:
active - type stringExample:
LeadCreated - url stringExample:
https://hook.make.com/abc123
Request
curl -X PUT "https://api.emailchaser.com/r/webhooks/123" \
-H "Authorization: Bearer $EMAILCHASER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"isEnabled": true,
"name": "Jane Doe",
"type": "string",
"url": "https://example.com/webhooks/emailchaser"
}'Response
{
"message": "webhook updated successfully",
"webhook": {
"createdAt": "2024-01-15T10:30:00Z",
"id": 123,
"isEnabled": true,
"name": "LeadCreated webhook",
"status": "active",
"type": "LeadCreated",
"url": "https://hook.make.com/abc123"
}
}Delete a webhook
Deletes a registered webhook endpoint. Events of its type will no longer be delivered to its URL.
Parameters
- id integer required in path
Webhook ID
Responses
- 200 Webhook deleted successfully · DeleteWebhookResponse
- 400 Invalid webhook ID · ErrorInvalidWebhookID
- 401 Unauthorized - invalid or missing API key · ErrorUnauthorized
- 404 Webhook not found · ErrorWebhookNotFound
- 500 Failed to delete webhook · ErrorFailedToDeleteWebhook
Fields in the 200 response
- id integerExample:
123 - message stringExample:
webhook deleted successfully
Request
curl -X DELETE "https://api.emailchaser.com/r/webhooks/123" \
-H "Authorization: Bearer $EMAILCHASER_API_KEY"Response
{
"id": 123,
"message": "webhook deleted successfully"
}Generated from the Emailchaser API's own OpenAPI definition, so it always matches the running API.