API work is performed using JSON objects and http requests, as well as the REST architecture.
The client authorization process is carried out according to https://bsg.world/developers/rest-api/authentication for API version 2.0.
The API is available at: https://one-api.bsg.world
By configuring the URL for the webhook in your bsg.world account on the Integration and API page, in the Callback URL For RCS field, you can receive reports with the status of RCS messages sent.
The message status report includes the following information:
| Parameter | Type | Description |
|---|---|---|
| id | integer | message id. |
| msisdn | string | The phone number to which the message was sent. |
| reference | string | External message identifier (reference) specified by the user. |
| status | string | The status of the message. For more details, see paragraph. RCS message statuses. |
| time_in | string | Date and time of message creation in the format: yyyy-mm-dd hh:mm:ss. |
| time_sent | string | Date and time of sending the message in the format: yyyy-mm-dd hh:mm:ss |
| time_dr | string | Date and time of receipt of the delivery report in the format: yyyy-mm-dd hh:mm:ss |
| price | string | The cost of the message should be displayed with 7 decimal places |
| currency | string | The currency of the client’s account in which the cost is indicated. |
{
"error":0,
"errorDescription":"No errors",
"id":"3266500452",
"msisdn":"380997087351",
"reference":"hello",
"time_in":"2024-08-22 11:47:42",
"time_sent":"2024-08-22 11:47:42",
"time_dr":"2024-08-22 11:47:53",
"status":"delivered",
"price":"1.1000000",
"currency":"EUR"
}
| № | Status | Description. |
|---|---|---|
| 1 | SCHEDULED | The message is scheduled. |
| 2 | MODERATION | The message is being moderated. |
| 3 | SENT | The RCS message is sent to the recipient. |
| 4 | DELIVERED | RCS message is delivered to the recipient. |
| 5 | SENDING | Messages are in the queue for sending. |
| 6 | ACCEPTED | Message accepted for sending. |
| 7 | EXPIRED | The RCS message has expired. |
| 8 | UNDELIVERED | The message was not delivered. |
| 9 | READ | The RCS message has been read by the recipient. |
| 10 | UNKNOWN | There is no delivery status. |
| 11 | FAILED | An error that occurred during the sending process. |