/botmail/keys/{id}/webhook
0.2.15Unchanged since publicationGet a bot key's webhook and delivery history
mailreadallReturns the key's ID, name, and mailbox email address, along with a sample message.received request body for new mail in INBOX. The private_allowed field indicates whether the server allows private network and HTTP webhooks. It reflects mail.botmail_private_webhooks, which defaults to off.
The webhook details include its URL, whether a bearer token is stored, when and why delivery was paused, whether the key can log in and why it might be refused, and the creation and update times. The has_bearer field indicates whether a token is stored without exposing its value. Events are returned newest first and include the message details, event time and source, delivery state, attempt count, next attempt time, HTTP status code, status text, and completion time. If the key has no webhook, webhook is null and events is empty. The events list is also empty when BotMail has no recorded history for the key.
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.
Parameters
idpath ·integer, 1 or moreRequiredlimitquery ·integer, 1 to 2000Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/botmail/keys/1/webhook?limit=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"events": [
{
"at": "text",
"attempts": 1,
"code": 1,
"done_at": "text",
"folder": "text",
"from": "text",
"id": 1,
"next_at": "text",
"source": "push",
"state": "queued",
"subject": "text",
"uid": 1,
"words": "text"
}
],
"key": {
"address": "info@example.com",
"id": 1,
"name": "alice"
},
"private_allowed": true,
"sample": {},
"webhook": {
"created_at": "2026-09-09T10:15:00Z",
"dead_why": "text",
"has_bearer": true,
"id": 1,
"key_id": 1,
"live": true,
"paused": true,
"paused_at": "text",
"paused_reason": "text",
"updated_at": "text",
"url": "text"
}
}Errors
4 errors, each a status and a sentence400Invalid id401Authentication required404No such bot connector: <c.params>{id}404No such bot connector: <id>urbestack.com/docs/api/get-botmail-keys-id-webhook/