Skip to main content
GET
/
pacientes
curl -X GET "https://api.vidaplus.com/pacientes/?offset=0&limit=100" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "pacientes": [
    {
      "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
    },
    {
      "id": 2,
      "nome": "Maria Santos",
      "email": "[email protected]",
      "telefone": "11988888888",
      "cpf": "98765432109",
      "data_nascimento": "1985-05-15",
      "endereco": "Avenida Paulista",
      "complemento": null,
      "numero": 1000,
      "bairro": "Bela Vista",
      "cidade": "São Paulo",
      "estado": "SP",
      "cep": "01310000",
      "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 all patients in the system
  • Regular users: Can only view their own patient record

Query Parameters

offset
integer
default:"0"
Number of records to skip for paginationExample: 0
limit
integer
default:"100"
Maximum number of records to returnExample: 100

Response

pacientes
array
Array of patient objects
curl -X GET "https://api.vidaplus.com/pacientes/?offset=0&limit=100" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "pacientes": [
    {
      "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
    },
    {
      "id": 2,
      "nome": "Maria Santos",
      "email": "[email protected]",
      "telefone": "11988888888",
      "cpf": "98765432109",
      "data_nascimento": "1985-05-15",
      "endereco": "Avenida Paulista",
      "complemento": null,
      "numero": 1000,
      "bairro": "Bela Vista",
      "cidade": "São Paulo",
      "estado": "SP",
      "cep": "01310000",
      "tipo": "PACIENTE",
      "is_active": true,
      "is_superuser": false
    }
  ]
}

Notes

  • The endpoint filters results to only include users with tipo set to “PACIENTE”
  • Non-superusers will only see their own patient record in the list, even if other patients exist
  • Results can be paginated using the offset and limit query parameters

Build docs developers (and LLMs) love