JustCall icon

JustCall

Interact with JustCall API (Calls, SMS, Contacts, Phone Numbers, AI Voice Agents, Sales Dialer, JustCall AI)

Sales Dialer → Add Contact to Campaign

AI-generated

Summary

Adds a contact to a Sales Dialer campaign.

Inputs

  • campaignId (required) — The ID of the campaign to add the contact to
  • phoneNumber — Phone number of the contact. Provide either this or Contact ID. Creates or updates contact if number exists.
  • contactId — The ID of the contact to add. Provide either this or Phone Number.
  • additionalFields — Optional contact details including name, email, birthday, occupation, address, and custom fields.

Output shape

Execution data from the JustCall API reflecting the contact addition result. Returns the created or updated contact record within the campaign.

POST /v2.1/sales_dialer/campaigns/contact with body {campaign_id, contact_id or phone_number, optional name/email/birthday/occupation/address/custom_fields}. Exactly one of phoneNumber or contactId must be provided; providing both or neither throws a NodeOperationError.

Examples

Example 1: Add a contact by phone number to a campaign

Set campaignId to the target campaign ID, phoneNumber to the contact's E.164 number. Optional additionalFields may include name, email, birthday, occupation, address, and custom_fields as fixedCollection entries.

Example 2: Add an existing contact by ID to a campaign

Set campaignId and contactId. Additional fields are optional and ignored if contactId is used without accompanying name/email/etc., per JustCall API behavior.

Links

Discussion