Query parameters
-
page
integer Default value is
1
. -
perPage
integer Maximum value is
250
. Default value is100
. -
search
string | null -
sortBy
string | null Default value is
last_name, first_name
. -
isCaptain
boolean | null Default value is
any
. -
isEnabled
boolean | null Default value is
any
. -
congregationId
string | null -
circuitId
string | null -
role
integer Default value is
any
. -
availableOnDate
string | string(date) | null -
availableForShift
string | null -
availableForLocation
string | null -
format
string Values are
json
orexcel
. Default value isjson
. -
labelsIds
array[string] | null
GET
/api/users
curl \
-X GET https://metropolitanabogota.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"
}
]
}