This function retrieves all dialler contacts from the client account or from a specific dialler campaign.
|
Parameter | Where | Type | Data |
---|---|---|---|
diallerCampaignsID | Query | Integer | The ID of the Dialler Campaign to retrieve the contacts from. If not passed, all contacts in the client account will be retrieved. Caution - this function will return a lot of data if the campaigns contain lots of contacts. |
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
A JSON Structure containing the following fields:
Field | Type | Data |
---|---|---|
filter | String | The applied filter. This is reserved for future use. |
limitStart | Integer | The first record index. Currently 0, reserved for future use. |
limitPageSize | Integer | The number of records. -1 indicates all records. Reserved for future use. |
records | DiallerCampaigns [] | An array of dialler campaigns. |
count | Integer | The number of dialler campaigns returned. |
orderBy | String | The field used to sort the dialler campaigns. |
ascending | Boolean | Whether the array of campaigns is sorted ascending or descending. |
status | Integer | The return code (also provided by the http status code). |
Note, the dialler contact array has been shortened for readability.
|
This function retrieves a specific dialler contact by ID.
|
Parameter | Where | Type | Data |
---|---|---|---|
diallerContactsID | URL | Integer | The ID of the Dialler Contact. |
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
A JSON Structure containing the returned contact.
Field | Type | Data |
---|---|---|
records | DiallerContacts [] | An array of dialler contacts, containing one contact. |
count | Integer | 1 |
status | Integer | The return code (also provided by the http status code). |
Note, the dialler campaign array has been shortened for readability.
|
This function retrieves the dialler contacts given the UserData value to search for.
|
Parameter | Where | Type | Data |
---|---|---|---|
userData | Query | String | The userData of the dialler contacts to search for. |
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
A JSON Structure containing the returned contacts.
Field | Type | Data |
---|---|---|
records | DiallerContacts[] | An array of dialler contacts. |
count | Integer | The number of records returned. |
status | Integer | The return code (also provided by the http status code). |
Note, the dialler contact data has been shortened for readability.
|
This function imports a dialler contact into a specific dialler campaign specified by either the ID or name of the Dialler Campaign.
|
Parameter | Where | Type | Data |
---|---|---|---|
overwriteDuplicates | Query | Boolean | Whether to overwrite duplicate contacts. If this is true, existing contact data will be overwritten when a match on the UserData field is detected. If this is false, the new contact will be created whether a matching record is found or not. |
A JSON structure containing the contact to import.
Note that the following fields are mandatory:
The other fields may be provided or left empty.
Example (all fields, provide DiallerCampaignsID):
|
Example (shortened, provide DiallerCampaignsName):
|
If the request is performed, 200 OK is returned, returning the imported or already existing contact if it was a duplicate.
See Return Codes for further possible status codes.
A JSON Structure containing the imported contact.
Field | Type | Data |
---|---|---|
records | DiallerContacts[] | An array of dialler contacts. |
count | Integer | The number of records returned. |
status | Integer | The return code (also provided by the http status code). |
Note, the dialler contact data has been shortened for readability.
|
This function deletes a dialler contact including all related data by ID.
|
Parameter | Where | Type | Data |
---|---|---|---|
diallerContactsID | URL | Integer | The ID of the dialler contact to delete. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the status code.
Field | Type | Data |
---|---|---|
status | Integer | The return code (also provided by the http status code). |
This function deletes a dialler contact including all related data by providing the UserData for the record to delete.
Note, if more than one record contains the same user data, the first one found in the database will be deleted. It is not possible to determine which contact this will actually be.
|
Parameter | Where | Type | Data |
---|---|---|---|
userData | Query | String | The UserData of the dialler contact to delete. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the status code.
Field | Type | Data |
---|---|---|
status | Integer | The return code (also provided by the http status code). |
This function locks a dialler contact by ID.
|
Parameter | Where | Type | Data |
---|---|---|---|
diallerContactsID | URL | Integer | The ID of the dialler contact to lock. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the status code.
Field | Type | Data |
---|---|---|
status | Integer | The return code (also provided by the http status code). |
This function locks a dialler contact by UserData.
Note, if more than one record contains the same user data, the first one found in the database will be locked. It is not possible to determine which contact this will actually be.
|
Parameter | Where | Type | Data |
---|---|---|---|
userData | Query | String | The userData of the contact to lock. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the status code.
Field | Type | Data |
---|---|---|
status | Integer | The return code (also provided by the http status code). |
This function unlocks a dialler contact by ID.
|
Parameter | Where | Type | Data |
---|---|---|---|
diallerContactsID | URL | Integer | The ID of the dialler contact to lock. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the status code.
Field | Type | Data |
---|---|---|
status | Integer | The return code (also provided by the http status code). |
This function unlocks a dialler contact by UserData.
Note, if more than one record contains the same user data, the first one found in the database will be unlocked. It is not possible to determine which contact this will actually be.
|
Parameter | Where | Type | Data |
---|---|---|---|
userData | Query | String | The userData of the contact to lock. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the status code.
Field | Type | Data |
---|---|---|
status | Integer | The return code (also provided by the http status code). |
This function retrieves all history (calls and recorded result codes) for a dialler contact, given the dialler contact ID.
|
Parameter | Where | Type | Data |
---|---|---|---|
diallerContactsID | URL | Integer | The ID of the dialler contact to retrieve the data from. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the imported contact.
Field | Type | Data |
---|---|---|
records | DiallerContactsHistory[] | An array of dialler contacts history. |
count | Integer | The number of records returned. |
status | Integer | The return code (also provided by the http status code). |
|
This function retrieves all history (calls and recorded result codes) for all dialler contacts with a particular UserData field value.
|
Parameter | Where | Type | Data |
---|---|---|---|
userData | Query | String | The userData of the dialler contacts to search for. |
If the request is performed, 200 OK is returned.
If the contact does not exist, 404 Not Found is returned.
See Return Codes for further possible status codes.
A JSON Structure containing the imported contact.
Field | Type | Data |
---|---|---|
records | DiallerContactsHistory[] | An array of dialler contacts history. |
count | Integer | The number of records returned. |
status | Integer | The return code (also provided by the http status code). |