Skip to main content
A clinic decides, by data area, what its integrations and assistants may use. Every operation belongs to exactly one area, and it runs only while that area is on.

The areas

integrations cannot be turned off: it holds the controls that cut access. No operation uses clinical or billing yet. An owner changes the areas in Configuración › Integraciones › Resumen. A change applies to the next request.

Patient data needs two decisions

An operation on patient data (patients, clinical) runs only when both are true:
  1. The clinic turned the area on. An owner accepts the patient-data terms (they are versioned) and the decision is recorded with who and when.
  2. The credential was accepted. Each credential needs its own acceptance before it touches patient data:
    • an MCP connection or a personal key: by its person, the first time it is needed;
    • an organization key or a partner app: by the owner who creates it.
Until the reviewed patient-data terms are published, the patient areas cannot be turned on in production (409 PATIENT_DATA_TERMS_PENDING), so every patient operation answers 403 DATA_AREA_OFF.

What you see when an area is off

Operations of that area are refused:
403 DATA_AREA_OFF
Patient fields inside other areas come back as null. For example, GET /v1/agenda still lists appointments, but patientId is null unless the patients area is on and the credential was accepted. Your code must accept null there. Webhooks follow the same rule at delivery time: events about patients are not delivered, and patient fields in other events are sent as null. When the area is on but the credential was not accepted yet, the call answers:
403 PATIENT_DATA_CONSENT_REQUIRED
Over MCP, the same refusal carries a link in params.consent_url (https://brelio.app/<clinic>/conectar/<connection>). Clients that support URL elicitation open it for the person; others show it. After accepting, retry the call. Operations without patient data keep working before any acceptance.

Read the clinic’s policy

An integration with Gestionar integraciones can read the current state:
Response
GET /v1/platform-policy/decisions lists every decision (who turned an area on or off, who accepted patient data for which credential), newest first.

An integration can only cut access

An integration may turn an area off, for example to stop its own access at once:
Turning an area on always takes a person in Brelio (403 DATA_AREA_ENABLE_IN_BRELIO).

Volume ceiling

One credential can receive at most 2,000 patient records per hour. Past that, calls answer 429 RATE_LIMITED and the clinic’s owners are alerted. See rate limits.