POST {BASE_URL}/consultations
Creates a new telemedicine consultation, either scheduled (with date/time) or immediate (no date; patient and provider can join shortly).
Request body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
provider | object | Yes | Provider details. |
provider.name | string | Yes | Full name (10–50 characters). |
provider.documentType | string | Yes | CC, TI, CE, RC or PAS. |
provider.documentNumber | string | Yes | Document number (8–20 characters). |
provider.professionalType | string | Yes | e.g. MedicoGeneral, MedicoEspecialista, Psicologo. |
provider.medicalSpecialtyCode | string | Conditional | Required only if professionalType is MedicoEspecialista. Do not send for MedicoGeneral, Psicologo, etc. See Medical specialties. |
provider.phone | string | Yes | Phone in international format (e.g. +573001234567). |
provider.email | string | Yes | Valid email. |
provider.professionalLicense | string | No | License number (optional). |
patient | object | Yes | Patient details. |
patient.documentType | string | Yes | CC, TI, CE, RC or PAS. |
patient.documentNumber | string | Yes | 8–20 characters. |
patient.name | string | Yes | Full name. |
patient.phone | string | Yes | International format. |
patient.email | string | Yes | Valid email. |
consultationType | string | Yes | Consultation type (e.g. ConsultaGeneral, ConsultaUrgencias). See Consultation types for the full catalog. |
durationMinutes | number | Yes | Duration in minutes. Allowed: 10, 15, 20, 25, 30, 35, 40, 45, 50, 60. See Consultation durations. |
scheduledAt | string | No | Date and time in yyyy-MM-dd HH:mm format. If not sent, an immediate consultation is created. If sent, must be in the future with at least 15 minutes notice (organization timezone). |
Catalog reference
For the fieldsconsultationType, medicalSpecialtyCode, and durationMinutes, see the official tables:
Consultation types
Allowed values for
consultationType (Resolución 2654 de 2019).Medical specialties
Codes for
medicalSpecialtyCode by professional type.Consultation durations
Allowed values for
durationMinutes (10 to 60 minutes).Example – Scheduled consultation (specialist)
Example – Immediate consultation (general practitioner)
WithoutscheduledAt or medicalSpecialtyCode:
Success response (200)
data.provider will also include specialtyId, specialtyCode and specialtyName. For Medico General those fields are not sent.
Typical errors
- 400 – Validation: format, duration not allowed, specialty required/not allowed.
- 409 – Schedule conflict: provider or patient not available at that time.
See also
- Consultation types – Catalog of
consultationType - Medical specialties – Catalog of
medicalSpecialtyCode - Consultation durations – Values for
durationMinutes - Dates and timezone – Format for
scheduledAt
