/domains/{name}/mail/accounts/{local}/webmail
0.2.10Unchanged since publicationIssue a webmail sign-in ticket for a mailbox
mailallThe 201 response contains the mailbox's email address in address, the webmail URL in url, the ticket in ticket and its expiration time in expires_at. UrbeStack returns the cleartext ticket only when issuing it. Have the browser POST to url with the email address in _urbestack_user and the ticket in _urbestack_ticket. Roundcube signs in as the mailbox, with its settings and address book, and uses the ticket for IMAP on each request and for sending mail.
The ticket works only from the server that issued it and expires after 12 hours. It is revoked earlier at webmail logout, when mailbox sign-in is disabled, when the mailbox is deleted or when end_sessions is set to true. Issuing a new ticket replaces the previous one and ends the previous webmail session on its next request.
Issuance requires an installed mail system, webmail enabled through mail.webmail, an active owner account and mailbox sign-in enabled. The API returns 404 if the mailbox does not exist on the domain. UrbeStack logs each issuance in the audit log as webmail-open.
Administrators, the domain's owner and the owner's reseller can call this operation with a token that has the mail scope.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredlocalpath ·LocalPartRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/domains/example.com/mail/accounts/info/webmail" \ -H "Authorization: Bearer $TOKEN"
201 Created{
"address": "info@example.com",
"expires_at": "2026-09-16T10:15:00Z",
"ticket": "text",
"url": "text"
}Errors
21 errors, each a status and a sentence400--address is required400--ticket-stdin is required with --release400<what> must be text without control characters, 1 to <max> characters400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid mail address400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid port400Invalid setting key401Authentication required403The account <user> is suspended403The sign-in of <address> is off404No such mail account: <address>404Setting '<key>' not found409The mail system is not installed409Webmail is switched off on this server (mail.webmail)urbestack.com/docs/api/post-domains-name-mail-accounts-local-webmail/