Rate this page:

CallLists

Methods

AppendToCallList

Copy URL

Appending a new task to the existing call list.
This method accepts CSV files with custom delimiters, such a commas (,), semicolons (;) and other. To specify a delimiter, pass it to the delimiter parameter.

Available for roles

To call this method, make sure your service account has one of the following roles:

See Available Roles
Owner
Admin
Developer
Call list manager
AppendToCallList example

AppendToCallList example

Append new tasks to existing call list.

Parameters

  • delimiter:

    string

    Optional

    Separator values. The default is ';'

  • encoding:

    string

    Optional

    Encoding file. The default is UTF-8

  • escape:

    string

    Optional

    Escape character for parsing csv

  • file_content:

    file

    Send as request body or multiform

  • list_id:

    number

    The call list ID

Returns

  • count:

    number

    The number of stored records

  • list_id:

    number

    The list ID

  • result:

    boolean

    true

CreateCallList

Copy URL

Adds a new CSV file for call list processing and starts the specified rule immediately. To send a file, use the request body. To set the call time constraints, use the following options in a CSV file:

  • __start_execution_time – when the call list processing starts every day, UTC+0 24-h format: HH:mm:ss
  • __end_execution_time – when the call list processing stops every day, UTC+0 24-h format: HH:mm:ss
  • __start_at – when the call list processing starts, UNIX timestamp. If not specified, the processing starts immediately after a method call
  • __task_uuid – call list UUID. A string up to 40 characters, can contain latin letters, digits, hyphens (-) and colons (:). Unique within the call list

This method accepts CSV files with custom delimiters, such a commas (,), semicolons (;) and other. To specify a delimiter, pass it to the delimiter parameter.
IMPORTANT: the account's balance should be equal or greater than 1 USD. If the balance is lower than 1 USD, the call list processing does not start, or it stops immediately if it is active.

Available for roles

To call this method, make sure your service account has one of the following roles:

See Available Roles
Owner
Admin
Developer
Call list manager
CreateCallList example

CreateCallList example

Add a new CSV file.

Parameters

  • delimiter:

    string

    Optional

    Separator values. The default is ';'

  • encoding:

    string

    Optional

    Encoding file. The default is UTF-8

  • escape:

    string

    Optional

    Escape character for parsing csv

  • file_content:

    file

    Send as "body" part of the HTTP request or as multiform. The sending "file_content" via URL is at its own risk because the network devices tend to drop HTTP requests with large headers

  • interval_seconds:

    number

    Optional

    Interval between call attempts in seconds. The default is 0

  • max_simultaneous:

    number

    Number of simultaneously processed tasks

  • name:

    string

    File name, up to 255 characters and cannot contain the '/' and '\' symbols

  • num_attempts:

    number

    Number of attempts. Minimum is 1, maximum is 5

  • priority:

    number

    Call list priority. The value is in the range of [0 … 2^31] where zero is the highest priority

  • reference_ip:

    string

    Optional

    Specifies the IP from the geolocation of the call list subscribers. It allows selecting the nearest server for serving subscribers

  • rule_id:

    number

    The rule ID. It is specified in the Applications section of the Control Panel

  • server_location:

    string

    Optional

    Specifies the location of the server where the scenario needs to be executed. Has higher priority than reference_ip. Request getServerLocations for possible values

Returns

  • count:

    number

    The number of stored records

  • list_id:

    number

    The list ID

  • result:

    boolean

    true

GetCallListDetails

Copy URL

Gets details of the specified call list. Returns a CSV file by default.

Available for roles

To call this method, make sure your service account has one of the following roles:

See Available Roles
Owner
Admin
Developer
Call list manager
sys.Admin read only
GetCallListDetails example

GetCallListDetails example

Get all lists registered by user.

Parameters

  • count:

    number

    Optional

    Maximum number of entries in the result

  • delimiter:

    string

    Optional

    Separator values. The default is ';'

  • encoding:

    string

    Optional

    Encoding of the output file. Default UTF-8

  • list_id:

    number

    The list ID

  • offset:

    number

    Optional

    The first N records are skipped in the output

  • output:

    string

    Optional

    Output format (CSV/JSON/XLS). Default CSV

Returns

GetCallLists

Copy URL

Get all call lists for the specified user.

Available for roles

To call this method, make sure your service account has one of the following roles:

See Available Roles
Owner
Admin
Developer
Supervisor
Call list manager
Support
GetCallLists example

GetCallLists example

Get all lists registered by user.

Parameters

  • application_id:

    intlist

    Optional

    The application ID to filter. Can be a list separated by semicolons (;). Use the 'all' value to select all applications

  • count:

    number

    Optional

    The max returning record count

  • from_date:

    timestamp

    Optional

    The UTC 'from' date filter in 24-h format: YYYY-MM-DD HH:mm:ss

  • is_active:

    boolean

    Optional

    Whether to find only active call lists

  • list_id:

    intlist

    Optional

    The list ID to filter. Can be a list separated by semicolons (;). Use the 'all' value to select all lists

  • name:

    string

    Optional

    Find call lists by name

  • offset:

    number

    Optional

    The first N records are skipped in the output

  • to_date:

    timestamp

    Optional

    The UTC 'to' date filter in 24-h format: YYYY-MM-DD HH:mm:ss

  • type_list:

    string

    Optional

    The type of the call list. The possible values are AUTOMATIC and MANUAL

Returns

  • count:

    number

    The returned call list count

  • Array of lists

  • total_count:

    number

    The total found call list count

RecoverCallList

Copy URL

Resume processing the specified call list.

Available for roles

To call this method, make sure your service account has one of the following roles:

See Available Roles
Owner
Admin
Developer
Call list manager
RecoverCallList example

RecoverCallList example

Restore list with id = 1.

Parameters

  • list_id:

    number

    The list Id

Returns

  • count_recovery:

    number

    Number restored tasks

  • result:

    boolean

    true

StopCallListProcessing

Copy URL

Stops processing the specified call list.

Available for roles

To call this method, make sure your service account has one of the following roles:

See Available Roles
Owner
Admin
Developer
Call list manager
Support
StopCallListProcessing example

StopCallListProcessing example

Cancel list with id = 1.

Parameters

  • list_id:

    number

    The list Id

Returns

  • msg:

    string

    Result message

  • result:

    boolean

    true