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

/botmail/keys/{id}

First published 18 Oct 20260.2.10Unchanged since publication

Revoke a bot key

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailall
Answers200 OK

The key stops working immediately, and UrbeStack removes its webhook. The API returns 404 if the key is missing or the caller lacks access to it.

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" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "address": "info@example.com",
  "id": 1,
  "ok": true
}

Errors

16 errors, each a status and a sentence
400--id 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
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.10 on 18 Oct 2026.
urbestack.com/docs/api/delete-botmail-keys-id/