AdminRead the admin-panel activity log

Read the admin-panel activity log

Every admin-portal request an operator made, newest first: sign-ins, page reads and mutations, each with the operator email, the access tier they held at the time, the route, the HTTP status and whether it was allowed, denied or errored. Filter by rolling time window (24h / 7d / 30d / all — rolling rather than calendar, so it means the same thing in every time zone), operator, kind and outcome. Requires dual auth: X-Admin-API-Key + JWT; read-only accounts may read it.

curl -X GET "https://api.spkey.co/admin/activity?range=24h&actor=example_string&kind=sign-in&outcome=allowed&limit=42&offset=null" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "total": 3.14,
  "limit": 3.14,
  "offset": 3.14,
  "hasMore": true,
  "range": "24h",
  "from": "null",
  "records": [
    {
      "id": "example_string",
      "occurredAt": "example_string",
      "actor": "example_string",
      "access": "full",
      "kind": "sign-in",
      "action": "example_string",
      "method": "null",
      "path": "null",
      "query": "null",
      "status": "null",
      "outcome": "allowed",
      "durationMs": "null",
      "detail": "null"
    }
  ]
}
GET
/admin/activity
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.
API Key (header: X-API-Key)
X-API-Keystring
Required

API key for B2B organization access. Provided during organization onboarding.

API key for B2B organization access. Provided during organization onboarding.
query
rangestring

Rolling window back from now. Default 7d.

Options: 24h, 7d, 30d, all
query
actorstring

Exact operator email.

query
kindstring
Options: sign-in, sign-in-denied, read, mutate
query
outcomestring
Options: allowed, denied, error
query
limitinteger
Min: 1 • Max: 200
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

header
X-API-Keystring
Required

API Key for authentication. API key for B2B organization access. Provided during organization onboarding.

Query Parameters

rangestring

Rolling window back from now. Default 7d.

Allowed values:24h7d30dall
actorstring

Exact operator email.

kindstring
Allowed values:sign-insign-in-deniedreadmutate
outcomestring
Allowed values:alloweddeniederror

Responses

totalnumber
Required
limitnumber
Required
offsetnumber
Required
hasMoreboolean
Required
rangestring
Required
Allowed values:24h7d30dall
fromstring,null
Required
recordsarray
Required