Add Contact To Campaign

Adds a new contact to Dialer Campaign.

A sync method.

Required parameters:

ParameterDescription
app_tokenMandatory. Application token supplied by Alotech.
uniqueidOptional. A uniqueid value to match the contact on reports.
nameOptional. Name of the contact.
surnameOptional. Surname of the contact.
emailOptional. Email of the contact.
campaignMandatory. Unique ID of the campaign on Alotech platform.
*homephonePartly optional. Home phone number of the contact in e164 format.
*businessphonePartly optional. Business phone number of the contact in e164 format.
*mobilephonePartly optional. Mobile phone number of the contact in e164 format.
*customphonePartly optional. Custom phone number of the contact in e164 format.
customfieldsCustom fields in json.
listnameOptional. List name of the contact.
planned_dateOptional. The planned call date.  Example : 2018-09-21 17:00:00
delayOptional. Delay In minutes. If planned_date parameter is not given, planned_call date will be calculated as **delay** minutes later from now.
startup_profile

Optional.

If contact has more than one phone number, for selecting which phone number will be dialed first, you can provide startup_profile parameter.

Valid options:

  • business

  • custom

  • home

  • mobile

unique_check

Optional.

Checks if the number exist in the campaign and waiting to be dialed.

Valid options:

  • true
  • false
priority

Optional. Default false

Valid options:

  • 1
  • on
  • true
spam_check

Optional.

Checks if the number exist in the campaign.

Valid options:

  • true
  • false
preferred_agentOptional user key. Reserves predictive campaign call to given agent for reservation time. Reservation time can be set in Campaign settings.

*There must be at least one phone number.

Example: http://alotech.alo-tech.com/api/?function=addcontacttocampaign&app_token=1234567890&uniqueid=111111111&name=Name&surname=Surname&email=user@example.com&campaign=01234567890&mobilephone=05321234567&listname=first_list


Example to custom fields: http://alotech.alo-tech.com/api/?function=addcontacttocampaign&app_token=1234567890&uniqueid=111111111&name=Name&surname=Surname&email=user@example.com&campaign=01234567890&mobilephone=05321234567&listname=first_list &customfields=COMPANY:~:AloTech|TAXNUMBER:~:0123456789