Consultation states
A consultation goes through the following states. Webhook events (consultation.created, consultation.expired, consultation.completed, session_started, session_ended) reflect these transitions.
| State | Description |
|---|---|
| Pending | Consultation created; patient and provider can join using the URLs and PIN. |
| In progress | At least one participant has joined the video call (session_started). |
| Expired | Expiry time reached without the consultation being used. |
| Completed | Session was closed (manually or automatically); event consultation.completed. |
The
status field in the API response and webhook payloads may use values such as Pending; the diagram states are conceptual and aligned with webhook events.Typical integration flow
Simplified flow: your system creates the consultation, receives URLs and PIN, and optionally receives real-time events via webhook.- Creation: your system calls
POST /consultationsand receivesparticipantAccess(URLs) andaccessPin. - Usage: patient and provider join with those URLs; if you have webhooks, you receive
session_startedandsession_ended. - Closure: when the session ends,
consultation.completedis sent; you can fetch detail withGET /consultations/{consultationId}.
API structure
High-level view of resources and how they relate to your organization.| Resource | Description |
|---|---|
| Consultations | Create consultations (POST) and get detail by consultationId (GET). |
| Providers | List providers with optional filters (GET /providers). |
| Organization profile | Your organization data and settings (GET /organizations/profile). |
| Webhooks | The platform sends events to your URL; you verify the signature and process them. |
Scheduled vs immediate consultation
Quick distinction based on whetherscheduledAt is sent in POST /consultations:
- Scheduled: include
scheduledAtinyyyy-MM-dd HH:mmformat (organization timezone). At least 15 minutes in advance. - Immediate: do not send
scheduledAt; the consultation is available right away.
See also
- Create consultation – Request body and examples
- Webhook events – Event list and payloads
- API reference – Endpoint index
