Ajouter des contacts à la liste NPAI

Cette méthode vous permet d'ajouter un contact à votre liste NPAI.

POST

/npai

Paramètres du body

value
requis
The recipient's number
info1 Information 1
info2 Information 2
info3 Information 3
info4 Information 4

Exemples

JSON
POST /npai HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json

{
  "npai": {
    "contacts": {
      "gsm": [
        {
          "value": "33612345678",
          "info1": "Hiroo",
          "info2": "Onoda"
        },
        {
          "value": "33612345677",
          "info1": "Grace",
          "info2": "Hopper"
        },
        {
          "value": "33612345676",
          "info1": "Hedy",
          "info2": "Lamarr",
          "info3": "Extase",
          "info4": "1933"
        }
      ]
    }
  }
}
        

Format de la réponse

JSON
{
  "status": 1,
  "message": "OK",
  "added_contacts": 3
}