logo
AdminList API tokens

List API tokens

curl -X GET "https://mail.haltman.io/api/admin/api-tokens?limit=42&offset=42&active=true&owner_email=user@example.com&status=active" \
  -H "Content-Type: application/json"
{
  "items": [
    {
      "id": 123,
      "owner_email": "user@example.com",
      "status": "active",
      "created_at": "2024-12-25T10:00:00Z",
      "expires_at": "2024-12-25T10:00:00Z",
      "revoked_at": "2024-12-25T10:00:00Z",
      "revoked_reason": "example_string",
      "created_ip": "example_string",
      "user_agent": "example_string",
      "last_used_at": "2024-12-25T10:00:00Z",
      "active": true
    }
  ],
  "pagination": {
    "total": 42,
    "limit": 42,
    "offset": 42
  }
}
GET
/api/admin/api-tokens
GET
API Key (cookie: __Host-access)
__Host-accessstring
Required

Access-session cookie used for user and admin authentication.

Access-session cookie used for user and admin authentication.
query
limitinteger

Page size. Default 50, maximum 200.

Min: 1 • Max: 200
query
offsetinteger

Zero-based page offset.

Min: 0
query
activestring

Boolean-like filter accepting 0/1 and common textual equivalents.

query
statusstring
Options: active, revoked, expired
Request Preview
Response

Response will appear here after sending the request

Authentication

path
parameterstring
Required

API Key for authentication. Access-session cookie used for user and admin authentication.

Query Parameters

limitinteger

Page size. Default 50, maximum 200.

offsetinteger

Zero-based page offset.

activestring

Boolean-like filter accepting 0/1 and common textual equivalents.

statusstring
Allowed values:activerevokedexpired

Responses

itemsarray
Required
paginationobject
Required