Skip to content

calls.start

Place a call with an agent, by its public id.

Use this endpoint when you want to start an agent run through an API Trigger node.

The uuid comes from the API Trigger node in your agent. Add the node to your workflow and copy its auto-generated trigger_path.

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/{uuid}

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

Initiate a phone call against the published agent. Executes the workflow's currently released definition.

Arguments

ArgumentInTypeRequiredDescription
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/<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