Make Call

Places an immediate outbound call to one lead.

Base URL: examples use <vaanii_api_base_url> in place of the Vaanii API address. Contact the Vaanii team at team@vaanii.ai to get it.

POST/api/v1/calls/make

Description

Dials the lead straight away using the campaign's active telephony provider. The campaign is derived from the lead, so there is no campaign parameter. The call is placed asynchronously: a 200 means the provider accepted the request, not that the call connected. Poll Get Call with the returned call_id, or use List Calls with lead_id, to follow the outcome.

This removes the lead from auto-calling. A lead called through this endpoint is marked done and its scheduled calls are cleared — including when nobody answers. No further automatic calls are made to that lead, and every subsequent call must be placed through this endpoint. This is deliberate: it stops automated and manual calling from dialing the same person at the same time. If you want the lead to stay in its auto-calling schedule, do not call this endpoint for it.

Each call counts toward the campaign's maximum attempts per lead and consumes credits from your account balance.

Request body (JSON)

FieldTypeDescription
lead_id POSTUUIDThe lead to call. Required.
FieldTypeDescription
call_idUUIDThe new call's ID. Pass it to Get Call to follow the outcome.
statusstringready once the provider has accepted the request.
providerstringTelephony provider that placed the call.
lead_idUUIDThe lead that was dialed.
lead_namestringThe lead's stored first name.
phone_e164stringThe number dialed, in E.164.
campaign_idUUIDCampaign the lead belongs to.

Errors

StatusDetail
402Insufficient credit balance. Recharge to continue making calls.
403Demo accounts cannot make live calls.
404Lead not found, or not in your company.
422The campaign's active provider cannot dial leads.
502Telephony provider unreachable. Safe to retry.