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.smsup.ch
Accept: application/json
Authorization: Bearer your.token
Result Format
{
"status": 1,
"message": "OK",
"list": [
{
"id": "5a4e49d9fc5886067c13f533",
"destination": "41781234567",
"date": "2024-11-21 09:08:48",
"info1": "Douglas",
"info2": "Adams",
"info3": "1952",
"info4": "Cambridge",
"user_information": [],
"campaign_id": 47856851,
"batch_id": null
},
{
"id": "5a4e4a00fc5886067c13f534",
"destination": "41781234566",
"date": "2024-11-21 09:08:48",
"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>41781234567</destination>
<date>2024-11-21 09:08:48</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>41781234566</destination>
<date>2024-11-21 09:08:48</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>