Authentication
| Key | Description | Where | Example |
|---|---|---|---|
| Authorization | Base64 encoded API key and secret joined by a colon. | Headers | Basic <base64> |
Query Parameters
100Page size in Integer format
1Page number in Integer format
Threshold value in Integer format
Interval value in Integer format it will be presented in minutes
Array of ISO countries codes
https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779self link
https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=0&size=100first link of the paginated result set
https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=4&size=100last link of the paginated result set
https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=0&size=100previous link of the paginated result set
https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=0&size=100Example Response
{
"page": 0,
"page_size": 0,
"total_pages": 0,
"total_items": 0,
"_embedded": {
"entries": [
{
"country": "string",
"interval": 0,
"threshold": 0,
"product": "string",
"id": "string",
"_links": {
"self": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779"
}
}
}
]
},
"_links": {
"first": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=0&size=100"
},
"last": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=4&size=100"
},
"prev": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=0&size=100"
},
"self": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS?page=0&size=100"
}
}
}Authentication
| Key | Description | Where | Example |
|---|---|---|---|
| Authorization | Base64 encoded API key and secret joined by a colon. | Headers | Basic <base64> |
Product type (SMS or VOICE)
ISO country code
Interval in minutes. Supported values:
- 1 min: 1
- 5 min: 5
- 10 min: 10
- 15 min: 15
- 30 min: 30
- 45 min: 45
- 1 hour: 60
- 6 hour: 360
- 12 hour: 720
- One day: 1440
1510153045603607201440Example Request
{
"product": null,
"country": "string",
"interval": 1,
"threshold": 0
}{
"product": null,
"country": "string",
"interval": 1,
"threshold": 0
}https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779self link
Example Response
{
"country": "string",
"interval": 0,
"threshold": 0,
"product": "string",
"id": "string",
"_links": {
"self": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779"
}
}
}Authentication
| Key | Description | Where | Example |
|---|---|---|---|
| Authorization | Base64 encoded API key and secret joined by a colon. | Headers | Basic <base64> |
Product type (SMS or VOICE)
ISO country code
Interval in minutes. Supported values:
- 1 min: 1
- 5 min: 5
- 10 min: 10
- 15 min: 15
- 30 min: 30
- 45 min: 45
- 1 hour: 60
- 6 hour: 360
- 12 hour: 720
- One day: 1440
1510153045603607201440Example Request
{
"product": null,
"country": "string",
"interval": 1,
"threshold": 0
}{
"product": null,
"country": "string",
"interval": 1,
"threshold": 0
}https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779self link
Example Response
{
"country": "string",
"interval": 0,
"threshold": 0,
"product": "string",
"id": "string",
"_links": {
"self": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779"
}
}
}Authentication
| Key | Description | Where | Example |
|---|---|---|---|
| Authorization | Base64 encoded API key and secret joined by a colon. | Headers | Basic <base64> |
https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779self link
Example Response
{
"country": "string",
"interval": 0,
"threshold": 0,
"product": "string",
"id": "string",
"_links": {
"self": {
"href": "https://api.nexmo.com/v1/fraud-defender/configuration/custom-rules/SMS/e21ace94-54fa-4365-a824-38033dc06779"
}
}
}Authentication
| Key | Description | Where | Example |
|---|---|---|---|
| Authorization | Base64 encoded API key and secret joined by a colon. | Headers | Basic <base64> |
Errors
The following is a non-exhaustive list of error codes that may occur while using this API.
These codes are in addition to any of our generic error codes.
| Code | Information |
|---|---|
| http:error:conflict | Rule couldn't be added as conflicts with currently existing rules |
| system:error:internal-error | Something went wrong. |