Skip to main content

DialedIn API Integration

The DialedIn API Integration allows you to directly connect your systems with the DialedIn platform, enabling full control over lead management, call operations, messaging, and agent workflows through simple HTTP requests.

Written by Max Areas

Authentication

Prior to using the API a properly obtained Token via Admin application (Settings->Integration->API Tokens) should be generated.

Each call will contain 2 required parameters:

  • token - properly obtained API Integration Token

  • accid - dhm

Inserting Lead

Any lead inserted by this method will be put into the database as a Hot Lead. Which means it will be dialed with priority as soon as possible. By default duplicate leads will be suppressed and won't be dialed.

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • Campaign - name of campaign where lead will be inserted (should exist beforehand)

  • PrimaryPhone

Optional Values:

  • Subcampaign - name of subcampaign where lead will be inserted

  • timezone - tells the system whether to check or not timezone based on phone area. Allowed values are: 0 or 1 (0 - default is disabled)

  • AllowDialingDups - tells the system whether to dial duplicated leads or not (dups lookup being performed based on "Duplicates Check" mode). Allowed values are: 0 or 1 (0 - default is disabled)

  • DialNonCallables - tells the system whether to dial non-callable leads (including numbers added into DNC table) or not. Allowed values are: 0 or 1 (0 - default is disabled)

  • DuplicatesCheck - tells the system how to check for duplicates. Allowed values are: 0 (default) - check duplicates within same campaign only, 1 - allow duplicates, 2 - check duplicates across all campaigns, 3 - check duplicates within same campaign and subcampaign

  • ImportOnly - tells the system if that is regular import without dialing. Allowed values are: 0 or 1 (0 - default)

To create Agent Specific Callback:

  • CallbackAgent - Selected Agent

  • CallbackDate - Callback Date. Date format: "MM/dd/yyyy HH:mm:ss", where MM - 2-digit month, dd - 2-digit day, yyyy - 4-digit year, HH:mm:ss - time in 24-hrs format. Date and Time should be in Customer Phone Timezone. Sample: "08/23/2018 14:20:00"

  • CallbackNotes - optional. Callback Notes

Any other values will be recognized as lead fields so they should have exact same names as in DB.

Any custom field should have prefix " adv_ " in its name. Additionally, any spaces in the field names should be replaced with double underscore (__)

Default field length:

  • ClientId = 50

  • FirstName = 100

  • LastName = 100

  • Address = 500

  • City = 100

  • State = 2

  • ZipCode = 10

  • PrimaryPhone = 50

  • Rep = 50

  • CallStatus = 50

  • Campaign = 50

  • Notes = unlimited

  • Subcampaign = 50

Sample request:

Updating Lead

This method is used to UPDATE existing lead. It won't create new one and it won't send command to dial the updated lead right away.

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • SearchField - based on which field we will be looking for a lead. Allowed values are: ClientId , LeadId , Phone

  • Identifier - search value

To create Agent Specific Callback:

  • CallbackAgent - Selected Agent

  • CallbackDate - Callback Date. Date format: "MM/dd/yyyy HH:mm:ss", where MM - 2-digit month, dd - 2-digit day, yyyy - 4-digit year, HH:mm:ss - time in 24-hrs format. Date and Time should be in Customer Phone Timezone. Sample: "08/23/2018 14:20:00"

  • CallbackNotes - optional. Callback Notes

Any other values will be recognized as lead fields so they should have exact same names as in DB.

Any custom field should have prefix "adv_ " in its name. Additionally, any spaces in the field names should be replaced with double underscore (__)

Any fields that won't be found for current lead will be omitted.

Sample request:

Lead Operations

This method is used to perform an ACTION on an existing lead.

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • Action - look at "Action" section below

Action Values:

  • SearchLead - this action will lookup current lead and return available information if any.

Parameters:

  1. SearchField - based on which field we will be looking for a lead. Allowed values are: ClientId , LeadId , Phone.

  2. Identifier - search value. Will be passed as-is, so proper formatting is required at the caller side.

  3. Detailed - indicate if all available lead fields should be returned, or just search result. Allowed values are: 0/1

  4. Campaign - name of campaign to restrict lookup (optional, empty = all)

  5. Subcampaign - name of sub-campaign to restrict lookup (optional, empty = all)

Return values: {"id": [record identifier],"LeadExists": [true/false]}

  • InsertDnc - this action will add DNC number and scrub it for all existing leads.

