SMS
GET https://sms.sociostacks.com/api/sms/
curl --request GET \
--url 'https://sms.sociostacks.com/api/sms/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sms.sociostacks.com/api/sms/' \
--header 'Authorization: Bearer {api_key}' \
| Parameters | Details | Description |
|---|---|---|
| page | Optional Integer | The page number that you want results from. Defaults to 1. |
| results_per_page | Optional Integer | How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Defaults to 25. |
{
"data": [
{
"sms_id": 1,
"device_id": 1,
"sim_subscription_id": 1,
"contact_id": 1,
"campaign_id": 0,
"flow_id": 0,
"rss_automation_id": 0,
"recurring_campaign_id": 0,
"user_id": 1,
"type": "sent",
"content": "Hello world",
"status": "sent",
"error": null,
"scheduled_datetime": ""2025-10-29 03:32:12"",
"datetime": ""2025-10-29 03:32:12"",
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://sms.sociostacks.com/api/sms?page=1",
"last": "https://sms.sociostacks.com/api/sms?page=1",
"next": null,
"prev": null,
"self": "https://sms.sociostacks.com/api/sms?page=1"
}
}
GET https://sms.sociostacks.com/api/sms/{sms_id}
curl --request GET \
--url 'https://sms.sociostacks.com/api/sms/{sms_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sms.sociostacks.com/api/sms/{sms_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"sms_id": 1,
"device_id": 1,
"sim_subscription_id": 1,
"contact_id": 1,
"campaign_id": 0,
"flow_id": 0,
"rss_automation_id": 0,
"recurring_campaign_id": 0,
"user_id": 1,
"type": "sent",
"content": "Hello world",
"status": "sent",
"error": null,
"scheduled_datetime": ""2025-10-29 03:32:12"",
"datetime": ""2025-10-29 03:32:12"",
},
}
POST https://sms.sociostacks.com/api/sms
| Parameters | Details | Description |
|---|---|---|
| content | Required String | - |
| device_id | Required Integer | - |
| sim_subscription_id | Required Integer | - |
| phone_numbers | Required String | One valid phone number per line or comma separated values (E.164 format). |
| is_scheduled | Optional Boolean | - |
| scheduled_datetime | Optional String | - |
curl --request POST \
--url 'https://sms.sociostacks.com/api/sms' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'content=Hello world' \
--form 'device_id=1' \
--form 'sim_subscription_id=1' \
--form 'phone_numbers=+1234567890,+9876543210' \
--url 'https://sms.sociostacks.com/api/sms' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'content=Hello world' \
--form 'device_id=1' \
--form 'sim_subscription_id=1' \
--form 'phone_numbers=+1234567890,+9876543210' \
{
"data": {
"sms_ids": [1,2]
}
}
DELETE https://sms.sociostacks.com/api/sms/{sms_id}
curl --request DELETE \
--url 'https://sms.sociostacks.com/api/sms/{sms_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sms.sociostacks.com/api/sms/{sms_id}' \
--header 'Authorization: Bearer {api_key}' \