List of blacklisted MSISDNs

Endpoint: GET https://api.bsms.viamobile.sk/blacklist/list


HTTP Basic Authorization

HTTP header Value
Authorization Basic base64(username:password)
GET https://api.bsms.viamobile.sk/blacklist/list HTTP/1.1 Content-Type: text/xml;charset=UTF-8 Authorization: Basic dGVzdDp0ZXN0 Host: api.bsms.viamobile.sk

Error codes

Code Description
1000 Unauthorized Unknown username or password
{ "response": { "status": 401, "code": 1000, "description": "Unauthorized" } }
Blacklist

Request

Parameter Required Type Description
date_from
Optional Date Date from in format YYYY-MM-DD
date_to
Optional Date Date to in format YYYY-MM-DD
GET https://api.bsms.viamobile.sk/blacklist/list?date_from=2024-01-01&date_to=2025-01-01 HTTP/1.1 Content-Type: text/xml;charset=UTF-8 Authorization: Basic dGVzdDp0ZXN0 Host: api.bsms.viamobile.sk

Response

Parameter Required Type Description
/response/status Required Int32 Server response (200 in case of success, 4xx in case of error)
/response/msisdns/msisdn Required String Phone number in MSISDN format
/response/msisdns/time_created Required Datetime Blacklist datetime
{ "response": { "status": 200, "msisdns": [ { "msisdn":"+421903123456", "time_created":"2024-10-02 21:35:29" }, { "msisdn":"+42190512356", "time_created":"2000-01-01 00:00:00" } ] } }