Home › Send SMS
Create New LBS Request — FarazSMS SMS web service
POST https://api.iranpayamak.com/ws/v1/lbs
Purpose: Create a location-based campaign; messages people who are within a chosen area and time window.
Authentication
This endpoint requires the Api-Key header — get the key from the FarazSMS panel. The header name is case-sensitive and the key must never travel in a query string.
Request fields
text(string) — requiredstart_time(integer) — requiredend_time(integer) — requiredreceiver_count(integer) — requiredlatitude(integer) — requiredlongitude(integer) — requiredradius(integer) — requiredaddress(string) — optionaldispatch_moment(string) — optionalreceiver_gender(string) — optionalreceiver_age_from(integer) — optionalreceiver_age_to(integer) — optionaldevice(string) — optional
Notes for this endpoint
- Creates a new location-based send request (send by geographic location).
Example body
{
"text": "test text",
"start_time": 1742773823,
"end_time": 1742774823,
"receiver_count": 6000,
"latitude": 45,
"longitude": 90,
"radius": 1000,
"address": "some address",
"dispatch_moment": "حضور",
"receiver_gender": "آقا",
"receiver_age_from": 12,
"receiver_age_to": 90,
"device": "Android"
}
Responses
200
Related endpoints in Send SMS
POST /ws/v1/sms/pattern— Send Pattern-Based SMSPOST /ws/v1/sms/simple— Send Simple SMSPOST /ws/v1/sms/keywords— Send SMS with VariablesPUT /ws/v1/lbs/{lbsId}— Edit LBS RequestGET /ws/v1/lbs/{lbsId}— Show Single LBS Request DetailsPATCH /ws/v1/lbs/{lbsId}/cancel— Cancel LBS RequestPOST /ws/v1/sms/bank— Send to Number BankPOST /ws/v1/sms/postal/send— Send Postal Code SMS