Skip to content

calls.startByWorkflow

Place a call by workflow id.

Use this endpoint when you want to start an agent run directly by its stable Agent UUID instead of through an API Trigger node.

The workflow_uuid is the workflow’s Agent UUID. It is different from an API Trigger node’s trigger_path.

To find and copy the Agent UUID in the UI, see Agent UUID.

Use workflow_run_id from the response to later retrieve run details, recordings, and transcripts.

Pass initial_context to inject runtime data as template variables into the agent’s prompt. See Using initial context.

Pass telephony_configuration_id to route the call through a specific telephony configuration instead of your organization’s default. The id is shown on each row in Telephony configurations (https://app.decibyl.ai/telephony-configurations for hosted or http://localhost:3010/telephony-configurations for local).

Reference

POST/api/v1/public/agent/workflow/{workflow_uuid}

Auth
API key in X-API-Key
Content
application/json
Returns
200 · TriggerCallResponse

Initiate a phone call against the published workflow identified by UUID.

Arguments

ArgumentInTypeRequiredDescription
workflow_uuidpathstringrequired
phone_numberbodystringrequired
initial_contextbodyobjectoptional
telephony_configuration_idbodyintegeroptional
event_idbodystringoptionalAn identifier for the event that caused this call. A second request carrying the same event_id within 24 hours returns the first call instead of placing another.

Example request

curl -X POST "https://api.decibyl.ai/api/v1/public/agent/workflow/<workflow_uuid>" \
  -H "X-API-Key: dcb_your_key" \
  -H "Content-Type: application/json" \
  -d '{"phone_number":"string","initial_context":{},"telephony_configuration_id":1,"event_id":"string"}'

Response

{
  "status": "string",
  "workflow_run_id": 1,
  "workflow_run_name": "string"
}

Errors

StatusWhen
404Not found
422Validation Error