Update a webhook endpoint
Updates an endpoint: its destination, its label, which kinds it receives, or whether it is enabled.
Read status before disabling anything — disabling drops what is
queued.
Body ParametersJSON
A new label. Text a human reads: control characters are refused.
Replaces the subscription list outright. An empty array means every kind.
enabled or disabled.
Disabling is a cutoff, not a pause. Every event still queued for this endpoint is dropped when you disable it, and while it is disabled no new event is queued for it. Enabling it again resumes with what happens next — there is no backlog to replay, by design: a destination that has just come back up is the worst possible moment to hand it hours of stale events in one burst.
Nothing is lost, and the response tells you how to get it.
backlog_dropped says how many events were dropped and
backlog_resume_cursor says where they start; pass that cursor to
GET /v1/streams/events to read them. Keep it — a webhook does not carry a
stream position, so this response is the only place a push-only
integration is handed one.
One delivery may still arrive after this call returns: an attempt already
on the wire cannot be recalled, and it is counted in backlog_dropped
even if it lands. The count is an upper bound on what was lost.
Update a webhook endpoint
curl https://whatsapp.messages.api.linqapp.com/v1/webhook_endpoints/$ENDPOINT \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LINQ_WHATSAPP_API_KEY" \
-d '{}'{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"disabled_at": "2019-12-27T18:11:19.117Z",
"event_kinds": [
"string"
],
"health": {
"consecutive_failures": 0,
"last_failure_at": "2019-12-27T18:11:19.117Z",
"last_failure_reason": "last_failure_reason",
"last_failure_status": 0,
"last_success_at": "2019-12-27T18:11:19.117Z"
},
"status": "status",
"updated_at": "2019-12-27T18:11:19.117Z",
"url": "url",
"backlog_dropped": 0,
"backlog_resume_cursor": "backlog_resume_cursor",
"description": "description"
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"disabled_at": "2019-12-27T18:11:19.117Z",
"event_kinds": [
"string"
],
"health": {
"consecutive_failures": 0,
"last_failure_at": "2019-12-27T18:11:19.117Z",
"last_failure_reason": "last_failure_reason",
"last_failure_status": 0,
"last_success_at": "2019-12-27T18:11:19.117Z"
},
"status": "status",
"updated_at": "2019-12-27T18:11:19.117Z",
"url": "url",
"backlog_dropped": 0,
"backlog_resume_cursor": "backlog_resume_cursor",
"description": "description"
}