curl --location 'https://api.sbmg.app/v1/message' \--header 'x-api-key: YOUR_API_KEY'--data '{ "to": ["+6421#######"], "message": "Hello, this SMS has been sent via SBMG!", "sim": "1", "metadata": { "key1": "value1" }}'
This endpoint send an sms via your personal gateway.
POST
/
v1
/
message
Copy
curl --location 'https://api.sbmg.app/v1/message' \--header 'x-api-key: YOUR_API_KEY'--data '{ "to": ["+6421#######"], "message": "Hello, this SMS has been sent via SBMG!", "sim": "1", "metadata": { "key1": "value1" }}'
Sim slot id to manage the sending sim in setups with multiple carrier connections. Ignore if your phone only has one sim installed or if you just want to use the default.
Additional metadata associated with the message. This can be used to create powerful two-way messaging applications without having to store persistent data in the application.
Copy
curl --location 'https://api.sbmg.app/v1/message' \--header 'x-api-key: YOUR_API_KEY'--data '{ "to": ["+6421#######"], "message": "Hello, this SMS has been sent via SBMG!", "sim": "1", "metadata": { "key1": "value1" }}'
Array of UUIDs of the messages from submission as it will appear in webhook callbacks and reporting. Ordered to match the destinations of the send request.