APIFleet Sign in

AI outbound calling: consent first, then the dial API and voicemail

AI outbound calling means software dials a number and a voice agent talks to whoever answers. With APIFleet, one POST /calls/outbound places one call; a 201 only means the carrier accepted it. In the US, an AI voice generally needs the called party's prior express consent first, and the API checks no consent, do-not-call or calling-hours rule.

APIFleet team · · 15 min read

What AI outbound calling is, and what the dial request does

An automated call system is software that places or answers phone calls without a person starting each one, and an AI outbound calling agent adds a voice agent that holds the conversation. On APIFleet the agent is an assistant, the caller ID is a number bound to your workspace, and each POST /calls/outbound request places one call.

The order of work matters more than the API. Check consent, the do-not-call registry and the callee's local time first, dial second, and reconcile through call logs and webhooks third. The dial request performs none of the first three checks, so they have to run in your own code before you call it.

The table below separates what you build from what the request does. For the inbound counterpart, where the caller dials you, read the customer service guide.

What you build before the request and what POST /calls/outbound does
ConcernYou build before the requestPOST /calls/outbound does
ConsentCollect the called party's consent, keep a record per number, and skip numbers without itDoes not check consent and keeps no consent record
Do-not-call and opt-outsCheck the National Do Not Call Registry and your own opt-out listDoes not check do-not-call status and keeps no list
Calling hoursWork out the callee's local time and refuse to dial outside the permitted hoursDoes not check calling hours
Frequency and duplicatesTrack every attempt per number and reconcile before any re-dialDoes not check call frequency or whether a number was already called
Campaigns and retriesOwn the list, the schedule and the retry rulesPlaces one call per request, with no campaign dialer or retry queue
Assistant, number, providers, fundsCreate the assistant, bind your number and fund the walletChecks that the assistant exists, that from is bound to your workspace, that the carrier and AI providers are available and that the wallet is funded
The call itselfHandle the 201 body, the webhooks and the call logsAsks the carrier to dial and starts the assistant when the callee answers

How an AI outbound call works on APIFleet

You send assistant_id, from and to. The API checks the assistant and the from number, confirms that the providers and funds are in place, and then asks the carrier to dial. The 201 response comes back once the carrier has accepted that request.

On Telnyx and Twilio the dial request carries a callback URL, and the carrier fetches it only after the callee answers. That fetch starts the media stream between the call and the assistant, and, when route authentication is on, the URL carries a token signed for that one call rather than a shared secret.

Voximplant and VoIPCloud differ. Voximplant starts a VoxEngine scenario that you write, which reads the call data, dials with callPSTN and bridges the audio to the assistant. VoIPCloud is click-to-call: it rings your user_number first and then dials the destination, so the AI is not the calling leg unless that extension forwards to a number bound to the assistant.

How each carrier starts an outbound call
CarrierHow the dial startsIs the AI the calling leg?
TelnyxA TeXML call request with the from number, the to number and a callback URLYes
TwilioA REST Calls request with the same three valuesYes
VoximplantA management API call that starts your VoxEngine scenarioYes, through your scenario
VoIPCloudA click-to-call request that rings user_number firstNo, unless user_number forwards to a number bound to the assistant

The pre-dial gate: consent, do-not-call and hours for an AI cold caller

This section summarizes United States rules as of 19 November 2026, using the eCFR text dated 17 November 2026. It is not legal advice, state and non-US rules differ, and nothing here means a call made through APIFleet meets any rule. The eCFR page links an amendment published at 91 FR 67219 on 26 October 2026, so read the current text before you rely on a clause.

The FCC's declaratory ruling FCC 24-17, adopted on 2 February 2024 in CG Docket No. 23-362, confirms that the TCPA's restrictions on an artificial or prerecorded voice cover current AI technologies that generate human voices. Calls that use them therefore require the prior express consent of the called party, absent an emergency purpose or exemption.

The ruling adds that such calls must give identification and disclosure information for the entity that initiates them, and that telemarketing messages must offer opt-out methods. It says these requirements apply to any AI technology that initiates an outbound call using an artificial or prerecorded voice to consumers.

An AI cold caller that sells to people who did not ask to hear from you is AI telemarketing, and it sits at the strict end of these rules. A call that includes or introduces an advertisement or constitutes telemarketing needs prior express written consent, with the exceptions the rules list.

APIFleet keeps no consent record or do-not-call list, so the gate and the opt-out record belong in your system. An HTTP tool lets the assistant write an opt-out to that system before it ends the call, and you should test that path before launch.

