GET
/
users
Get Active Users
curl --request GET \
  --url https://api.wacht.dev/users \
  --header 'Authorization: Bearer <token>'
{
  "total": 100,
  "page": 1,
  "per_page": 20,
  "total_pages": 5,
  "data": [
    {
      "id": "1234567890123456",
      "email": "user@example.com",
      "username": "johndoe",
      "first_name": "John",
      "last_name": "Doe",
      "created_at": "2024-01-01T12:00:00Z",
      "updated_at": "2024-01-01T12:00:00Z",
      "is_active": true,
      "emails": [
        {
          "id": "<string>",
          "email": "jsmith@example.com",
          "is_primary": true,
          "is_verified": true,
          "verified_at": "2023-11-07T05:31:56Z"
        }
      ],
      "phones": [
        {
          "id": "<string>",
          "phone_number": "+1234567890",
          "is_primary": true,
          "is_verified": true,
          "verified_at": "2023-11-07T05:31:56Z"
        }
      ],
      "social_connections": [
        {
          "provider": "google",
          "enabled": true,
          "client_id": "<string>",
          "scopes": [
            "<string>"
          ],
          "redirect_uri": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Query Parameters

page
integer
default:1

Page number

per_page
integer
default:20

Items per page

Required range: x <= 100

Search by email or username

Response

Successful response

The response is of type object.