Prerequisites
- A configured telephony provider β outbound calls will fail without one
- An API key for authentication
Finding your trigger URL
When you add an API Trigger node to your workflow, Dograh assigns it a unique UUID. You can find this UUID in the dashboard URL when viewing the agent, or in the trigger node settings. Your trigger endpoint is:your-dograh-instance with api.dograh.com.
Making a request
Authenticate by passing your API key in theX-API-Key header. The request body requires a phone_number and accepts an optional initial_context object.
Response
A successful request returns aworkflow_run_id that you can use to retrieve call details, recordings, and transcripts.
Error responses
| Status | Cause |
|---|---|
400 | Telephony provider not configured, or call failed to initiate |
401 | Missing or invalid API key |
403 | API key does not have access to this agent |
404 | Trigger not found or not active |
Initial context
initial_context is a JSON object containing any information you want your voice agent to access during the call. You can reference these values in your prompts using template variables β values enclosed in {{ and }}.
For example, if your request includes:
{{initial_context.user.name}}.
See Context & Variables for more on how data flows through a call.
For full endpoint details including all parameters and response fields, see the API reference.