Skip to main content

Aloware Power Dialer APIs

Use the Aloware Power Dialer API to remove a contact from all Power Dialer lists, clear one list or clear a user's lists, and read the JSON error responses and status codes it returns when a request fails.

Written by Laarni D

The Power Dialer API lets you manage Power Dialer lists with API requests. It covers three tasks: removing a contact from all Power Dialer lists, removing all contacts from one list, and removing all contacts from a user's lists.

The API documentation and your account API token are in Aloware Admin. Click Integrations, then Power Dialer.

Power Dialer under Integrations in Aloware Admin


Remove a contact from all Power Dialer lists

Use this endpoint to remove one contact from every Power Dialer list in your account in one request.

Endpoint

POST /api/v1/webhook/powerdialer-remove-contact-from-lists

Required fields

Send these fields with the request:

  • api_token: your Aloware account API token.

  • contact_id: the contact's ID.

Example request

Example POST URL:

https://app.aloware.io/api/v1/webhook/powerdialer-remove-contact-from-lists

{
// Authentication Token
"api_token": "12345678", // Required
"contact_id": "44500" // Required
}

Example POST header:

{
"Accept": "application/json",
"Content-Type": "application/json"
}

Responses

The API returns one of these responses:

  • HTTP 200: the contact was removed.

{
"message": "The contact has been removed from the Power Dialer lists."
}
  • HTTP 404: the contact ID does not exist.

{
"message": "The requested contact id does not exist."
}

cURL example

curl --location --request POST 'https://app.aloware.io/api/v1/webhook/powerdialer-remove-contact-from-lists' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"api_token": "12345678",
"contact_id": "44500"
}'


Remove all contacts from a Power Dialer list

Use this endpoint to remove every contact from one Power Dialer list without deleting them one by one in Aloware Talk.

Endpoint

POST /api/v1/webhook/powerdialer-clear-list

Required fields

Send these fields with the request:

  • api_token: your Aloware account API token.

  • list_id: the Power Dialer list ID.

Example request

Example POST URL:

https://app.aloware.io/api/v1/webhook/powerdialer-clear-list

Example POST body:

{
// Authentication Token
"api_token": "12345678", // Required
"list_id": "50" // Required - Power Dialer list ID
}

Example POST header:

{
"Accept": "application/json",
"Content-Type": "application/json"
}

Responses

When the request succeeds, the API returns HTTP 200 and starts clearing the list:

{
"message": "Power Dialer lists clearing process has been initiated."
}

cURL example

curl --location --request POST 'https://app.aloware.io/api/v1/webhook/powerdialer-clear-list' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"api_token": "12345678",
"list_id": "50"
}'


Remove all contacts from a user's Power Dialer lists

Use this endpoint to remove every contact from the Power Dialer lists of one user in a single request.

To find a user's ID, open Users in Aloware Admin. The ID shows under each user's name.

A user's ID on the Users page

Endpoint

POST /api/v1/webhook/powerdialer-clear-user-lists

Required fields

Send these fields with the request:

  • api_token: your Aloware account API token.

  • user_id: the ID of the user who owns the Power Dialer lists.

Example request

Example POST URL:

https://app.aloware.io/api/v1/webhook/powerdialer-clear-user-lists

Example POST body:

{
// Authentication Token
"api_token": "4A316843", // Required
"user_id": "1" // Required - Power Dialer owner user ID
}

Example POST header:

{
"Accept": "application/json",
"Content-Type": "application/json"
}

Responses

When the request succeeds, the API returns HTTP 200 and starts clearing the lists:

{ "message": "Power Dialer user lists clearing process has been initiated." }

cURL example

curl --location --request POST 'https://app.aloware.io/api/v1/webhook/powerdialer-clear-user-lists' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"api_token": "4A316843",
"user_id": "50"
}'


Error responses

The Power Dialer API answers in JSON, also when a request fails. The status code matches the result, and the body has a message field.

Status codes

A failed request returns one of these status codes:

  • 401: the api_token is missing or not valid. The API answers with an error and does not redirect to a login page.

  • 404: the path does not exist, for example a typo in the endpoint name or an extra prefix before /api/v1.

  • 405: the endpoint does not accept the method, for example a GET request to a POST endpoint.

  • 422: a required field is missing or not valid. The errors field names each invalid field.

Example 401 response:

{"message":"Authentication failed.","error":"Authentication failed."}

Example 422 response:

{
"message": "The given data was invalid.",
"errors": {
"contact_id": ["The contact id field is required."]
}
}

What a failed request changes

When a request fails, the Power Dialer lists keep the same contacts as before the request. Nothing is partly added or partly removed.

For more API functions or help, contact Aloware Support at [email protected].

Did this answer your question?