API operation · mail group
DELETE
/botmail/keys/{id}/webhook
First published 22 Oct 2026
0.2.15Unchanged since publicationDelete a bot key's webhook
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailallAnswers200 OK
The key must have a webhook. Deletion removes the stored bearer token and stops new-mail notifications for the key. Removing a mailbox's last webhook clears its Dovecot push opt-in. Removing the server's last webhook disables the webhook delivery timer. A successful response sets deleted to true and returns the key ID in key_id.
Administrators can access any key. Customers can access their own keys, and resellers can access their own keys and those of the customers they manage. A missing or inaccessible key returns 404.
As a command
Run as root on the serverParameters
idpath ·integer, 1 or moreRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X DELETE "$API/botmail/keys/1/webhook" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"deleted": true,
"key_id": 1
}Errors
17 errors, each a status and a sentence400--key is required400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid id400Invalid port400Invalid setting key400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required404No such bot connector: <c.params>{id}404No such bot connector: <id>404No such domain: <domain>404Setting '<key>' not found404The bot connector <k.name> has no webhookNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.15 on 22 Oct 2026.
urbestack.com/docs/api/delete-botmail-keys-id-webhook/