Developer Docs

Table of contents

The BSG API allows you to create single and bulk SMS campaigns via the REST API. Each message and campaign is identified by a unique identifier for checking the message or campaign status using the appropriate method or callback.

Get incoming 2Way SMS

The method allows to get information about incoming messages of the 2Way SMS service:

  • for the period irrespective of the sender;
  • for the period by the sender.

Request URL


Request parameters:

start_dateYesdatetimePeriod start date (date of reply to incoming SMS). Format: yyyy-mm-dd hh:mm:ss
end_dateYesdatetimePeriod end date (date of reply to incoming SMS). Format: yyyy-mm-dd hh:mm:ss
senderNostringSender name

Request sample

"start_date": "2022-09-01 00:00:00",
"end_date": "2022-09-30 00:00:00",
"sender": "long_numeric_sender"

Response parameters:

senderstringThe name of the sender who sent the outgoing SMS
phonestringPhone number of the contact from the Contact Book who replied the outgoing SMS
textstringIncoming SMS text
datestringDate and time of the reply to the incoming SMS
total_countintegerTotal number of incoming messages for a given period

Example of a response in case of a successful request:

{"error":0, "errorDescription":"No errors",
"result": [
"date":"2022-06-23 14:19:11"
"date":"2022-08-05 11:14:32"
"date":"2022-08-05 14:24:56"

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.