Where the rules sit and what to build before you dial (United States, not legal advice)
SourceWhat it saysWhat to build
FCC 24-17, paragraphs 2 and 9An AI-generated voice counts as an artificial voice. Calls need the called party's prior express consent absent an emergency purpose or exemption, and carry identification, disclosure and, for telemarketing, opt-out requirementsTreat every AI outbound call as an artificial-voice call
47 CFR 64.1200(a)(1)A call with an artificial or prerecorded voice to the lines the rule lists, which include cellular numbers, needs the called party's prior express consent unless it is made for emergency purposesKeep a consent record per number, with the date and the wording
47 CFR 64.1200(a)(2) and (a)(3)A call that includes or introduces an advertisement or constitutes telemarketing needs prior express written consent, both to the lines in (a)(1), including cellular numbers, and to residential lines, with the exceptions the rules listRecord that the consent was written and what it covered
47 CFR 64.1200(b)(1) and (b)(2)The message states at its beginning the identity of the business responsible, under the name it is registered under, and gives a callback number during or after itPut the registered name in the assistant's first words and give a callback number
47 CFR 64.1200(b)(3)Telemarketing and advertisement messages must offer an automated opt-out within 2 seconds of the identification, and a message left on voicemail must give a toll-free number that connects to that opt-outBuild and test the opt-out path yourself
47 CFR 64.1200(c)(1) and (c)(2)No telephone solicitation to a residential subscriber before 8 a.m. or after 9 p.m. local time at the called party's location, or to a number on the National Do Not Call RegistryCompute the callee's local time and check the registry and your own list before every dial

Place the call with one REST request

Send one POST /calls/outbound with your workspace API key as a Bearer token. The body needs assistant_id, from and to, where from and to are E.164 numbers: a plus sign, a nonzero digit and 6 to 14 more digits. Only VoIPCloud uses user_number, and it requires it.

  1. Bind a number you own with PUT /numbers/{number}, because from must be one of your bound numbers, and the carrier that number is bound to is the one that dials.
  2. Run your own gate: consent on file, the number absent from the registry and your opt-out list, and the callee's local time inside the permitted hours. Stop here if any check fails.
  3. Place the call: curl -X POST https://apifleet.dev/calls/outbound -H "Authorization: Bearer $APIFLEET_API_KEY" -H "Content-Type: application/json" -d '{"assistant_id":"ASSISTANT_ID","from":"+13125550100","to":"+13125550101"}'
  4. Read the 201 body, which includes status initiated, the provider, call_sid and call_control_id, and store the identifiers next to your own record of the attempt.
  5. Learn the outcome from the call.started and call.ended webhooks or from GET /calls, because the 201 says only that the carrier accepted the request.

The same call through MCP, and testing it safely

The MCP tool create_outbound_call takes the same fields inside data and also requires confirm set to true, which is a caller acknowledgment, not a replacement for the user's approval of the recipient, the caller number and the expected usage. Its description states that there is no automatic retry or universal idempotency guarantee.

Use numbers you control for the first test calls. The test guide covers silence, interruptions and unclear speech, and it is worth running before you dial anyone outside your team.

Who speaks first on an outbound call, and what it means for the opening

On APIFleet phone calls from 15 August to 27 September 2026, the person answering an outbound call spoke before the assistant's first audio in 37 of 52 cascading calls (71.2%) and 27 of 29 OpenAI Realtime calls (93.1%), while inbound callers did so in 7 of 65 OpenAI Realtime calls (10.8%) and in 12 to 50 of 352 cascading calls (3.4% to 14.2%, counting transcribed words or any voice activity), and those inbound cases came from two assistants in each pipeline.

This is observational production data from APIFleet's own platform, including developer test and demo calls, not a controlled benchmark, and each pipeline detects caller speech its own way. In 35 of the 37 outbound cascading calls where the person spoke first (15 to 18 August), the first audio was a model reply, not a scripted opening.

So in this data the person answering usually spoke first, and the assistant's first audio was then often a reply to what they said rather than a scripted opening. Put the business identification in the assistant's first utterance in both cases, whether it is the opening message or that reply. This is a design recommendation, not a legal claim.

The barge-in guide has the method, the sample sizes and the limits of this data.

