Create a webhook endpoint
POST/v1/webhook_endpoints
Registers a URL and returns its signing secret.
The secret is returned once, here. Nothing reads it back afterwards.
A brand may hold up to 16 endpoints; a seventeenth is refused 409
endpoint_limit_reached.
Body ParametersJSON
enabled_events: array of string
The events this endpoint should receive. Must be non-empty, and every name must be one this API emits: a name we do not emit is refused rather than accepted and then matching nothing.
Create a webhook endpoint
curl https://messages.api.linqapp.com/v1/webhook_endpoints \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LINQ_AMB_API_KEY" \
-d '{
"enabled_events": [
"message.received",
"message.sent",
"message.failed"
],
"url": "https://hooks.example.com/messages"
}'{
"id": "wh_7f3a1c9e",
"url": "https://hooks.example.com/messages",
"description": "production receiver",
"enabled_events": [
"message.received",
"message.sent",
"message.failed"
],
"status": "enabled",
"created_at": "2026-08-13T02:41:09Z",
"secret": "whsec_9Qm2ZK8vTn1xR4pL7bYcW0sHdJfA6eUg3iOtN5rXvBk="
}Returns Examples
{
"id": "wh_7f3a1c9e",
"url": "https://hooks.example.com/messages",
"description": "production receiver",
"enabled_events": [
"message.received",
"message.sent",
"message.failed"
],
"status": "enabled",
"created_at": "2026-08-13T02:41:09Z",
"secret": "whsec_9Qm2ZK8vTn1xR4pL7bYcW0sHdJfA6eUg3iOtN5rXvBk="
}