Reference / Sessions

admin view of one user's sign-in history (active, revoked, expired), newest first (Item 19). Requires `sessions:read`. Unlike the self-service `/v1/sessions/history`, this reads an arbitrary user's history for support/investigation.

GET /v1/users/{id}/sessions/history
Secret API key operationId: admin_history

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    User id

Responses

200 Sign-in history
{
  "data": [
    {
      "aal": 0,
      "created_at": "2026-01-15T09:30:00Z",
      "current": false,
      "expires_at": "2026-01-15T09:30:00Z",
      "factors": [
        "string"
      ],
      "id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
      "ip": "string",
      "last_active_at": "2026-01-15T09:30:00Z",
      "user_agent": "string"
    }
  ],
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}

Request

curl -X GET "http://localhost:8080/v1/users/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/sessions/history" \

Try it

live request
GET http://localhost:8080/v1/users/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/sessions/history

Path parameters