Calling Add-ons
curl --request GET \
--url https://app.tuco.ai/api/lines/{id}/calling-addons \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tuco.ai/api/lines/{id}/calling-addons"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tuco.ai/api/lines/{id}/calling-addons', 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/lines/{id}/calling-addons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.tuco.ai/api/lines/{id}/calling-addons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tuco.ai/api/lines/{id}/calling-addons")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/lines/{id}/calling-addons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyLines & Leads
Calling Add-ons
List and buy per-line calling add-ons — the FaceTime Audio add-on and the Registered caller ID add-on — for a phone line in your workspace.
GET
/
api
/
lines
/
{id}
/
calling-addons
Calling Add-ons
curl --request GET \
--url https://app.tuco.ai/api/lines/{id}/calling-addons \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tuco.ai/api/lines/{id}/calling-addons"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tuco.ai/api/lines/{id}/calling-addons', 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/lines/{id}/calling-addons",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.tuco.ai/api/lines/{id}/calling-addons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tuco.ai/api/lines/{id}/calling-addons")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/lines/{id}/calling-addons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyThe Try it panel runs against production with the key you paste.
POST charges your card.addon | Price | What it does |
|---|---|---|
facetime_audio | $100/mo per line | Calls go over FaceTime Audio — no carrier spam label. Costs more because it needs different hardware than iMessage. |
caller_id_registration | $50 setup + $50/mo per line + $0.075 per call | A separate, fully-attested calling number registered with carriers (Branded Calling) that shows your business name on US-to-US calls to T-Mobile and Verizon mobiles. Calls come from that number, not your iMessage number. Carrier vetting can take a few business days. |
List — GET /api/lines/{id}/calling-addons
string
required
The line’s
_id.{
"lineId": "6a091e74542d9e3d645925ae",
"included": ["500 outgoing minutes per line per month, with call recording.", "…"],
"addons": [
{ "key": "facetime_audio", "label": "FaceTime Audio add-on", "beta": false, "price": "$100/mo per line",
"monthlyCents": 10000, "setupCents": 0, "perCallCents": 0, "status": "none", "paymentUrl": null },
{ "key": "caller_id_registration", "label": "Registered caller ID add-on", "beta": false,
"price": "$50 setup + $50/mo + $0.075/call per line", "monthlyCents": 5000, "setupCents": 5000,
"perCallCents": 7.5, "status": "active", "paymentUrl": null, "callingNumber": "+12125550199" }
]
}
status is one of none, awaiting_payment (pay paymentUrl), pending_setup (paid — we’re
setting it up), active, or canceled.
Buy — POST /api/lines/{id}/calling-addons
curl -X POST "https://app.tuco.ai/api/lines/6a091e74542d9e3d645925ae/calling-addons" \
-H "Authorization: Bearer tuco_xxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "addon": "facetime_audio", "acceptCharges": true }'
addon—facetime_audioorcaller_id_registration.acceptCharges— must betrue: you agree to the setup fee plus today’s prorated share of the monthly, then monthly. Non-refundable. Without it:422.
201 with status: "pending_setup" once paid, or
202 with status: "awaiting_payment" and a paymentUrl only when the card is declined or the bank
requires authentication (3-D Secure) — the customer confirms there, and the add-on starts once paid.
An unpaid paymentUrl lapses after about 23 hours; the add-on then goes back to none and can be
bought again. Buying an add-on the line already has returns 409, and so does buying one while
another add-on payment on the workspace is still waiting ("code": "PAYMENT_IN_PROGRESS") — pay or
let that one lapse first. Registered caller ID calls are billed at $0.075 each, added to your next invoice.
Removing an add-on
Add-ons can’t be removed after purchase. Contact support@tuco.ai to change them.
DELETE /api/lines/{id}/calling-addons returns 403 with "code": "ADDON_REMOVAL_SUPPORT_ONLY".Ordering add-ons with a new line
SendcallingAddons and acceptCallingAddonCharges: true on
Create Line Request. Add-ons bought with your plan at
checkout attach to new lines automatically, with no second charge.