Place a FaceTime Call Endpoint
curl --request POST \
--url https://app.tuco.ai/api/facetime/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lineId": "<string>",
"handle": "<string>"
}
'import requests
url = "https://app.tuco.ai/api/facetime/call"
payload = {
"lineId": "<string>",
"handle": "<string>"
}
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({lineId: '<string>', handle: '<string>'})
};
fetch('https://app.tuco.ai/api/facetime/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://app.tuco.ai/api/facetime/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([
'lineId' => '<string>',
'handle' => '<string>'
]),
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://app.tuco.ai/api/facetime/call"
payload := strings.NewReader("{\n \"lineId\": \"<string>\",\n \"handle\": \"<string>\"\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://app.tuco.ai/api/facetime/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lineId\": \"<string>\",\n \"handle\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/facetime/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 \"lineId\": \"<string>\",\n \"handle\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"callDocId": "<string>",
"streamUrl": "<string>",
"used": 123,
"limit": 123,
"resetsAt": "<string>"
}Voice / Calling
Place a FaceTime Call Endpoint
Dial a FaceTime Audio call from one of your FaceTime lines to a phone number or Apple ID. Returns a streamUrl for two-way audio. Enforces the one-call-per-line lock and the 40-numbers-a-day limit.
POST
/
api
/
facetime
/
call
Place a FaceTime Call Endpoint
curl --request POST \
--url https://app.tuco.ai/api/facetime/call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lineId": "<string>",
"handle": "<string>"
}
'import requests
url = "https://app.tuco.ai/api/facetime/call"
payload = {
"lineId": "<string>",
"handle": "<string>"
}
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({lineId: '<string>', handle: '<string>'})
};
fetch('https://app.tuco.ai/api/facetime/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://app.tuco.ai/api/facetime/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([
'lineId' => '<string>',
'handle' => '<string>'
]),
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://app.tuco.ai/api/facetime/call"
payload := strings.NewReader("{\n \"lineId\": \"<string>\",\n \"handle\": \"<string>\"\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://app.tuco.ai/api/facetime/call")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lineId\": \"<string>\",\n \"handle\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/facetime/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 \"lineId\": \"<string>\",\n \"handle\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"callDocId": "<string>",
"streamUrl": "<string>",
"used": 123,
"limit": 123,
"resetsAt": "<string>"
}Live. Places the call and returns a
streamUrl — connect to it to stream the call’s audio both ways into your own UI (see Stream FaceTime Call Audio). Call-state webhooks fire call.ringing → call.answered → call.ended alongside.No sandbox. A request from the Try it panel runs against production (
https://app.tuco.ai) with the key you paste in, and places a real FaceTime call to a real device.Overview
Dial a FaceTime Audio call from one of your workspace’s FaceTime-enabled lines to any phone number or Apple ID email that has FaceTime. The call goes out from the same Apple identity that texts the lead — no carrier, no “Potential spam” label. See FaceTime Audio Calling for how the feature works end to end. The endpoint enforces, in order:- Line is FaceTime-enabled — the line must have the FaceTime Audio add-on and be reachable.
- One call per line — a line already on a call is locked; a second caller gets
409. - Daily limit — a line may reach 40 different numbers per workspace day on FaceTime. See Daily limit.
Making a request
- Method:
POST - URL:
https://app.tuco.ai/api/facetime/call - Headers:
Authorization: Bearer tuco_...andContent-Type: application/json - Body: JSON with
lineIdandhandle
Request body
{
"lineId": "699f704bc405fae6ca299a08",
"handle": "+13025550123"
}
The FaceTime line to call from — the line’s
_id (MongoDB ObjectId). The line must be in your workspace and have the FaceTime Audio add-on. Get it from Get All Lines (lines with the add-on have a facetimeUsage field).Who to call: a phone number in E.164 (e.g.
+13025550123) or an Apple ID email (matched case-insensitively). The destination must have FaceTime.Example
curl -X POST https://app.tuco.ai/api/facetime/call \
-H "Authorization: Bearer tuco_your_key" \
-H "Content-Type: application/json" \
-d '{
"lineId": "699f704bc405fae6ca299a08",
"handle": "+13025550123"
}'
Response
200 OK — the dial was accepted and the line is ringing the destination.
{
"callDocId": "6a4ed2d5dec1b2d01a6f7656",
"streamUrl": "wss://app.tuco.ai/api/facetime/stream?token=eyJhbGciOi..."
}
The FaceTime call record ID. Keep it — you pass it to Control a FaceTime Call to hang up, mute, or unmute, and it’s the
callDocId on every call webhook.A one-time, per-call WebSocket URL for the call’s two-way audio. Open it to send your caller’s microphone and hear the other side — see Stream FaceTime Call Audio. The token is short-lived and scoped to this one call, and carries no API key, so it’s safe to use from a browser. Omitted only if audio streaming isn’t configured for your workspace.
200 means the call is ringing, not answered. A number only counts toward the daily limit once the call connects — Tuco measures this from the live call, not from anything your client reports. Unanswered and failed dials are free.Errors
Errors return a JSON body with anerror field (some add message and extra context).
| HTTP | error | Meaning |
|---|---|---|
| 401 | Unauthorized | Missing or invalid API key, or the key has no workspace. |
| 400 | Invalid JSON body | Body wasn’t valid JSON. |
| 400 | valid lineId required | lineId missing or not a valid ObjectId. |
| 400 | handle required | handle was empty. |
| 404 | Line not found | No line with that _id in your workspace. |
| 400 | Line is not FaceTime-enabled | The line doesn’t have the FaceTime Audio add-on. |
| 409 | in-use | The line is already on a call — see below. |
| 503 | limit_check_unavailable | The daily-limit counter couldn’t be read; nothing was dialed. Fail-closed by design; retry. |
| 429 | facetime_daily_limit | The line already reached 40 different numbers today — see below. |
| 502 | Agent unreachable | The line couldn’t be reached to place the call; the lock is released. Includes callDocId. |
409 in-use
One call per line. While a call is live (or within 30 minutes of a crashed one), another caller is refused:
{
"error": "in-use",
"message": "This line is in use by a teammate.",
"inUseBy": "rep@yourcompany.com"
}
429 facetime_daily_limit
The line has connected with 40 different numbers on this workspace day. Numbers it already reached today can still be called (repeats are free); new numbers resume after resetsAt (workspace midnight).
{
"error": "facetime_daily_limit",
"message": "This line has connected with 40 different numbers on FaceTime today. You can still call numbers it already reached today.",
"used": 40,
"limit": 40,
"resetsAt": "2026-11-21T05:00:00.000Z"
}
Read a line’s current count any time from the
facetimeUsage field in Get All Lines — used, limit, remaining, resetsAt — so you can check before you dial instead of catching the 429.