API operation · mail group
POST
/botmail/keys/{id}/webhook/test
First published 22 Oct 2026
0.2.15Unchanged since publicationSend an immediate test ping to a bot key's webhook
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailallAnswers200 OK
The key must have a webhook. BotMail sends the ping through its webhook delivery service, and the ping appears in the key's event history. The operation allows up to 90 seconds for the test.
A 200 response reports whether delivery succeeded in delivered, the receiver's HTTP status code in code, the elapsed time in milliseconds in ms, the delivery status text shown in the web interface in words, and the webhook URL in url. If BotMail produces no delivery result, check the UrbeStack log.
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 POST "$API/botmail/keys/1/webhook/test" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"code": 1,
"delivered": true,
"ms": 1,
"url": "text",
"words": "text"
}Errors
9 errors, each a status and a sentence400--key is required400Invalid id400Invalid 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>404The 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/post-botmail-keys-id-webhook-test/