Delete a webhook endpoint
curl --request DELETE \
--url https://www.qwairy.co/api/v1/webhooks/{webhookId} \
--header 'Authorization: <authorization>' \
--header 'If-Match: <if-match>'import requests
url = "https://www.qwairy.co/api/v1/webhooks/{webhookId}"
headers = {
"Authorization": "<authorization>",
"If-Match": "<if-match>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<authorization>', 'If-Match': '<if-match>'}
};
fetch('https://www.qwairy.co/api/v1/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Webhook endpoints
Delete a webhook endpoint
Delete an integration webhook endpoint with If-Match. Pending deliveries are cancelled, and the delivery log stays readable for 30 days after deletion.
DELETE
https://www.qwairy.co
/
api
/
v1
/
webhooks
/
{webhookId}
Delete a webhook endpoint
curl --request DELETE \
--url https://www.qwairy.co/api/v1/webhooks/{webhookId} \
--header 'Authorization: <authorization>' \
--header 'If-Match: <if-match>'import requests
url = "https://www.qwairy.co/api/v1/webhooks/{webhookId}"
headers = {
"Authorization": "<authorization>",
"If-Match": "<if-match>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: '<authorization>', 'If-Match': '<if-match>'}
};
fetch('https://www.qwairy.co/api/v1/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Deletes the endpoint. Pending deliveries are cancelled. The delivery log stays
readable for 30 days.
Integration webhooks require an active Business, Agency Business or Enterprise plan. Changing an endpoint also requires an API token with write access enabled by an Owner or Manager. See Integration webhooks and Writing data.
See Error codes for authentication, plan, idempotency and server errors. A token without write access returns
The
ETag from Get a webhook endpoint, including its quotes. Use * to delete unconditionally.Response
Returns204 with no body.
Synthetic request
curl -X DELETE "https://www.qwairy.co/api/v1/webhooks/$WEBHOOK_ID" \
-H "Authorization: Bearer $QWAIRY_API_TOKEN" \
-H 'If-Match: "1"'
Errors
| Status | Code | Cause |
|---|---|---|
404 | RESOURCE_NOT_FOUND | The endpoint is missing or belongs to another team |
412 | PRECONDITION_FAILED | The endpoint changed since your read |
428 | PRECONDITION_REQUIRED | If-Match is missing |
403 API_KEY_READ_ONLY. On 429, honor Retry-After. If the write limiter is unavailable or writes are suspended, the request returns 503 SERVICE_UNAVAILABLE and nothing changes.
