Common actions
Authentication
Every request must include your Emma API key in theAuthorization header.
Your API key is available on the Emma Integrations page. Treat it as a secret and never expose it in client-side code.
Starting a workflow
The example below starts an outbound call to a patient as part of an abandonment recovery workflow.Retrieving workflow status
Use the workflow ID returned at creation to poll for the current state and final outcome.Emma calling your APIs
Emma can also call your APIs during a live workflow when it needs to retrieve data or perform an approved action — such as checking appointment availability or updating a patient record. You configure the endpoint, authentication method, and permitted actions in the Emma Integrations settings. Emma will only call endpoints and perform actions you have explicitly approved.When to use the REST API
Use REST API when
An action must happen on demand, you need a defined request/response contract, or you want to retrieve the current state and outcome of a running or completed workflow.
Consider webhooks instead
Your system needs to notify Emma that something happened, rather than requesting an action. Webhooks are the right fit for event-driven triggers.