Developer Docs

Table of contents

Get Senders for 2Way SMS

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

To get Senders for 2Way SMS, make a request to this 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

if the request is successful, you will receive a response:

{
    "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"
}