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

BSG migrated to the new DevPortal
to ship the latest One API versions faster

Use it for up-to-date endpoints, guides, and changelogs

Go to the new DevPortal
Developer Docs
Number Intelligence

Get SMS messages

The method allows you to get information about the status of a single message or the status of each message in an SMS campaign.

Request URL

GET http://one-api.bsg.world/api/messages

Request parameters:

Parameter Required Type Default Description
page[limit] No Integer 50 The number of messages in the response. The parameter value range: min – 15, max – 500.
page[offset] No Integer 0 Get messages starting from offset
filter[from] No String No Filter by sending date “from”. Format ISO 8601: yyyy-mm-dd hh:mm:ss
filter[to] No String Now Filter by sending date “to”. Format ISO 8601: yyyy-mm-dd hh:mm:ss
filter[campaign_id] No Integer No Filter to get messages by ID of campaign created using:
  • POST /api/campaigns/sms/send

  • POST /api/campaigns/sms/send-groups

  • POST /api/campaigns/sms/send-individual
filter[reference_id] No String No Filter to get messages by external message ID
filter[id] No Integer No Get a message by message ID
Sort No String id Sort by id, phone, delivered
Way No String asc Sorting options: asc, desc

Response parameters:

Parameter Type Description
id integer Message ID
campaign_id integer Campaign ID
reference_id string External message ID (reference)
type string Campaign type: sms
source string Possible values:
  • web

  • rest
text string Message text
phone string
validity integer
status string Message status. Possible values:
  • delivered – message received by recipient

  • scheduled – message scheduled for sending

  • moderation – message in moderation

  • accepted – message accepted by operator

  • sending – message in the queue for sending

  • sent – message has been sent and is expecting to be delivered

  • expired – message not delivered – phone switched off

  • failed – message sending error (probably a missing prefix)

  • undelivered – message not delivered

  • unknown – no delivery report
amount object Message price data:
value string Message price
currency string The currency in which the message cost is specified. Format ISO 4217
sender string SMS Sender name
created_at string Date and time of the message creation. Format ISO 8601: yyyy-mm-dd hh:mm:ss
send_at string Date and time the message was sent. Format ISO 8601: yyyy-mm-dd hh:mm:ss
delivered_at string Date and time the delivery report was received. Format ISO 8601: yyyy-mm-dd hh:mm:ss

Response sample

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


{
  "data": [
    {
      "id": 26130,
      "campaign_id": 1,
      "reference_id": "string",
      "type": "sms",
      "source": "web",
      "text": "text",
      "phone": 12345678900,
      "validity": 72,
      "status": "scheduled",
      "amount": {
        "value": "string",
        "currency": "UAH"
      },
      "sender": "sender",
      "created_at": "2021-04-27 19:44:06",
      "send_at": "2021-04-27 19:44:06",
      "delivered_at": "2021-04-27 19:44:06"
    }
  ],
  "meta": {
    "page": {
      "total": 1,
      "offset": 20,
      "limit": 40
    }
  }
}

Interested in a special offer?

Ready to reach further?
Let’s talk

I agree to BSG privacy policy
Submit

Useful Materials

WhatsApp Business API: Complete Guide — Setup, Pricing, Use Cases [2026]

WhatsApp Business API for 2026 — setup steps, the new per-message pricing model, and proven use cases by industry.

What Is CPaaS? The Complete Business Guide to Communications Platform as a Service

What is CPaaS? The cloud API layer that adds SMS, WhatsApp, voice & OTP to your apps — how it works and why it beats a multi-vendor stack.

One Communication API for SMS, WhatsApp, Viber & RCS — Why It Beats Five

Why one communication API for SMS, WhatsApp, Viber & RCS beats five separate integrations — cascade fallback, unified reports.