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

/mail/webmail/release

First published 18 Oct 20260.2.10Unchanged since publication

Release a webmail sign-in ticket at logout

Who may call it
Anyone (no token needed)
Token
none
Answers200 OK

The UrbeStack plugin for Roundcube calls this operation at logout. It accepts requests only from 127.0.0.1 or ::1 and returns 404 for other origins. Supply the mailbox's email address in address and its sign-in ticket in ticket. The ticket serves as the credential, so no API token is required.

An invalid or missing email address returns 400. An omitted, null, empty, or non-scalar ticket, or one containing control characters, also returns 400. The response returns the normalized email address in address and sets released to true if a matching ticket was removed. If no ticket matches, the operation returns 200 with released set to false and leaves any other ticket intact.

As a command

Run as root on the server

Request body

JSON ·WebmailTicketRelease· 2 fields
addressstring, up to 320 charactersRequired
Mailbox email address in local@domain form.
ticketstring, up to 200 charactersRequired
Ticket webmail used to sign in.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/mail/webmail/release" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "info@example.com",
    "ticket": "text"
  }'
Response · 200 OK
{
  "address": "info@example.com",
  "released": true
}

Errors

23 errors, each a status and a sentence
400--address is required
400--ticket-stdin is required with --release
400<what> must be text without control characters, 1 to <max> characters
400A mailbox address is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid mail address
400Invalid mail address: local part over 64 characters
400Invalid mail address: no local part
400Invalid mail address: the local part may hold letters, digits, dots, _ + and -
400Invalid port
400Invalid setting key
400The ticket is required
403The account <user> is suspended
403The sign-in of <address> is off
404No such mail account: <address>
404Not found
404Setting '<key>' not found
409The mail system is not installed
409Webmail is switched off on this server (mail.webmail)
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/post-mail-webmail-release/