Blacklist download
Loads records from the blacklist — numbers that opted out of receiving messages or were added to the blacklist by import or via the API.
API URL
The URL used to send the HTTP requests:
Note
If the request does not reach its destination, repeat it on the backup server backup1.bulkgate.com.
Supported HTTP methods
POST-application/json
Note
The API has a quota of 20 requests per day.
Parameters table
| PARAMETER NAME | VALUE | MANDATORY | DEFAULT VALUE |
|---|---|---|---|
| application_id | Application ID | Yes | - |
| application_token | Application authentication token | Yes | - |
| from | Selects entries from a specific date. It accepts the unix timestamp or ISO 8601 format. | Yes | - |
| to | Selects entries to a specific date. It accepts the unix timestamp or ISO 8601 format. | No | now |
| campaign_id | Selects only records for a specific campaign | No | - |
| wallet | Selects only records for a specific wallet | No | Default wallet |
Note
The maximal range between from and to is 30 days.
Request example
Response
In case of success:
Where:
- key and id are the record identifier (the same value)
- phone_number is the number in the international format
- type is either
black-listoropt-out - created and modified are the times the record was created and last changed, in ISO 8601
- source is how the number got onto the blacklist —
web,import,api,manualorauto - source_key is the identifier of the group the number was added with. For records with
source=importit holds the name of the imported file. - reason is the reason given when the number was blacklisted
In case of error:
Where:
- type and error (description of the error) can be found in the error types table
- code is the HTTP error code
- detail is additional information about the error
Blacklist API error types
Besides the general types, the Blacklist API returns its own:
| TYPE | WHEN IT HAPPENS |
|---|---|
invalid_wallet |
The given wallet does not exist or you have no access to it. |
invalid_input_parameters |
from is missing, has an invalid format, or is not older than to. |
maximal_date_range_is_30_days |
The range between from and to is longer than 30 days. |
the_daily_quota_has_been_exceeded |
The request quota is used up. |
Was this page helpful?
Thank you for your feedback.