Authentication
Incoming APIs
Outgoing APIs
Callback authentication (HMAC)
Reference
This endpoint should be called by your backend when the provider clicks the Nabla button in the EHR encounter screen.
Method: POST
Path: <baseUrl>/encounters
POST /encounter is a deprecated alias with the same behavior.
Nabla will:
Navigating to this URL will log in the provider into Nabla automatically and open the app on this encounter.
⚠️ The URL can only be used once and expires in 10 minutes. The URL must not be stored.
👤 With
provider_email, Nabla will provision the user if they don't already exist. The request will fail if theexternal_provider_idof an existing user doesn't match the givenprovider_email.
The external_encounter_id identifies the encounter. To get a fresh URL for the same encounter, either pass the same external_encounter_id to this endpoint or use POST /encounters/url (deprecated alias: POST /encounter/url).
{
"provider_email": string,
"external_patient_id": string,
"external_provider_id": string,
"external_encounter_id": string,
"structured_context": {
"patient_demographics": {
"name": string,
"birth_date": string,
"gender": string,
"pronouns": string | null
}
},
"unstructured_context": string | null
}
| Parameter | Type | Required | Description |
|---|---|---|---|
provider_email |
string | yes | Provider email from your EHR |
external_provider_id |
string | yes | External ID from your EHR |
external_patient_id |
string | yes | External ID from your EHR |
external_encounter_id |
string | yes | External ID from your EHR |
structured_context |
object | yes | Structured contextual information used to generate the note |
unstructured_context |
string (max 700 chars) | no | Unstructured context (e.g. name, gender, age, pronouns, medical history) |
{ "encounter_url": string }