Skip to main content
GET
/
pacientes
/
{user_id}
curl -X GET https://api.vidaplus.com/pacientes/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id": 1,
  "nome": "João Silva",
  "email": "[email protected]",
  "telefone": "11999999999",
  "cpf": "12345678901",
  "data_nascimento": "1990-01-01",
  "endereco": "Rua das Flores",
  "complemento": "Apto 101",
  "numero": 123,
  "bairro": "Centro",
  "cidade": "São Paulo",
  "estado": "SP",
  "cep": "01001000",
  "tipo": "PACIENTE",
  "is_active": true,
  "is_superuser": false
}

Authentication

This endpoint requires authentication with a Bearer token.
Authorization
string
required
Bearer token for authentication

Permissions

  • Superusers: Can view any patient record
  • Regular users: Can only view their own patient record

Path Parameters

user_id
integer
required
The unique identifier of the patient to retrieveExample: 1

Response

id
integer
Unique identifier for the patient
nome
string
Patient’s full name
email
string
Patient’s email address
telefone
string
Patient’s phone number
cpf
string
Patient’s CPF
data_nascimento
string
Patient’s date of birth
endereco
string
Street address
numero
integer
Street number
complemento
string
Address complement (can be null)
bairro
string
Neighborhood
cidade
string
City
estado
string
State (2-letter code)
cep
string
Postal code
tipo
string
User type (“PACIENTE” for patients)
is_active
boolean
Account active status
is_superuser
boolean
Superuser status
curl -X GET https://api.vidaplus.com/pacientes/1 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id": 1,
  "nome": "João Silva",
  "email": "[email protected]",
  "telefone": "11999999999",
  "cpf": "12345678901",
  "data_nascimento": "1990-01-01",
  "endereco": "Rua das Flores",
  "complemento": "Apto 101",
  "numero": 123,
  "bairro": "Centro",
  "cidade": "São Paulo",
  "estado": "SP",
  "cep": "01001000",
  "tipo": "PACIENTE",
  "is_active": true,
  "is_superuser": false
}

Error Codes

200
OK
Patient successfully retrieved
403
Forbidden
User does not have permission to access this patient record
404
Not Found
Patient with the specified ID does not exist

Build docs developers (and LLMs) love