curl --request POST \
--url https://api.truedy.ai/api/public/v1/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "agt_123e4567-e89b-12d3-a456-426614174000",
"phone_number": "+15551234567",
"from_number": "+15559876543",
"call_settings": {
"recording_enabled": true,
"transcription_enabled": true,
"greeting": "<string>",
"max_duration": "<string>",
"join_timeout": "<string>"
},
"variables": {}
}
'import requests
url = "https://api.truedy.ai/api/public/v1/calls"
payload = {
"agent_id": "agt_123e4567-e89b-12d3-a456-426614174000",
"phone_number": "+15551234567",
"from_number": "+15559876543",
"call_settings": {
"recording_enabled": True,
"transcription_enabled": True,
"greeting": "<string>",
"max_duration": "<string>",
"join_timeout": "<string>"
},
"variables": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 'agt_123e4567-e89b-12d3-a456-426614174000',
phone_number: '+15551234567',
from_number: '+15559876543',
call_settings: {
recording_enabled: true,
transcription_enabled: true,
greeting: '<string>',
max_duration: '<string>',
join_timeout: '<string>'
},
variables: {}
})
};
fetch('https://api.truedy.ai/api/public/v1/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.truedy.ai/api/public/v1/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 'agt_123e4567-e89b-12d3-a456-426614174000',
'phone_number' => '+15551234567',
'from_number' => '+15559876543',
'call_settings' => [
'recording_enabled' => true,
'transcription_enabled' => true,
'greeting' => '<string>',
'max_duration' => '<string>',
'join_timeout' => '<string>'
],
'variables' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truedy.ai/api/public/v1/calls"
payload := strings.NewReader("{\n \"agent_id\": \"agt_123e4567-e89b-12d3-a456-426614174000\",\n \"phone_number\": \"+15551234567\",\n \"from_number\": \"+15559876543\",\n \"call_settings\": {\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"greeting\": \"<string>\",\n \"max_duration\": \"<string>\",\n \"join_timeout\": \"<string>\"\n },\n \"variables\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.truedy.ai/api/public/v1/calls")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"agt_123e4567-e89b-12d3-a456-426614174000\",\n \"phone_number\": \"+15551234567\",\n \"from_number\": \"+15559876543\",\n \"call_settings\": {\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"greeting\": \"<string>\",\n \"max_duration\": \"<string>\",\n \"join_timeout\": \"<string>\"\n },\n \"variables\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.truedy.ai/api/public/v1/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": \"agt_123e4567-e89b-12d3-a456-426614174000\",\n \"phone_number\": \"+15551234567\",\n \"from_number\": \"+15559876543\",\n \"call_settings\": {\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"greeting\": \"<string>\",\n \"max_duration\": \"<string>\",\n \"join_timeout\": \"<string>\"\n },\n \"variables\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"agent_id": "<string>",
"phone_number": "<string>",
"from_number": "<string>",
"to_number": "<string>",
"direction": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration_seconds": 123,
"summary": "<string>",
"short_summary": "<string>",
"recording_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"context": {},
"transcript": "<unknown>"
},
"meta": {
"request_id": "<string>",
"ts": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}Create Call
Create an outbound call. Direction is always outbound; organization is set from API key.
curl --request POST \
--url https://api.truedy.ai/api/public/v1/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "agt_123e4567-e89b-12d3-a456-426614174000",
"phone_number": "+15551234567",
"from_number": "+15559876543",
"call_settings": {
"recording_enabled": true,
"transcription_enabled": true,
"greeting": "<string>",
"max_duration": "<string>",
"join_timeout": "<string>"
},
"variables": {}
}
'import requests
url = "https://api.truedy.ai/api/public/v1/calls"
payload = {
"agent_id": "agt_123e4567-e89b-12d3-a456-426614174000",
"phone_number": "+15551234567",
"from_number": "+15559876543",
"call_settings": {
"recording_enabled": True,
"transcription_enabled": True,
"greeting": "<string>",
"max_duration": "<string>",
"join_timeout": "<string>"
},
"variables": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_id: 'agt_123e4567-e89b-12d3-a456-426614174000',
phone_number: '+15551234567',
from_number: '+15559876543',
call_settings: {
recording_enabled: true,
transcription_enabled: true,
greeting: '<string>',
max_duration: '<string>',
join_timeout: '<string>'
},
variables: {}
})
};
fetch('https://api.truedy.ai/api/public/v1/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.truedy.ai/api/public/v1/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'agent_id' => 'agt_123e4567-e89b-12d3-a456-426614174000',
'phone_number' => '+15551234567',
'from_number' => '+15559876543',
'call_settings' => [
'recording_enabled' => true,
'transcription_enabled' => true,
'greeting' => '<string>',
'max_duration' => '<string>',
'join_timeout' => '<string>'
],
'variables' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truedy.ai/api/public/v1/calls"
payload := strings.NewReader("{\n \"agent_id\": \"agt_123e4567-e89b-12d3-a456-426614174000\",\n \"phone_number\": \"+15551234567\",\n \"from_number\": \"+15559876543\",\n \"call_settings\": {\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"greeting\": \"<string>\",\n \"max_duration\": \"<string>\",\n \"join_timeout\": \"<string>\"\n },\n \"variables\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.truedy.ai/api/public/v1/calls")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"agt_123e4567-e89b-12d3-a456-426614174000\",\n \"phone_number\": \"+15551234567\",\n \"from_number\": \"+15559876543\",\n \"call_settings\": {\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"greeting\": \"<string>\",\n \"max_duration\": \"<string>\",\n \"join_timeout\": \"<string>\"\n },\n \"variables\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.truedy.ai/api/public/v1/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_id\": \"agt_123e4567-e89b-12d3-a456-426614174000\",\n \"phone_number\": \"+15551234567\",\n \"from_number\": \"+15559876543\",\n \"call_settings\": {\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"greeting\": \"<string>\",\n \"max_duration\": \"<string>\",\n \"join_timeout\": \"<string>\"\n },\n \"variables\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"agent_id": "<string>",
"phone_number": "<string>",
"from_number": "<string>",
"to_number": "<string>",
"direction": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration_seconds": 123,
"summary": "<string>",
"short_summary": "<string>",
"recording_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"context": {},
"transcript": "<unknown>"
},
"meta": {
"request_id": "<string>",
"ts": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}{
"error": {
"code": "validation_error",
"message": "Missing required field: name",
"details": {
"errors": []
}
},
"meta": {
"request_id": "req_01JEXAMPLE",
"ts": "2026-08-21T00:00:00Z"
}
}Authorizations
Your API key. Send in the Authorization header as: Bearer
Headers
Body
Create an outbound call via the Public API. Organization is set from API key; direction is always outbound.
Agent ID to use for the call
"agt_123e4567-e89b-12d3-a456-426614174000"
Destination phone number in E.164 format (the number to call)
^\+[1-9]\d{1,14}$"+15551234567"
Caller ID / originating phone number in E.164 format. Must be a number assigned to this agent. If omitted, the system picks from the agent's assigned outbound numbers automatically.
^\+[1-9]\d{1,14}$"+15559876543"
Optional per-call settings (recording, greeting, timeouts)
Show child attributes
Show child attributes
Key-value pairs for mustache template substitution in agent prompts (e.g. first_name, company)

