Blacklist check
Checks whether the given numbers are on the blacklist. Returns a map of number → true/false.
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 minute.
Parameters table
| PARAMETER NAME | VALUE | MANDATORY | DEFAULT VALUE |
|---|---|---|---|
| application_id | Application ID | Yes | - |
| application_token | Application authentication token | Yes | - |
| numbers | Numbers to check — an array, or a comma-separated string | Yes | - |
| wallet | Wallet on which to check the numbers | No | Default wallet |
| route | The route the block is evaluated for — promotional, transactional or all |
No | promotional |
Request example
Response
In case of success:
Where:
- the key is the phone number you sent
- the value is
truewhen the number is on the blacklist, otherwisefalse
Invalid numbers do not return an error — they are in the response with the value false.
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. |
minute_quota_exceeded |
The quota of 20 requests per minute is used up. |
Was this page helpful?
Thank you for your feedback.