Get All

GET /api/users

Fetch all users

Query parameters

Responses

GET /api/users
curl \
 -X GET https://metropolitanacolombia.org/api/users \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "items": [
    {
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "primaryPhone": "string",
      "secondaryPhone": "string",
      "isWhatsappEnabled": true,
      "isCaptain": true,
      "isEnabled": true,
      "id": "string",
      "name": "string",
      "username": "string",
      "role": 100,
      "congregation": {
        "id": "string",
        "name": "string",
        "city": "string",
        "state": "string"
      },
      "availabilityCount": 42,
      "whatsappPrimaryPhone": "string",
      "lastSignedInAt": "2024-05-04T09:42:00+00:00",
      "labels": [
        {
          "name": "string",
          "bgColor": "string",
          "id": "string"
        }
      ],
      "createdAt": "2024-05-04T09:42:00+00:00",
      "updatedAt": "2024-05-04T09:42:00+00:00"
    }
  ],
  "total": 42,
  "page": 42,
  "perPage": 42,
  "totalPages": 42,
  "hasNextPage": true
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}