Get your free beta license ↗
API operation · mail group
DELETE

/botmail/keys/{id}/webhook

First published 22 Oct 20260.2.15Unchanged since publication

Delete a bot key's webhook

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailall
Answers200 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 server

Parameters

idpath ·integer, 1 or moreRequired

Example

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 sentence
400--key is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid id
400Invalid port
400Invalid setting key
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
404No such bot connector: <c.params>{id}
404No such bot connector: <id>
404No such domain: <domain>
404Setting '<key>' not found
404The bot connector <k.name> has no webhook
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/