Skip to main content
GET
/
professionals
/
:id
Get Professional by ID
curl --request GET \
  --url https://api.example.com/professionals/:id \
  --header 'Authorization: <authorization>'
{
  "200": {},
  "401": {},
  "404": {},
  "500": {},
  "professional": {
    "id": 123,
    "name": "<string>",
    "surname": "<string>",
    "dni": 123,
    "birthdate": "<string>",
    "gender": "<string>",
    "address": "<string>",
    "phone": "<string>",
    "email": "<string>",
    "specialityID": 123,
    "state": "<string>"
  }
}
Retrieves detailed information about a specific professional by their ID.

Authentication

Authorization
string
required
Bearer token (JWT) required for authentication.

Path Parameters

id
number
required
The unique identifier of the professional to retrieve.

Response

professional
object
Professional object with detailed information.

Status Codes

200
Success
Professional retrieved successfully.
401
Unauthorized
Missing or invalid JWT token.
404
Not Found
Professional not found in the system.
500
Server Error
Internal server error occurred.

Example Request

curl -X GET "https://api.clinicavitalis.com/professionals/1" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

{
  "professional": {
    "id": 1,
    "name": "Juan",
    "surname": "Pérez",
    "dni": 12345678,
    "birthdate": "1985-03-15T00:00:00.000Z",
    "gender": "Masculino",
    "address": "Av. Corrientes 1234, Buenos Aires",
    "phone": "+54 11 1234-5678",
    "email": "[email protected]",
    "specialityID": 1,
    "state": "Activo/a"
  }
}

Build docs developers (and LLMs) love