BigPhone API reference
Add leads to a campaign, read call outcomes, and send or list text messages from your backend.
- Base URL
https://bigphone.ai/api/v1- Request header
Authorization: Bearer YOUR_API_KEY
- As the workspace owner, create a key in API keys. Store it on your server.
- Start with List campaigns to confirm the key has access to the right workspace and get a campaign ID.
- Use that ID to add a test lead. Use a number you control if the campaign is running.
List campaigns
#List the campaigns in the workspace linked to your API key. Use a campaign ID from the response to add a lead.
/campaignscurl --request GET \
--url 'https://bigphone.ai/api/v1/campaigns?limit=20' \
--header "Authorization: Bearer $BIGPHONE_API_KEY"Example response200 OK
{
"data": [
{
"id": "9bc96054-7b88-4bde-8c8a-1e3051f6778c",
"name": "Follow-up",
"status": "draft",
"total_leads": 1,
"created_at": "2026-09-07T14:00:00Z",
"updated_at": "2026-09-07T14:00:00Z"
}
],
"pagination": {
"has_more": false,
"next_cursor": null
}
}Add lead
#Add a lead to an existing campaign. The only required field is phone.
/campaigns/{id}/leadsReplace {id} with the campaign ID and include the country code in phone. Adding a lead to a running campaign can queue a call. The campaign's schedule and pace determine when it can go out.
Set wait_minutes to hold the lead for a minimum time. A value of 30 holds calls for 30 minutes, after which the campaign's rules still apply.
Submitting an existing lead restarts its call cycle and replaces its previous wait. That lead may get another call. Omit wait_minutes or set it to 0 to clear the wait.
Optional fields
| Field | Description |
|---|---|
wait_minutes | Minutes to wait before calling. Whole number from 0 to 525600 (365 days). Defaults to 0. |
first_name / last_name | Contact name. Up to 100 characters each. |
email | Email address. Up to 254 characters. |
company | Company name. Up to 200 characters. |
external_id | Your CRM or contact ID. Up to 200 characters. |
notes / other | Extra context for the agent. Up to 5,000 characters each. |
language | Language code, such as en or fr. New leads default to en. |
verify_lead | Set true for a paid Twilio phone lookup before adding. Defaults to false. Unreachable numbers are excluded from calls. |
curl --request POST \
--url 'https://bigphone.ai/api/v1/campaigns/9bc96054-7b88-4bde-8c8a-1e3051f6778c/leads' \
--header "Authorization: Bearer $BIGPHONE_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"phone": "+14165550123",
"first_name": "Alex",
"external_id": "crm_123",
"wait_minutes": 30
}'Example response201 Created
{
"data": {
"id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"campaign_id": "9bc96054-7b88-4bde-8c8a-1e3051f6778c",
"phone": "+14165550123",
"first_name": "Alex",
"external_id": "crm_123",
"wait_minutes": 30,
"last_name": null,
"full_name": "Alex",
"email": null,
"company": null,
"notes": null,
"other": null,
"language": "en",
"verification_status": "unverified",
"verification_line_status": null,
"verified_at": null,
"excluded": false,
"paused": false,
"created_at": "2026-09-07T14:00:00Z",
"updated_at": "2026-09-07T14:00:00Z"
}
}Find leads
#Find contacts across your campaigns.
/leadsFilters
| Field | Description |
|---|---|
external_id | Exact CRM or contact ID. |
phone | Exact phone number. Encode + as %2B. |
email | Email address, ignoring letter case. |
campaign_id | Only leads in this campaign. |
curl --request GET \
--url 'https://bigphone.ai/api/v1/leads?limit=20&external_id=crm_123' \
--header "Authorization: Bearer $BIGPHONE_API_KEY"Example response200 OK
{
"data": [
{
"id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"campaign_id": "9bc96054-7b88-4bde-8c8a-1e3051f6778c",
"phone": "+14165550123",
"first_name": "Alex",
"external_id": "crm_123",
"wait_minutes": 30,
"last_name": null,
"full_name": "Alex",
"email": null,
"company": null,
"notes": null,
"other": null,
"language": "en",
"verification_status": "unverified",
"verification_line_status": null,
"verified_at": null,
"excluded": false,
"paused": false,
"created_at": "2026-09-07T14:00:00Z",
"updated_at": "2026-09-07T14:00:00Z"
}
],
"pagination": {
"has_more": false,
"next_cursor": null
}
}Remove lead
#Remove a lead from a campaign. The contact and call history are kept.
/campaigns/{id}/leads/{leadId}Use a lead ID from Find leads. No body is needed. Queued or active calls may still finish.
curl --request DELETE \
--url 'https://bigphone.ai/api/v1/campaigns/9bc96054-7b88-4bde-8c8a-1e3051f6778c/leads/806e184b-94aa-46e9-83ec-c7d81735588b' \
--header "Authorization: Bearer $BIGPHONE_API_KEY"Example response200 OK
{
"data": {
"id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"campaign_id": null,
"removed": true
}
}List calls
#Read call history and results.
/callsUse history_status for the result, such as Answered or No answer.
Filters
| Field | Description |
|---|---|
campaign_id | Only this campaign's calls. |
lead_id | Only this lead's history. |
phone | Sender or recipient number. Encode + as %2B. |
date_from / date_to | Start and end timestamps, such as 2026-09-07T00:00:00Z. |
curl --request GET \
--url 'https://bigphone.ai/api/v1/calls?limit=20&campaign_id=9bc96054-7b88-4bde-8c8a-1e3051f6778c' \
--header "Authorization: Bearer $BIGPHONE_API_KEY"Example response200 OK
{
"data": [
{
"id": "b6f3d38e-86a8-457b-a09c-248c8e32ff63",
"campaign_id": "9bc96054-7b88-4bde-8c8a-1e3051f6778c",
"lead_id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"direction": "outbound",
"from_number": "+14165550100",
"to_number": "+14165550123",
"status": "ended",
"history_status": "Answered",
"started_at": "2026-09-07T14:00:00Z",
"ended_at": "2026-09-07T14:01:15Z",
"duration_ms": 75000,
"created_at": "2026-09-07T14:00:00Z",
"updated_at": "2026-09-07T14:01:15Z",
"recording_url": "https://bigphone.ai/api/v1/recordings/8d3a612a6f3748ff9b0a12c74b81e073609ecaa31c354f148ba3e08191b2f445"
}
],
"pagination": {
"has_more": false,
"next_cursor": null
}
}Get call
#Get a call's transcript and collected answers.
/calls/{id}Use a call ID from List calls. Growth and Enterprise include a recording_url. Anyone with the link can play or download the recording while the organization has access.
curl --request GET \
--url 'https://bigphone.ai/api/v1/calls/b6f3d38e-86a8-457b-a09c-248c8e32ff63' \
--header "Authorization: Bearer $BIGPHONE_API_KEY"Example response200 OK
{
"data": {
"id": "b6f3d38e-86a8-457b-a09c-248c8e32ff63",
"campaign_id": "9bc96054-7b88-4bde-8c8a-1e3051f6778c",
"lead_id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"direction": "outbound",
"from_number": "+14165550100",
"to_number": "+14165550123",
"status": "ended",
"history_status": "Answered",
"started_at": "2026-09-07T14:00:00Z",
"ended_at": "2026-09-07T14:01:15Z",
"duration_ms": 75000,
"created_at": "2026-09-07T14:00:00Z",
"updated_at": "2026-09-07T14:01:15Z",
"recording_url": "https://bigphone.ai/api/v1/recordings/8d3a612a6f3748ff9b0a12c74b81e073609ecaa31c354f148ba3e08191b2f445",
"transcript": "Call date and time: 2026-09-07T10:00:00-04:00 (ET)\nDuration: 75 seconds\nFrom: +14165550100 Sarah (Agent)\nTo: +14165550123 Alex (Lead)\nAgent: Hi Alex, is now a good time to talk?\nLead: Yes, go ahead.",
"transcript_entries": [
{
"role": "agent",
"content": "Hi Alex, is now a good time to talk?",
"start": 0
},
{
"role": "lead",
"content": "Yes, go ahead.",
"start": 3.2
}
],
"data_collected": {
"interested": true
},
"disconnection_reason": "user_hangup"
}
}Send SMS
#Send a text to a lead. A sending number is chosen depending on what number previously contacted the lead (SMS or phone call), or, which area code matches most with the lead's
/messagesConnect Twilio with an SMS number. Leads use their campaign's selected numbers. Opted-out contacts cannot receive messages.
| Field | Description |
|---|---|
lead_id or to_number | A lead ID, or a phone number with its country code. |
body | Message text, 1–1,600 characters. |
Optional fields
| Field | Description |
|---|---|
campaign_id | Use this campaign's numbers. Defaults to the lead's campaign; must match when sending to a lead. |
from_number | Choose one of your SMS numbers. It must be selected for the campaign when one is used. |
A queued message is still waiting to send. Check message history for delivery. After a send error, check history before sending again.
curl --request POST \
--url 'https://bigphone.ai/api/v1/messages' \
--header "Authorization: Bearer $BIGPHONE_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"lead_id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"body": "Hi Alex, are you available tomorrow?"
}'Example response201 Created
{
"data": {
"lead_id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"campaign_id": "9bc96054-7b88-4bde-8c8a-1e3051f6778c",
"from_number": "+14165550100",
"to_number": "+14165550123",
"sender_selection": "call_history",
"id": "SM8d3a612a6f3748ff9b0a12c74b81e073",
"direction": "outbound",
"body": "Hi Alex, are you available tomorrow?",
"status": "queued",
"occurred_at": "2026-09-07T14:00:00Z",
"sent_at": null,
"received_at": null
}
}List messages
#Read message history from your connected Twilio account.
/messagesFilter by lead_id to get that contact's messages across campaigns.
Filters
| Field | Description |
|---|---|
lead_id | Only this lead's history. |
phone | Sender or recipient number. Encode + as %2B. |
date_from / date_to | Start and end timestamps, such as 2026-09-07T00:00:00Z. |
curl --request GET \
--url 'https://bigphone.ai/api/v1/messages?limit=20&lead_id=806e184b-94aa-46e9-83ec-c7d81735588b' \
--header "Authorization: Bearer $BIGPHONE_API_KEY"With filters
curl --request GET \
--url 'https://bigphone.ai/api/v1/messages?limit=20&phone=%2B14165550123&date_from=2026-09-07T00:00:00Z&date_to=2026-09-07T23:59:59.999Z' \
--header "Authorization: Bearer $BIGPHONE_API_KEY"Example response200 OK
{
"data": [
{
"id": "SM8d3a612a6f3748ff9b0a12c74b81e073",
"lead_id": "806e184b-94aa-46e9-83ec-c7d81735588b",
"lead_ids": [
"806e184b-94aa-46e9-83ec-c7d81735588b"
],
"direction": "outbound",
"from_number": "+14165550100",
"to_number": "+14165550123",
"body": "Hi Alex, are you available tomorrow?",
"occurred_at": "2026-09-07T14:00:00Z",
"sent_at": "2026-09-07T14:00:00Z",
"received_at": null,
"status": "delivered"
}
],
"pagination": {
"has_more": false,
"next_cursor": null
}
}