API reference
Delete a webhook subscription; no further events are sent to it.
https://api.betterpost.dev/v1/notifications/{id}| Name | Description |
|---|---|
id | The subscription id. |
curl -s -X DELETE https://api.betterpost.dev/v1/notifications/ntf_6w2h9k4b1q7s3e8d0f5g2j4l \
-H "x-access-key: $BETTERPOST_API_KEY"200 OK
{
"success": true,
"message": "Notification deleted."
}| Status | Code | When |
|---|---|---|
200 | The subscription was deleted. | |
401 | unauthorized | Missing or unknown API key. |
429 | rate_limited | More than 120 requests per minute. |
404 | not_found | No such subscription in this project. |