Recurring campaigns
GET https://lopbe.com/api/recurring-campaigns/
curl --request GET \
--url 'https://lopbe.com/api/recurring-campaigns/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://lopbe.com/api/recurring-campaigns/' \
--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": [ { "id": 1, "device_id": 1, "sim_subscription_id": 1, "user_id": 1, "name": "Example", "content": "Sample message", "settings": { "frequency": "daily, "time": 10:25, }, "segment": "all", "is_enabled": true, "total_sent_sms": 0, "total_pending_sms": 0, "total_failed_sms": 0, "last_sent_datetime": null, "last_datetime": null, "datetime": "2025-10-01 11:41:57", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://lopbe.com/api/recurring-campaigns?page=1", "last": "https://lopbe.com/api/recurring-campaigns?page=1", "next": null, "prev": null, "self": "https://lopbe.com/api/recurring-campaigns?page=1" } }
GET https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}
curl --request GET \
--url 'https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "device_id": 1, "sim_subscription_id": 1, "user_id": 1, "name": "Example", "content": "Sample message", "settings": { "frequency": "daily, "time": 10:25, }, "segment": "all", "is_enabled": true, "total_sent_sms": 0, "total_pending_sms": 0, "total_failed_sms": 0, "last_sent_datetime": null, "last_datetime": null, "datetime": "2025-10-01 11:41:57", } }
POST https://lopbe.com/api/recurring-campaigns
Parameters | Details | Description |
---|---|---|
name | Required String | - |
content | Required String | - |
device_id | Required Integer | - |
sim_subscription_id | Required Integer | - |
frequency | Optional String | Allowed values: daily , weekly , monthly |
week_days | Optional String |
Allowed values: 1 , 2 , 3 , 4 , 5 , 6 , 7 Available when: frequency = weekly |
month_days | Optional String |
Allowed values: 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 Available when: frequency = monthly |
time | Optional String | HH:II |
is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://lopbe.com/api/recurring-campaigns' \
--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 'segment=all' \
--form 'frequency=daily' \
--form 'time=12:15' \
--url 'https://lopbe.com/api/recurring-campaigns' \
--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 'segment=all' \
--form 'frequency=daily' \
--form 'time=12:15' \
{ "data": { "id": 1 } }
POST https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}
Parameters | Details | Description |
---|---|---|
name | Optional String | - |
content | Optional String | - |
device_id | Optional Integer | - |
sim_subscription_id | Optional Integer | - |
frequency | Optional String | Allowed values: daily , weekly , monthly |
week_days | Optional String |
Allowed values: 1 , 2 , 3 , 4 , 5 , 6 , 7 Available when: frequency = weekly |
month_days | Optional String |
Allowed values: 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 Available when: frequency = monthly |
time | Optional String | HH:II |
is_enabled | Optional Boolean | - |
curl --request POST \
--url 'https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}' \
--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 'segment=all' \
--url 'https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}' \
--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 'segment=all' \
{ "data": { "id": 1 } }
DELETE https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}
curl --request DELETE \
--url 'https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://lopbe.com/api/recurring-campaigns/{recurring_campaign_id}' \
--header 'Authorization: Bearer {api_key}' \