GET
/
auth
/
users
/
{userId}
/
sessions
curl --request GET \
  --url https://api.pxyz.dev/api/v0/auth/users/{userId}/sessions
{
  "status": "success",
  "data": [
    {
      "id": "<string>",
      "browser": "<string>",
      "device": "<string>",
      "engine": "<string>",
      "os": "<string>",
      "cpu": "<string>",
      "ua": "<string>",
      "ip": "<string>",
      "tenantId": "<string>",
      "userId": "<string>",
      "user": "<any>",
      "signInAttemptId": "<string>",
      "signInAttempt": {
        "id": "<string>",
        "tenantId": "<string>",
        "userId": "<string>",
        "ipAddress": "<string>",
        "userAgent": "<string>",
        "identifier": "<string>",
        "status": "<string>",
        "strategy": "<string>",
        "oauthProviderId": "<string>",
        "oauthProvider": {
          "id": "<string>",
          "tenantId": "<string>",
          "providerKey": "google",
          "enabled": true,
          "useCustomCredentials": true,
          "clientId": "<string>",
          "redirectUri": "<string>",
          "additionalScopes": "<any>",
          "authenticatable": true,
          "autoConnectAccounts": true,
          "config": "<any>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        },
        "user": "<any>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "signUpAttemptId": "<string>",
      "signUpAttempt": {
        "id": "<string>",
        "tenantId": "<string>",
        "userId": "<string>",
        "user": "<any>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "expiresAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "total": 123,
    "count": 123,
    "numPages": 123,
    "perPage": 123,
    "prev": "2023-11-07T05:31:56Z",
    "next": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

userId
string
required

Query Parameters

cursor
string
perPage
string

Response

200 - application/json
status
enum<string>
required
Available options:
success,
error
data
object[]
required
meta
object
required