API reference
6 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/webhooksOutbound webhooks/api/v1/w/{workspaceId}/webhooksCreate a webhook (signing secret shown once)/api/v1/w/{workspaceId}/webhooks/{id}Update a webhook/api/v1/w/{workspaceId}/webhooks/{id}Delete a webhook/api/v1/w/{workspaceId}/webhooks/{id}/testSend a test delivery/api/v1/w/{workspaceId}/webhooks/{id}/deliveriesRecent deliveries/api/v1/w/{workspaceId}/webhooksOutbound webhooks
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/webhooks" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/webhooksCreate a webhook (signing secret shown once)
Path parameters
workspaceIdrequired | string |
Request body (JSON)
namerequired | stringLength 1–100 |
urlrequired | string (uri) |
eventsrequired | enum[] |
isEnabled | booleanDefault true |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/webhooks" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"url": "https://example.com",
"events": [
"reply.categorized"
],
"isEnabled": true
}'/api/v1/w/{workspaceId}/webhooks/{id}Update a webhook
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
namerequired | stringLength 1–100 |
urlrequired | string (uri) |
eventsrequired | enum[] |
isEnabled | booleanDefault true |
curl -X PUT "https://app.example.com/api/v1/w/$WORKSPACE_ID/webhooks/$ID" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"url": "https://example.com",
"events": [
"reply.categorized"
],
"isEnabled": true
}'/api/v1/w/{workspaceId}/webhooks/{id}Delete a webhook
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/webhooks/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/webhooks/{id}/testSend a test delivery
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/webhooks/$ID/test" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/webhooks/{id}/deliveriesRecent deliveries
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/webhooks/$ID/deliveries" \
-H "Authorization: Bearer $EMN_API_KEY"