Skip to Content
Users

Get User Sessions Page

GET
/v0/projects/{idOrSlug}/users/key/{userKey}/sessions

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string
userKey*string

Query Parameters

limit?string
cursor?string

Response Body

UserSessionsPage

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
curl -X GET 'https://api.faststats.dev/v0/projects/string/users/key/string/sessions'
Example Response
{
  "items": [
    {
      "id": "string",
      "userId": "string",
      "sessionId": "string",
      "sessionDurationMs": 0,
      "data": {
        "event": "string",
        "url": "string",
        "page": "string",
        "properties": {}
      },
      "createdAt": "string"
    }
  ],
  "nextCursor": "string"
}