NPAI

Cette méthode vous permet de récupérer votre liste NPAI. Les numéros contenus dans votre liste NPAI (numéros plus attribués) sont automatiquement retirés des listes d'envoi de SMS.

GET

/npai

Exemples


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

Format de la réponse


{
  "status": 1,
  "message": "OK",
  "list": [
      {
          "id": "5a4e49d9fc5886067c13f533",
          "destination": "33612345678",
          "date": "2024-12-11 16:27:16",
          "info1": "Douglas",
          "info2": "Adams",
          "info3": "1952",
          "info4": "Cambridge",
          "user_information": [],
          "campaign_id": 47856851,
          "batch_id": null
      },
      {
          "id": "5a4e4a00fc5886067c13f534",
          "destination": "33612345677",
          "date": "2024-12-11 16:27:16",
          "info1": "Frank",
          "info2": "Herbert",
          "info3": "1920",
          "info4": "Tacoma",
          "user_information": [],
          "campaign_id": 47858459,
          "batch_id": null
      }
  ],
  "totalRecords": 2,
  "totalDisplayRecords": 2
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <message>OK</message>
    <list>
        <id>5a4e49d9fc5886067c13f533</id>
        <destination>33612345678</destination>
        <date>2024-12-11 16:27:16</date>
        <info1>Douglas</info1>
        <info2>Adams</info2>
        <info3>1952</info3>
        <info4>Cambridge</info4>
        <user_information></user_information>
        <campaign_id>47856851</campaign_id>
        <batch_id>null</batch_id>
    </list>
    <list>
        <id>5a4e4a00fc5886067c13f534</id>
        <destination>33612345677</destination>
        <date>2024-12-11 16:27:16</date>
        <info1>Frank</info1>
        <info2>Herbert</info2>
        <info3>1920</info3>
        <info4>Tacoma</info4>
        <user_information></user_information>
        <campaign_id>47858459</campaign_id>
        <batch_id>null</batch_id>
    </list>
    <totalRecords>2</totalRecords>
    <totalDisplayRecords>2</totalDisplayRecords>
</response>