FarazSMS Public APIs
  1. Send
FarazSMS Public APIs
  • Account
    • Profile
      GET
    • Account Balance
      GET
    • update
      POST
    • Charge wallet
      POST
    • Register
      POST
  • Send
    • Send Sample SMS
      POST
    • Send Simple SMS
      POST
    • Send Simple SMS from Excel
      POST
    • Send SMS with Variables
      POST
    • Send SMS with Variables from Excel
      POST
    • Send Peer-to-Peer SMS
      POST
    • Send Peer-to-Peer SMS from Excel
      POST
    • Send Pattern-Based SMS
      POST
  • Phonebook
    • Get Phonebooks
      GET
    • Create New Phonebook
      POST
    • Get Phonebook Attributes
      GET
    • Create New Phonebook Attribute
      POST
    • Get Phonebook Contacts
      GET
  • Pattern
    • Create New Pattern
      POST
    • Get Pattern Details
      GET
    • Edit Pattern
      PUT
    • Get List of User's Patterns
      GET
  • Get Paged Inbox Messages
    GET
  1. Send

Send Pattern-Based SMS

POST
/ws/v1/sms/pattern
Send a pattern-based message, the pattern UID must be creadted and get from user panel.

Request

Authorization
Add parameter in header
Api-Key
Example:
Api-Key: ********************
Header Params

Body Params application/json

Example
{
    "code": "7690GmBuab",
    "attributes": {
        "var": "12345",
        "var2": "98765"
    },
    "recipient": "09391155747",
    "line_number": "50002191307530",
    "number_format": "english",
    //"schedule": "2025-08-20 15:30:00", // nullable(chosen time to send)
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/ws/v1/sms/pattern' \
--header 'Accept: application/json' \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "7690GmBuab",
    "attributes": {
        "var": "12345",
        "var2": "98765"
    },
    "recipient": "09391155747",
    "line_number": "50002191307530",
    "number_format": "english",
    //"schedule": "2025-08-20 15:30:00", // nullable(chosen time to send)
}'

Responses

🟢201Pattern message sent successfully.
application/json
Body

Example
{
    "status": "success",
    "data": 0,
    "messages": "string"
}
Modified at 2025-10-05 19:59:09
Previous
Send Peer-to-Peer SMS from Excel
Next
Get Phonebooks
Built with