Webhooks
Update a webhook subscription
Update an existing webhook subscription. You can modify the target URL, subscribed events, or activate/deactivate the subscription.
Note: The signing secret cannot be changed via this endpoint.
put/v3/webhook-subscriptions/{subscriptionId}
Request
- Base URL: https://api.linqapp.com/api/partner
- URL: https://api.linqapp.com/api/partner/v3/webhook-subscriptions/{subscriptionId}
- Auth: HTTP bearer
Path parameters
subscriptionIdstring required
Example:b2c3d4e5-f6a7-8901-bcde-f23456789012
Unique identifier of the webhook subscription
Request body
Example request
{
"target_url": "https://webhooks.example.com/linq/events",
"subscribed_events": [
"message.sent",
"message.delivered"
],
"is_active": true,
"phone_numbers": [
"+12025551234"
],
"routing_key_header": "X-Route-Token",
"routing_id_header": "X-Chat-Id"
}Response
Webhook subscription updated successfully
Example response
{
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"target_url": "https://webhooks.example.com/linq/events",
"subscribed_events": [
"message.sent",
"message.delivered",
"message.read"
],
"routing_key_header": "X-Route-Token",
"routing_id_header": "X-Chat-Id",
"is_active": true,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.