Sign out (revoke the token)

POST/api/v1/mailbox-auth/logout
Requires amailbox token— it acts as one mailbox holder, not as the organization.

Ends the session: the token stops working at once. Calling it again is harmless. Send the token you want to revoke.

Errors

Status When
401 No token, or the session expired or was signed out. Sign in again with POST /mailbox-auth/login.

Parameters

NameInTypeDescription
AuthorizationrequiredheaderstringBearer <token> — the session to end.

Request

POST/api/v1/mailbox-auth/logout
curl -X POST 'https://courier.mailyte.com/api/v1/mailbox-auth/logout' \
  -H 'Authorization: Bearer MAILBOX_TOKEN'

Response

Signed out.

200application/json
{
  "type": "success",
  "msg": "Signed out"
}

Returned inside the standard envelope.

Errors

StatusWhen
401No token, or the session expired or was signed out. Sign in again with `POST /mailbox-auth/login`.

Every status, with what causes it and what to do, is on the error reference.