فراز اس ام اس مستندات توسعه‌دهندگان

Home › Send SMS

Send SMS with Variables — FarazSMS SMS web service

POST https://api.iranpayamak.com/ws/v1/sms/keywords

Purpose: Bulk personalized send; variables (e.g. the contact's name) sit inside `%...%` in the text.

Send a message containing variable keywords. The keywords (attributes) must be wrapped inside % signs within the text (E.g: Hello %first_name%)

Auth: header Api-Key (key from the panel, case-sensitive).

Example body

{
  "text": "test %var1% text",
  "line_number": "50002178584000",
  "recipients": [
    {
      "mobile": "09120000000",
      "var1": "value1"
    },
    {
      "mobile": "09130000000",
      "var1": "value2"
    }
  ],
  "number_format": "english"
}

All FarazSMS web services · llms.txt · OpenAPI