Trigger AI Phone Call
curl --request POST \
--url https://www.callcow.ai/api/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_phone": "+14155552671",
"workflow_id": "wf_abc123xyz",
"recipient_name": "John Doe",
"recipient_email": "john@example.com",
"recipient_context": "Customer interested in premium plan",
"idempotency_key": "order-12345-call"
}
'import requests
url = "https://www.callcow.ai/api/call"
payload = {
"recipient_phone": "+14155552671",
"workflow_id": "wf_abc123xyz",
"recipient_name": "John Doe",
"recipient_email": "john@example.com",
"recipient_context": "Customer interested in premium plan",
"idempotency_key": "order-12345-call"
}
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({
recipient_phone: '+14155552671',
workflow_id: 'wf_abc123xyz',
recipient_name: 'John Doe',
recipient_email: 'john@example.com',
recipient_context: 'Customer interested in premium plan',
idempotency_key: 'order-12345-call'
})
};
fetch('https://www.callcow.ai/api/call', 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://www.callcow.ai/api/call",
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([
'recipient_phone' => '+14155552671',
'workflow_id' => 'wf_abc123xyz',
'recipient_name' => 'John Doe',
'recipient_email' => 'john@example.com',
'recipient_context' => 'Customer interested in premium plan',
'idempotency_key' => 'order-12345-call'
]),
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://www.callcow.ai/api/call"
payload := strings.NewReader("{\n \"recipient_phone\": \"+14155552671\",\n \"workflow_id\": \"wf_abc123xyz\",\n \"recipient_name\": \"John Doe\",\n \"recipient_email\": \"john@example.com\",\n \"recipient_context\": \"Customer interested in premium plan\",\n \"idempotency_key\": \"order-12345-call\"\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://www.callcow.ai/api/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"recipient_phone\": \"+14155552671\",\n \"workflow_id\": \"wf_abc123xyz\",\n \"recipient_name\": \"John Doe\",\n \"recipient_email\": \"john@example.com\",\n \"recipient_context\": \"Customer interested in premium plan\",\n \"idempotency_key\": \"order-12345-call\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.callcow.ai/api/call")
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 \"recipient_phone\": \"+14155552671\",\n \"workflow_id\": \"wf_abc123xyz\",\n \"recipient_name\": \"John Doe\",\n \"recipient_email\": \"john@example.com\",\n \"recipient_context\": \"Customer interested in premium plan\",\n \"idempotency_key\": \"order-12345-call\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Thanks! Our AI agent will call you shortly."
}{
"error": "Validation failed",
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Endpoints
Trigger Call
Initiates an AI phone call workflow to the specified recipient. Requires an API key for authentication.
POST
/
call
Trigger AI Phone Call
curl --request POST \
--url https://www.callcow.ai/api/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_phone": "+14155552671",
"workflow_id": "wf_abc123xyz",
"recipient_name": "John Doe",
"recipient_email": "john@example.com",
"recipient_context": "Customer interested in premium plan",
"idempotency_key": "order-12345-call"
}
'import requests
url = "https://www.callcow.ai/api/call"
payload = {
"recipient_phone": "+14155552671",
"workflow_id": "wf_abc123xyz",
"recipient_name": "John Doe",
"recipient_email": "john@example.com",
"recipient_context": "Customer interested in premium plan",
"idempotency_key": "order-12345-call"
}
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({
recipient_phone: '+14155552671',
workflow_id: 'wf_abc123xyz',
recipient_name: 'John Doe',
recipient_email: 'john@example.com',
recipient_context: 'Customer interested in premium plan',
idempotency_key: 'order-12345-call'
})
};
fetch('https://www.callcow.ai/api/call', 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://www.callcow.ai/api/call",
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([
'recipient_phone' => '+14155552671',
'workflow_id' => 'wf_abc123xyz',
'recipient_name' => 'John Doe',
'recipient_email' => 'john@example.com',
'recipient_context' => 'Customer interested in premium plan',
'idempotency_key' => 'order-12345-call'
]),
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://www.callcow.ai/api/call"
payload := strings.NewReader("{\n \"recipient_phone\": \"+14155552671\",\n \"workflow_id\": \"wf_abc123xyz\",\n \"recipient_name\": \"John Doe\",\n \"recipient_email\": \"john@example.com\",\n \"recipient_context\": \"Customer interested in premium plan\",\n \"idempotency_key\": \"order-12345-call\"\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://www.callcow.ai/api/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"recipient_phone\": \"+14155552671\",\n \"workflow_id\": \"wf_abc123xyz\",\n \"recipient_name\": \"John Doe\",\n \"recipient_email\": \"john@example.com\",\n \"recipient_context\": \"Customer interested in premium plan\",\n \"idempotency_key\": \"order-12345-call\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.callcow.ai/api/call")
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 \"recipient_phone\": \"+14155552671\",\n \"workflow_id\": \"wf_abc123xyz\",\n \"recipient_name\": \"John Doe\",\n \"recipient_email\": \"john@example.com\",\n \"recipient_context\": \"Customer interested in premium plan\",\n \"idempotency_key\": \"order-12345-call\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Thanks! Our AI agent will call you shortly."
}{
"error": "Validation failed",
"details": {}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Idempotency
To prevent duplicate calls from retries, you can pass an optionalidempotency_key in the request body. If the same key is sent within a 5-minute window, the API returns the cached response without creating a new call.
{
"workflow_id": "wf_abc123xyz",
"recipient_phone": "+14155552671",
"idempotency_key": "order-12345-call"
}
Authorizations
API key generated from Settings → API Keys. Format: ck_live_...
Body
application/json
Phone number of the call recipient in E.164 format
Example:
"+14155552671"
ID of the workflow to execute. Get workflow IDs from the List Workflows endpoint or your dashboard.
Example:
"wf_abc123xyz"
Name of the call recipient
Example:
"John Doe"
Email address of the call recipient. Recommended for meeting booking calls.
Example:
"john@example.com"
Additional context to provide to the AI agent during the call
Example:
"Customer interested in premium plan"
Optional unique key to prevent duplicate calls on retries. Scoped to your organization with a 5-minute TTL.
Example:
"order-12345-call"
⌘I