NPAI

This method allows you to retrieve your NPAI list. The numbers in your NPAI list are automatically removed during your SMS sendings.

GET

/npai

Examples


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

Result Format


{
  "status": 1,
  "message": "OK",
  "list": [
      {
          "id": "5a4e49d9fc5886067c13f533",
          "destination": "33610111213",
          "info1": "Douglas",
          "info2": "Adams",
          "info3": "1952",
          "info4": "Cambridge"
      },
      {
          "id": "5a4e4a00fc5886067c13f534",
          "destination": "3312131415",
          "info1": "Frank",
          "info2": "Herbert",
          "info3": "1920",
          "info4": "Tacoma"
      }
  ],
  "totalRecords": 2,
  "totalDisplayRecords": 2
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <message>OK</message>
    <list>
        <id>5a4e49d9fc5886067c13f533</id>
        <destination>33610111213</destination>
        <info1>Douglas</info1>
        <info2>Adams</info2>
        <info3>1952</info3>
        <info4>Cambridge</info4>
    </list>
    <list>
        <id>5a4e4a00fc5886067c13f534</id>
        <destination>3312131415</destination>
        <info1>Frank</info1>
        <info2>Herbert</info2>
        <info3>1920</info3>
        <info4>Tacoma</info4>
    </list>
    <totalRecords>2</totalRecords>
    <totalDisplayRecords>2</totalDisplayRecords>
</response>