Developer Docs

Table of contents

Get senders for 2Way SMS

The method allows getting senders for the 2Way SMS service.

Request URL:

GET https://api.bsg.world/rest/sms/2waySenders

Response parameters:

ParameterTypeDescription
idstringThe unique 2Way SMS sender identifier
senderstring2Way SMS sender name
countrystringRecipient’s country (according to ISO 3166-1)
statusstringSender’s status
date_createdstringDate of the sender’s registration

Response sample:

{
    "error": 0,
    "errorDescription": "No errors",
    "senders": [
        {
            "id": "21",
            "sender": "19378620XXX",
            "country": "EE",
            "status": "active",
            "date_created": "2022-04-24 20:48:23"
        },
        {
            "id": "22",
            "sender": "447520651XXX",
            "country": "GB",
            "status": "active",
            "date_created": "2022-06-20 15:15:17"
        }
    ]
}

Errors

{
    "error": 35,
    "errorDescription": "2way_sms service is not active"
}

{
    "error": 5,
    "errorDescription": "Unknown error"
}

We use cookies (and other similar technologies) to collect data to improve your experience on our site. By using our website, you’re agreeing to the collection of data as described in our Website Data Collection Policy.