SMS

GET https://lopbe.com/api/sms/
curl --request GET \
--url 'https://lopbe.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-01 11:40:38"",
            "datetime": ""2025-10-01 11:40:38"",
        },
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://lopbe.com/api/sms?page=1",
        "last": "https://lopbe.com/api/sms?page=1",
        "next": null,
        "prev": null,
        "self": "https://lopbe.com/api/sms?page=1"
    }
}
GET https://lopbe.com/api/sms/{sms_id}
curl --request GET \
--url 'https://lopbe.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-01 11:40:38"",
        "datetime": ""2025-10-01 11:40:38"",
    },
}
POST https://lopbe.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://lopbe.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": {
        "id": 1
    }
}
DELETE https://lopbe.com/api/sms/{sms_id}
curl --request DELETE \
--url 'https://lopbe.com/api/sms/{sms_id}' \
--header 'Authorization: Bearer {api_key}' \