Parameters:

  1. Number - 10-digit phone number

  • DeleteDnc - this action will remove DNC number. Existing leads marked as DNC won't be affected.

Parameters:

  1. Number - 10-digit phone number

Text Operations

This method used to send SMS.

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • Action - look at "Action" section below

Action Values:

  • SendSms - this action will send SMS on behalf of the provided account.

Parameters:

  1. From - owned 10-digit source number

  2. To - destination number

  3. Message - text message to send

  4. Agent (optional) - agent login name (case sensitive)

  5. LeadId (optional) - existing lead where SMS should be assigned.

Sample request:

Call Operations ( including agent Availability)

This method used to perform an ACTION for existing call.

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • Action - look at "Action" section below

Action Values:

  • AvailableInboundAgents
    Parameters:

  1. DID (Required) - Ring Group Number

  2. CallId (Optional) - caller identifier to perform a Lead lookup

  3. CanBeOnCall (Optional) (default=0 -- ignore) - indication if an agent can be considered available while processing another call

  4. CanBeOnBreak (Optional) (default=0 -- ignore) - indication if an agent can be considered available while on break

  5. CanDoWrapUp (Optional) (default=0 -- ignore) - indication if an agent can be considered available while in wrap up.

  • ConferenceCall - this action will initiate conference call for an existing conversation.

Parameters:

  1. Agent - agent login name (case sensitive)

  2. Phone - conference number

  3. PrivateConference - indication if customer should be muted (0 [Client not muted] or 1 [Client Muted], 0 - default)

Agent Dial List Operations

This method used to MANAGE Agent Dial Lists.

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • Action - look at "Action" section below

  • List - Agent Dial List Name (should be unique to make proper call)

  • Phone - phone number that should be affected by the call (only digits, same as appears in the Dial List without extra prefixes)

Action Values:

  • CreateList - create new Agent Dial List. Name should be unique for selected Agent.

Parameters:

  1. Agent

  2. List

  • DeleteList - remove Agent Dial List.

Parameters:

  1. Agent

  2. List

  • AddPhone - add new Phone Number to existing Agent Dial List.

Parameters:

  1. Agent

  2. List

  3. Phone

  • DeletePhone - remove Phone Number from existing Agent Dial List.

Parameters:

  1. Agent

  2. List

  3. Phone

  • PhoneDialed - mark existing Phone as Dialed in existing Agent Dial List.

Parameters:

  1. Agent

  2. List

  3. Phone

  • PhoneUnDialed - mark existing Phone as UnDialed (skipped) in existing Agent Dial List.

Parameters:

  1. Agent

  2. List

  3. Phone

Rules

  1. It is not recommended to use spaces in Agent Login Name or Agent Dial List Name for API calls

  2. Agent Dial List Name should be unique for any operation to perform. Error will be returned otherwise.

  3. Duplicated Phone Numbers are being suppressed in Agent Dial List

  4. When a Phone is marked Dialed/UnDialed, relavent information like lead, call history record is not being modified if any exists.

Playlist Operations

This method used to MANAGE Playlist .

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • Playlist - relative playlist Name

  • Action - look at "Action" section below

  • Filter - filter name associated with Playlist

Action Values:

  • EnableFilter - Make filter active.

Parameters:

  1. Playlist

  2. Filter

  • DisableFilter - Make filter inactive.

Parameters:

  1. Playlist

  2. Filter

  • Reload - Apply changes and reload leads in associated campaigns

Parameters:

  1. Playlist

  • AssignFilter - Assign filter to the Playlist.

Parameters:

  1. Playlist

  2. Filter

  • RemoveFilter - Un-assign filter from the Playlist

Parameters:

  1. Playlist

  2. Filter

Skill List Operations

This method used to MANAGE Skills and Call Queues.

Supported Methods: POST,GET

Required Values:

  • token - look at "Authentication" section above

  • accid - look at "Authentication" section above

  • Action - look at "Action" section below

  • Skill - skill name

  • Source - DID Source

Action

  • UpdatePriority - Set skill priority, delay, status for selected Source DID. If no priority exists, new one will be added.

Parameters:

  1. Skill

  2. Source

Optional (ignored if not set):

  1. Priority - Skill Priority

  2. Delay - Skill Priority Delay in seconds

  3. Active - DID Source status for Skill (1 - active, 0 - disabled)

  • Reload - Apply changes and reload Call Queues for the affected group

Parameters: none

Did this answer your question?