BSG utilizes HTTP cookies (and similar or complementary technologies) to 1) make this website safe, functional, and accessible (through the use of mandatory cookies) and 2) understand how you use our website (through the use of optional cookies) in order to improve your experience and to provide you with personalized content.

The information in the cookie text files may be related to your personal preferences or your device and is intended to make the site operate according to your expectations. The information contained in cookies does not usually identify your identity directly but is helpful in providing you with a more personalized user experience.

In accordance with the requirements of the General Data Protection Regulation (GDPR) privacy and security law that governs how the personal data of individuals in the EU may be processed and transferred, we provide you the possibility to prohibit the use of certain types of cookies when you use our website.

Read our Cookie Notice and the Privacy Policy for detailed information on how BGS collects and uses cookies. Please note that prohibiting the use of certain types of cookies may affect your interaction with the website and limit the accessibility of services we offer you. Choose the appropriate category below to learn more and to disable cookies.

Accept All cookies*
*Recommended for comfortable use of the site
Accept only necessary cookies
Accept only selected cookies
Necessary cookies
Social media
Analytics
Marketing
Developer Docs
Number Intelligence

Send SMS / 2Way SMS

The method allows sending an SMS.

Creating single SMS (“destination”:”phone”), bulk messaging (“destination”:”phones”) and customized SMS (“destination”:”individual”) are supported.

To send campaign, make a request to this URL:

PUT (POST) https://api.bsg.world/rest/sms/create

Single SMS

Request parameters

Parameter Required Type Description
destination Yes string set to “phone”
originator Yes string sender. String up to 14 characters
body Yes string SMS message text
msisdn Yes string phone number to which the SMS is sent
reference No string SMS external ID. String up to 32 characters containing /a-zA-Z0-9/
validity No integer SMS validity time. The default is 72 hours. Integer from 1 to 72
tariff No integer tariff number. The default is 0. Integer from 0 to 9
2way No bool belonging to 2WAY

Request sample


{
"destination":"phone", 
"msisdn": "380501234567",
"reference": "reference_id",
"originator": "sender",
"body":"test sms",
"2way": 1
}

Response parameters

Parameter Type Description
id integer the message ID, a unique random identifier that is created on the BSG platform when an object is created
reference string SMS external ID
price float SMS price
currency string сurrency in which the SMS price is specified

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


{
"error":"0",
"id":"22125",
"reference":"12erdgm9",
"price":"0.02",
"currency":"EUR"
}

Bulk SMS campaign

Bulk SMS campaign contains one text for all recipient numbers.

Request parameters

Parameter Required Type Descripton
destination Yes string set to “phones”
phones Yes array values array
msisdn Yes string phone number to which the SMS is sent
reference No string SMS external ID. String up to 32 characters containing /a-zA-Z0-9/
originator Yes string Sender name. String up to 14 characters
body Yes string SMS message text
validity No integer SMS validity time. The default is 72 hours. Integer from 1 to 72
tariff No integer tariff number. The default is 0. Integer from 0 to 9
2way No bool belonging to 2WAY

Response parameters

Parameter Type Description
id integer SMS ID
reference string SMS external ID
price float SMS price
currency string сurrency in which the SMS price is specified
task_id integer Campaign ID, which is generated automatically by the system when creating a campaign.
The task_id parameter is used to request the status of the entire campaign

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

Customized SMS campaign

Request parameters

Parameter Required Type Description
destination Yes string set to “individual”
validity No integer SMS validity time. The default is 72 hours. Integer from 1 to 72
tariff No integer tariff number. The default is 0. Integer from 0 to 9
2way No bool belonging to 2WAY
phones Yes array values array
msisdn Yes string phone number to which the SMS is sent
reference No string SMS external ID. String up to 32 characters containing /a-zA-Z0-9/
originator Yes string Sender name. String up to 14 characters
body Yes string SMS message text

Request sample


{
"destination":"phones", 
"phones":[
{"msisdn": "380972000001","reference":"12erdgm9"},
{"msisdn": "380972000002","reference":"12erdgn0"}
],
"originator":"test",
"body":"test sms", 
"validity": 72,
"tariff":9
}

Response parameters

Parameter Type Description
id integer SMS ID
reference string SMS external ID
price float SMS price
currency string сurrency in which the SMS price is specified
total price float total campaign price.
currency string сurrency in which the camapign price is specified

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


{
"result":
[
{"reference":"12erdgm9",
"id":"12345",
"error":"0",
"price":"0.02",
"currency":"EUR"},
{"reference":"12erdgn0",
"id":"12346",
"error":"0",
"price":"0.02",
"currency":"EUR"}
],
"error":"0", 
"task_id":"21902"
}

Interested in a special offer?

Ready to reach further?
Let’s talk

I agree to BSG privacy policy
Submit

Useful Materials

What Is Number Verifier — And Why It’s More Than Just an “HLR Lookup”

30% of SMS fail — not because of content, but numbers. Verify before you send.

10 Awesome Back-to-School Marketing Ideas 2025

The start of the school year: when parents trade in their summer margaritas for the

What Is CPaaS? Communications Platform as a Service

Talking to customers these days is more than just emails or phone calls. Businesses need