Get

GET /api/users/{id}

Fetch a user

Path parameters

  • id string Required

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
GET /api/users/{id}
curl \
 -X GET https://ppammedellin.com/api/users/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "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"
  },
  "mate": {
    "id": "string",
    "name": "string",
    "congregation": {
      "id": "string",
      "name": "string",
      "city": "string",
      "state": "string"
    }
  },
  "availabilityCount": 42,
  "availability": [
    {
      "id": "string",
      "shift": {
        "startTime": "09:42:00+00:00",
        "endTime": "09:42:00+00:00",
        "dayOfWeek": 42,
        "seatsCount": 42,
        "isEnabled": true,
        "id": "string",
        "location": {
          "id": "string",
          "name": "string"
        }
      }
    }
  ],
  "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"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}