Skip to main content
The Campaign APIs allow you to automate outbound voice outreach at scale. You can create campaigns, configure telephony dialing parameters, import contacts via CSV, trigger auto-dialing, and fetch call recordings and lead qualifications. All endpoints require the x-api-key header containing the API key provided by your workspace admin. See API Authentication.

The Outbound Campaign Lifecycle

Executing an automated campaign requires following this 5-step sequence:

Step 1: Create Base Campaign Info

Initializes the campaign record, assigns the AI agent, and associates products/services.
  • Endpoint: POST /api/v1/external/campaign/add-update-CampaignInfo

Step 2: Configure Dialing Rules & Telephony

Defines calling hours, retry intervals, virtual numbers, and transfer rules.
  • Endpoint: POST /api/v1/external/campaign/add-update-outCampaign

Step 3 & 4: Upload & Map Contacts

Option A: Bulk Upload CSV

  • Endpoint: POST /api/v1/external/campaign/upload
  • Content-Type: multipart/form-data

Option B: Add Contacts Manually via JSON

  • Endpoint: POST /api/v1/external/campaign/add-update-Contacts

Map Contacts to Campaign

After contacts are added, associate their IDs to the dialer queue:
  • Endpoint: POST /api/v1/external/campaign/map-CampaignContacts

Step 5: Start, Stop, or Schedule the Campaign

Control the automated dialer execution:

Start Campaign

  • Endpoint: POST /api/v1/external/campaign/start

Stop Campaign

Immediately halts the auto-dialer:
  • Endpoint: POST /api/v1/external/campaign/stop

Restart Campaign

Resume a stopped or completed campaign:
  • Endpoint: POST /api/v1/external/campaign/restart

Step 6: Monitor Call Logs & Lead Qualification

1. Fetch Call Logs

Retrieve detailed call records including duration, outcome, and status:
  • Endpoint: POST /api/v1/external/CallLog/Campaign-log-list

2. Download Call Audio Recording

  • Endpoint: GET /api/v1/external/CallLog/recording/{CallLogID}
  • Streams the raw .wav or .mp3 audio recording of the conversation.

3. Qualified Leads List

Review contacts that expressed positive intent or qualified through agent criteria:
  • Endpoint: POST /api/v1/external/lead/lead-list
  • Get Lead Details: GET /api/v1/external/lead/GetCampaignLeadDetails?LeadKeyID={uuid}
  • Get Lead Conversation Transcript: GET /api/v1/external/lead/get-conversation?LeadKeyID={uuid}

Developer Dashboard

Query live call counts and aggregate metrics.

Master Lookups

Look up virtual numbers and stop rule IDs.