Swagger documentation - https://api.infact.no/docs/index.html
resource URL - https://api.infact.no/%7BversionNo%7D/Blacklist
and https://api.infact.no/%7BversionNo%7D/blacklist/global/
versionNo - version of API (last version: v1)
Blacklist - is not required
Global Blacklist - Basic authorization via username and password
ClientId - client identifier, contact NG Dialogue to get it
| URL | HTTP method | Short description |
| /BlackList | POST | Add to custom blacklist |
| blacklist/global/phone | GET | Get phone numbers of global blacklist |
| blacklist/global/email | GET | Get emails of global blacklist |
| blacklist/global/ | POST | Add phone number or email to global blacklist |
| blacklist/global/ | DELETE | Delete phone number or email to global blacklist |
Request
GET resource URL/{?Phone=%2B{phone}&CountryCode={code}}
| name | is required | type | description |
| phone | Yes | string | phone number to verify |
| CountryCode | No | string | Abbreviation of phone’s country |
Request
POST resource URL/v1/Blacklist
Phone or Email required
Request model
rc - customerID
{
"rc": 0,
"FormId": 0,
"Phone": "string",
"CountryCode": "string",
"Email": "string"
}
GET resource URL/v1/blacklist/global/phone/?Start={integer}&Count={integer}
| Name | Is required | Type | Description |
| Start | No | integer | id of the first phone from global blacklist that is requested |
| Count | No | integer | number of phones from global blacklist that is requested |
Response model
[
{
"Recipient": "+XXXXXXXXXXXXX",
"Created": "2021-11-22T14:11:14.132853+01:00",
"Updated": "2021-11-22T14:11:14.132853+01:00"
},
{
"Recipient": "+XXXXXXXXXXXXX",
"Created": "2020-12-09T10:10:32.907355+01:00",
"Updated": "2020-12-09T10:10:32.907355+01:00"
},
{
"Recipient": "+XXXXXXXXXXXXX",
"Created": "2021-11-22T14:11:14.132853+01:00",
"Updated": "2021-11-22T14:11:14.132853+01:00"
}
]
GET resource URL/v1/blacklist/global/email/?Start={integer}&Count={integer}
| Name | Is required | Type | Description |
| Start | No | integer | id of the first email from global blacklist that is requested |
| Count | No | integer | number of emails from global blacklist that is requested |
Response example
[
{
"Recipient": "XXXXXXXXXXXXX",
"Created": "2020-04-01T14:36:05.819695+02:00",
"Updated": "2020-04-01T14:36:05.819695+02:00"
},
{
"Recipient": "XXXXXXXXXXXXX",
"Created": "2021-11-22T14:10:26.677884+01:00",
"Updated": "2021-11-22T14:10:26.677884+01:00"
}
]
POST resource URL/v1/blacklist/global/?phone=%2B{phone}
resource URL/v1/blacklist/global/?email={email}
| Name | Is required | Type | Description |
| phone | No | integer | Phone number in international format i.e. +47xxxxxxxx |
| No | integer | Email address |
DELETE resource URL/v1/blacklist/?phone=%2B{phone}
resource URL/v1/blacklist/?email={email}
| Name | Is required | Type | Description |
| phone | No | integer | Phone number in international format i.e. +47xxxxxxxx |
| No | integer | Email address |