API operation · mail group
POST
/botmail/keys/{id}/address
First published 22 Oct 2026
0.2.15Unchanged since publicationIssue a new MCP URL for a bot key
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailallAnswers201 Created
UrbeStack rotates the secret and returns the new MCP URL and secret in the 201 response. The secret is returned only once. The new URL belongs to the same key, with its existing name, rules, activity, and webhook.
By default, the previous URL keeps working while you update the bot. Use DELETE /botmail/keys/{id}/address/old to disable it after the update. Set now to true to disable the previous URL immediately during rotation, for example if it leaked. Each rotation also disables any URL older than the one it replaces.
The API returns 404 if the key is missing or the caller lacks access to it.
As a command
Run as root on the serverParameters
idpath ·integer, 1 or moreRequirednowbooleanExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/botmail/keys/1/address" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"now": true
}'Response ·
201 Created{
"key": {}
}Errors
19 errors, each a status and a sentence400--id is required400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid boolean400Invalid 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 found409BotMail is not on for <k.domain>: turn it on for the domain first409The bot connector <k.name> has no old addressNo 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-address/