Add contact

This method allows you to add some contacts to one of your list.

POST

/list

Body Parameters

value
required
The contact's number
listId
required
The list id
info1 Information 1
info2 Information 2
info3 Information 3
info4 Information 4

Examples

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

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

Result Format

JSON
{
  "status": 1,
  "message": "OK",
  "contacts": 3,
  "invalid": 0,
  "duplicates": 0,
  "id": "50433"
}