Method allows getting information about the status of campaigns that were sent via the API. It is implemented both for a single SMS, in which the status of one message is displayed, and for a bulk campaign (referring to the message ID or the campaign ID, or the referrer ID).
To get SMS status, make a request to this URL:
GET https://api.bsg.world/rest/sms/{id}
Request parameters:
Parameter
Requirerd
Type
Description
id
Yes
integer
Message ID – a unique random identifier generated on the BSG platform and returned when the object is created
or use alternative request:
GET https://api.bsg.world/rest/sms/{reference}
Parameter
Required
Type
Description
reference
Yes
integer
SMS external ID. String up to 32 characters containing /a-zA-Z0-9/
Response parameters:
Parameter
Type
Description
id
integer
SMS ID
msisdn
integer
phone number to which the SMS was sent
reference
string
SMS external ID
time_in
datetime
date and time the SMS was created
time_sent
datetime
SMS sending scheduled date and time
time_dr
datetime
Date and time the delivery report was received
status
string
SMS status
price
float
SMS price
currency
string
Account currency in which the SMS price is specified
If request is successful, you will receive a response:
20 – SMS not found 21 – an incorrect phone number 22 – the external ID of the SMS request is missing 23 – SMS with this ID is already present 24 – invalid query payload 25 – incorrect originator 26 – empty or too long SMS text 27 – incorrect external SMS ID 28 – incorrect value of SMS duration 29 – the task id is incorrect 30 – task not found 31 – the phone is already in the messaging list 32 – sender not allowed 33 – unresolved direction 34 – invalid OTP, code generation error 35 – 2WAY service is not activated 36 – incorrect sender for 2WAY
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.