List signed-in devices

GET/api/v1/mailbox/security/sessions
Requires amailbox token— it acts as one mailbox holder, not as the organization.

Every session for this mailbox, newest first. current marks the one making the call.

Errors

Status When
401 No token, or the session expired or was signed out. Sign in again with POST /mailbox-auth/login.
403 The account has a temporary password: until POST /security/password succeeds, every other call answers this with error_code: password_change_required.

Request

GET/api/v1/mailbox/security/sessions
curl -X GET 'https://courier.mailyte.com/api/v1/mailbox/security/sessions' \
  -H 'Authorization: Bearer MAILBOX_TOKEN'

Response

Successful Response

  • dataarray<object>
    • idstring
    • signed_in_atstring or null
    • expires_atstring or null
    • ip_addressstring or null
    • user_agentstring or null
    • revokedboolean
    • activeboolean
    • currentboolean

      The session making this call.

200application/json
{
  "type": "success",
  "msg": "Sessions retrieved successfully",
  "data": [
    {
      "id": "01J9ZQ0A1B2C3D4E5F6G7H8J9K",
      "signed_in_at": "2026-10-11T08:00:00+00:00",
      "expires_at": "2026-10-18T08:00:00+00:00",
      "ip_address": "102.89.0.10",
      "user_agent": "Mailyte/2.1 (iOS)",
      "revoked": false,
      "active": true,
      "current": true
    }
  ]
}

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`.
403The account has a temporary password: until `POST /security/password` succeeds, every other call answers this with `error_code: password_change_required`.

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