فراز اس ام اس مستندات وب‌سرویس

Home › Phonebook & Contacts

Add New Contact — FarazSMS SMS web service

POST https://api.iranpayamak.com/ws/v1/phone_book_data

Purpose: Add a single contact to a phonebook.

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

  • phone_book_id (integer) — required
  • phone_book_data_id (integer) — optional
  • prefix (string) — optional
  • mobile (string) — required
  • name (string) — optional
  • attributes (array) — optional

Notes for this endpoint

  • Adds a single new contact to a phonebook.

Example body

{
  "phone_book_id": 33,
  "phone_book_data_id": 1,
  "prefix": "man",
  "mobile": "09123456781",
  "name": "test name",
  "attributes": [
    {
      "attribute_id": 5,
      "value": "1378/01/24"
    },
    {
      "attribute_id": 8,
      "value": "Tehran"
    }
  ]
}

Responses

  • 200 — Success

Related endpoints in Phonebook & Contacts

All FarazSMS web services · llms.txt · OpenAPI