Share of phone calls where the person spoke before the assistant's first audio, by row window (including developer test and demo calls)
Direction, pipeline and datesCalls where the person spoke firstNote
Outbound, cascading (15 to 18 August 2026)37 of 52 (71.2%)In 35 of the 37 the first audio was a model reply, not a scripted opening
Outbound, OpenAI Realtime (17 August to 27 September 2026)27 of 29 (93.1%)A small sample
Inbound, OpenAI Realtime (17 August to 9 September 2026)7 of 65 (10.8%)These cases came from two assistants
Inbound, cascading (15 August to 24 September 2026)12 to 50 of 352 (3.4% to 14.2%)The range depends on whether transcribed words or any voice activity count, and the cases came from two assistants

Voicemail and IVRs on outbound AI calls

Each assistant has a voicemail_action setting that applies only on outbound calls. The leave_message and hang_up values add a block to the model's instructions, so the model decides from the greeting whether a machine answered, using cues such as "leave a message after the beep", "no one is available", a long pre-recorded announcement or a beep before it has spoken.

APIFleet sets no carrier answering-machine-detection parameter on any dial request, and its documentation calls detection model-based and not as deterministic as carrier AMD. Test the setting against real greetings from your own list, because this guide gives no detection rate: APIFleet has not published one.

Set it with PATCH /assistants/{id} and a JSON body that holds voicemail_action and, for leave_message, voicemail_message.

Some calls reach an IVR menu instead. Turn on dtmf_enabled for the assistant, which is off by default, and the model gets a send_dtmf tool that takes 1 to 40 characters from 0-9, *, #, w and W, where w and W are half-second pauses. The tool is implemented for Telnyx calls, as a Call Control send_dtmf action on the live call, and for Twilio calls, as a call update whose TwiML contains only a Play of the digits, so test on your own account what a Twilio call does once the digits end; Voximplant calls do not get the tool, and APIFleet's documentation lists no DTMF support for VoIPCloud.

The three voicemail_action values
ValueWhat the assistant doesUse it when
continue (the default)Talks to the machine the same way it would talk to a personYou are still testing, or a machine is unlikely to answer
leave_messageIs told to wait for the beep, say voicemail_message exactly, then end the callA short, reviewed callback message is wanted
hang_upIs told to stay silent and end the call as soon as it hears voicemail cuesNo message should be left on a machine

What a voicemail message should say

The assistant is told to say voicemail_message exactly as written, so the wording is yours to get right. The default message names no business and gives no callback number, which rules (b)(1) and (b)(2) above ask for.

A better template states the registered business name first, gives a callback number and stays short. If the message is telemarketing, rule (b)(3) also asks for a toll-free number that connects to an automated opt-out, and you have to build that path yourself.

The default voicemail message compared with an example that follows rules (b)(1) and (b)(2)
MessageIdentifies the businessGives a callback number
Hi, this is an automated call from our team. Please call us back at your convenience. (the default)NoNo
This is Acme Dental Group about your appointment on Friday at 3 p.m. Please call us back on 1-800-555-0100. (an example)YesYes

Timeouts, retries and duplicate calls: reconcile before you dial again

Every dial request to a carrier is aborted after 10 seconds, on Telnyx, Twilio, Voximplant and VoIPCloud alike. If a carrier answers with an error, the API returns HTTP 502 with a message such as telnyx dial failed: 422, and a dialer with no carrier credentials configured returns HTTP 503.

When the 10 seconds run out, the abort carries no status, so the API answers HTTP 500 with the generic message Internal server error. A local replay of APIFleet's dialer and error handling against a carrier that never answers returned exactly that after 10 seconds, so this is replay evidence, not production data.

A 500 after about 10 seconds therefore does not tell you whether the carrier placed the call. APIFleet's reference says that an outbound-call timeout does not prove that work was rejected, and that there is no universal Idempotency-Key guarantee for the action.

Reconcile before you dial again: read GET /calls with assistant_id and date_from set to just before your request, and look for a row with direction outbound. Outbound calls fire the same call.started and call.ended webhooks as inbound calls, so your webhook log is the second place to look.

The tool calling idempotency guide covers the duplicate-safe pattern for tool calls and webhooks, not for dialing, so use it for the webhook side of this check.

