API Reference
Sandicare
Integration API
Programmatic access to Sandicare's teleconsult platform. Enroll patients into waiting rooms and redirect to specialized health services.
Authentication
Include your API key in the x-api-key header on every request. Your key and programId are issued by Sandicare when you set up an integration.
Environments
| Environment | Base URL | Key prefix |
|---|---|---|
| Production | integrations.sandicare.mx/api/v1 | prd_ |
| Sandbox | integrations-sandbox.sandicare.mx/api/v1 | sdx_ |
Errors
| Status | Description |
|---|---|
200OK | Request succeeded. Returns a redirect URL. |
400Bad Request | Missing or invalid fields. Check types and validation constraints. |
401Unauthorized | Missing, invalid, or insufficient API key permissions. |
404Not Found | Program, patient, active subscription, or service config not found. |
503Unavailable | One of our services failed. Try again later or contact support if the issue persists. |
/meetings/enrollEnroll a patient into a teleconsultation. Returns a URL to redirect the patient to — a Nimbo waiting room for general_medicine, or a pre-configured link for all other services.
Request body
programIdstringrequiredNumeric string ID of the program. Provided by Sandicare alongside your API key.
serviceenumrequiredThe teleconsult service type.
emailstringrequiredPatient's registered email address.
dateOfBirthstringrequiredDate of birth in YYYY-MM-DD format. Verifies subscription ownership.
consultationReasonstringRequired only when service is general_medicine. Brief reason for consulting.
Response
urlstringURL for the patient.
Flow
Program validation
Verifies that the program exists and belongs to the API key's tenant.
Patient lookup
Finds the patient in our system by email.
Subscription check
Confirms an active subscription exists matching program, email, and date of birth.
URL generation
The service responds with a URL to redirect the patient to. For general_medicine, a Nimbo waiting room is created on demand.
Example response
service is general_medicine. Omit it for all other service types.