GET
/
executions
/
{execution_id}
curl --request GET \
  --url https://api.bolna.dev/executions/{execution_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "4c06b4d1-4096-4561-919a-4f94539c8d4a",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "batch_id": "baab7cdc833145bf8dd260ff1f0a3f21",
  "conversation_time": 123,
  "total_cost": 123,
  "status": "completed",
  "answered_by_voice_mail": true,
  "transcript": "<string>",
  "created_at": "2024-01-23T01:14:37Z",
  "updated_at": "2024-01-29T18:31:22Z",
  "cost_breakdown": {
    "llm": 4.2,
    "network": 1.2,
    "platform": 2,
    "synthesizer": 6.8,
    "transcriber": 0.7
  },
  "telephony_data": {
    "duration": 42,
    "to_number": "+10123456789",
    "from_number": "+19876543007",
    "recording_url": "https://bolna-call-recordings.s3.us-east-1.amazonaws.com/AC1f3285e7c353c7d4036544f8dac36b98/REb1c182ccde4ddf7969a511a267d3c669",
    "hosted_telephony": true,
    "provider_call_id": "CA42fb13614bfcfeccd94cf33befe14s2f",
    "call_type": "outbound",
    "provider": "twilio",
    "hangup_by": "Caller",
    "hangup_reason": "Normal Hangup",
    "hangup_provider_code": 4000
  },
  "transfer_call_data": {
    "provider_call_id": "CA42fb13614bfcfeccd94cf33befe14s2f",
    "status": "completed",
    "duration": 42,
    "cost": 123,
    "to_number": "+10123456789",
    "from_number": "+19876543007",
    "recording_url": "https://bolna-call-recordings.s3.us-east-1.amazonaws.com/AC1f3285e7c353c7d4036544f8dac36b98/REb1c182ccde4ddf7969a511a267d3c669",
    "hangup_by": "Caller",
    "hangup_reason": "Normal Hangup",
    "hangup_provider_code": 4000
  },
  "batch_run_details": {
    "status": "completed",
    "created_at": "2024-01-23T01:14:37Z",
    "updated_at": "2024-01-29T18:31:22Z",
    "retried": 0
  },
  "extracted_data": {
    "user_interested": true,
    "callback_user": false,
    "address": "42 world lane",
    "salary_expected": "42 bitcoins"
  },
  "context_details": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

execution_id
string
required

The unique execution_id

Response

200
application/json
Retrieve specific execution by an agent
id
string

Unique identifier for the execution

Example:

"4c06b4d1-4096-4561-919a-4f94539c8d4a"

agent_id
string
batch_id
string
Example:

"baab7cdc833145bf8dd260ff1f0a3f21"

conversation_time
number

Total time duration for the conversation (in seconds)

total_cost
number

Total cost incurred by this execution in cents

status
enum<string>

Current status of the call

Available options:
completed,
call-disconnected,
no-answer,
busy,
failed,
in-progress,
canceled,
balance-low,
queued,
ringing,
initiated
answered_by_voice_mail
boolean

If the call was answered by voice mail

transcript
string

Transcription of the execution

created_at
string

Timestamp of agent execution

Example:

"2024-01-23T01:14:37Z"

updated_at
string

Last updated timestamp for the execution

Example:

"2024-01-29T18:31:22Z"

cost_breakdown
object

Breakdown of the costs in cents

telephony_data
object

Telephony call data

transfer_call_data
object

Telephony call data

batch_run_details
object

Batch information

extracted_data
object | null

Extracted data in JSON format which was mentioned in the agent extraction_prompt

Example:
{
  "user_interested": true,
  "callback_user": false,
  "address": "42 world lane",
  "salary_expected": "42 bitcoins"
}
context_details
object

Custom variable data injected in the call