What each response from POST /calls/outbound means
ResponseWhat it meansWhat to do
201 with status initiatedThe carrier accepted initiation. The call may not have connected or finishedStore call_sid and call_control_id, then wait for the webhooks or read GET /calls
400assistant_id is missing, to or from is not E.164, from is not bound to your workspace, or a VoIPCloud request has no user_number. Nothing was dialedFix the request
404The assistant does not existCheck assistant_id
A billing error such as billing_insufficient_balanceFunds or provider credentials are not in place. It is raised before the carrier is contactedFollow the returned code and fund the wallet
502The carrier's API answered with an error, with a message such as telnyx dial failed: 422Read the message and details, and fix the cause
503The dialer has no carrier credentials or connection settings to useAdd them, then try again
500 after about 10 secondsThe carrier did not answer in time, and the call may or may not existDo not retry blindly: check GET /calls and your webhook log first

What AI outbound calling costs per minute

As of 19 November 2026, APIFleet's platform fee is $0.03 per connected AI minute, billed per second, with no monthly subscription. Model, speech and carrier usage are billed on top, and prepaid top-ups start at $10.

A single all-in per-minute figure would be a guess, because the model, the voice and the carrier all change it. Enter your own choices in the voice agent cost calculator, and read the cost guide for the component breakdown. The public MCP tool apifleet_estimate_call_cost takes connected seconds and optional provider and carrier rates, and works without an API key.

A checklist before the first real dial

Run this list for each assistant before it dials anyone outside your own team. It repeats the sections above in the order you should do them.

  1. Confirm that each number on the list has the consent your lawyer says the call type needs, and that the record shows when and how it was given.
  2. Check every number against the National Do Not Call Registry and your own opt-out list before each dial.
  3. Work out the callee's local time and dial only inside the permitted hours.
  4. Put the registered business name and a callback number in the assistant's first words and in voicemail_message, and build the opt-out path if the call is telemarketing.
  5. Choose voicemail_action, enable dtmf_enabled only if the assistant must navigate IVRs, and test both against real greetings and menus.
  6. Store the call_sid and call_control_id from every 201, and look up GET /calls and your webhook log before any re-dial.
  7. If you record calls, check the recording-consent rules where your callees are.
  8. Estimate the cost per minute in the voice agent cost calculator, with your own model, voice and carrier, before you scale.
Workflow diagram of one conversation: caller audio, speech model, tools and context, and the spoken reply

Continue with a practical next step

Frequently asked questions

Is AI outbound calling legal in the US, including cold calling?

It can be, if the checks run before the call. The FCC ruled in FCC 24-17 that an AI-generated voice is an artificial voice under the TCPA, so calls generally need the called party's prior express consent, and a call that includes or introduces an advertisement or constitutes telemarketing needs prior express written consent, with the exceptions the rules list. Solicitations to residential subscribers must also avoid the hours before 8 a.m. and after 9 p.m. local time and numbers on the National Do Not Call Registry. State and non-US rules differ, this is not legal advice, and the APIFleet API runs none of these checks.

How do I place an AI outbound call with an API?

Send one POST /calls/outbound to APIFleet with a Bearer API key and a JSON body holding assistant_id, from and to, where from is a number bound to your workspace and both numbers are in E.164 form. A 201 response with status initiated means the carrier accepted the request, not that anyone answered. Run your consent, do-not-call and calling-hours checks before the request, because the API does not.

What does an AI agent do when an outbound call reaches voicemail?

It follows the assistant's voicemail_action. With continue, the default, it talks to the machine as it would to a person; with leave_message it is told to wait for the beep, say voicemail_message exactly and end the call; with hang_up it is told to end the call. The model decides from the greeting, because APIFleet sets no carrier answering-machine-detection parameter, so test the setting with real greetings.

Who speaks first on an AI outbound call?

In APIFleet's data, usually the person who answers. On APIFleet phone calls from 15 August to 27 September 2026, the person answering an outbound call spoke before the assistant's first audio in 37 of 52 cascading calls (71.2%) and 27 of 29 OpenAI Realtime calls (93.1%), in observational data that includes developer test and demo calls. Put the business identification in the assistant's first utterance, whether it is a scripted opening or the reply to hello.

How much does AI outbound calling cost per minute?

As of 19 November 2026, APIFleet's platform fee is $0.03 per connected AI minute, billed per second, with prepaid top-ups from $10 and no monthly subscription. Model, speech and carrier usage are billed on top, so the all-in price depends on your configuration; use the cost calculator for your own numbers.

Sources and evidence

Prepared with AI assistance and checked against the linked evidence. Examples are illustrative unless explicitly documented as measured results.

Bring your next conversation.

Explore the API, or sign in to your existing workspace. New workspace access is currently limited; contact us to discuss your project.