Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
List of networks
Vodafone UKNetwork name
234Mobile Country Code
GBCountry code (ISO 3166-1 Alpha-2)
List of all Public Land Mobile Network codes, including primary and all aliases
URL to the resource
Ejemplo Respuesta
{
"networks": [
{
"name": "Vodafone UK",
"mcc": "234",
"country_code": "GB",
"plmns": [
"23401",
"23402"
]
}
],
"_links": {
"self": {
"href": "string"
}
}
}Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
Consulta Parámetros
SMSFind rules for a specific product
SMSVOICE234Find rules for a specific Mobile Country Code (MCC)
GBFind rules for a specific ISO country code - alternative to MCC for identifying country
Vodafone UKFind rules for a specific network name.
23401Find rules for a specific public land mobile network (PLMN). Valid only with status=active, otherwise returns 400 error.
2025-08-26Find rules that expire on or after a specific date (YYYY-MM-DD) in UTC timezone. Valid only with status=active, otherwise returns 400 error.
2025-08-26Find rules that expire on or before a specific date (YYYY-MM-DD) in UTC timezone. Valid only with status=active, otherwise returns 400 error.
1dFind rules by time to live (TTL). Valid only with status=active, otherwise returns 400 error.
PERMANENT1d12h6h3h2h1hcreated_atcreated_atSort by field (product, mcc, country_code, network_name, created_at, expires_at)
productmcccountry_codenetwork_namecreated_atexpires_atactiveactiveFilter by rule status (active or archived).
activearchiveddescSort order (asc or desc)
ascdesc11Page number.
110010Number of items per page
3f8208fb-9aa3-4ea4-9a3f-de52a81e36bbUnique ID of the traffic rule
SMSProduct type for the traffic rule
SMSVOICE234Mobile Country Code
Vodafone UKNetwork name
reason for blocksReason for the traffic rule action
2025-07-01T10:11:22ZISO 8601 datetime string in UTC timezone
2025-07-01T10:11:22ZISO 8601 datetime string in UTC timezone
1dTime to live for the traffic rule. After this period, the rule will expire and no longer block traffic.
PERMANENT1d12h6h3h2h1h2025-07-01T10:11:22ZISO 8601 datetime string in UTC timezone
URL to the resource
URL to the resource
URL to the resource
1Current page number
1Number of items per page
Total number of elements across all pages
Total number of pages
Ejemplo Respuesta
{
"_embedded": {
"rules": [
{
"product": "SMS",
"mcc": "234",
"network_name": "Vodafone UK",
"plmns": [
"23477",
"23491"
],
"reason": "reason for blocks",
"expires_at": "2025-08-01T10:11:22Z",
"created_at": "2025-07-01T10:11:22Z",
"ttl": "1d",
"id": "3f8208fb-9aa3-4ea4-9a3f-de52a81e36bb",
"archived_at": "2025-07-01T10:11:22Z"
}
]
},
"_links": {
"next": {
"href": "string"
},
"prev": {
"href": "string"
},
"self": {
"href": "string"
}
},
"page": 1,
"page_size": 1,
"total_items": 0,
"total_pages": 0
}Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
SMSProduct type for the traffic rule
SMSVOICE23401Unique network identifier consisting of Mobile Country Code (MCC) and Mobile Network Code (MNC) with no separators in between
reason for blocksReason for the traffic rule action
1dTime to live for the traffic rule. After this period, the rule will expire and no longer block traffic.
PERMANENT1d12h6h3h2h1hEjemplo Solicitar
{
"product": "SMS",
"plmn": "23401",
"reason": "reason for blocks",
"ttl": "1d"
}{
"product": "SMS",
"plmn": "23401",
"reason": "reason for blocks",
"ttl": "1d"
}3f8208fb-9aa3-4ea4-9a3f-de52a81e36bbUnique ID of the traffic rule
SMSProduct type for the traffic rule
SMSVOICE234Mobile Country Code
Vodafone UKNetwork name
reason for blocksReason for the traffic rule action
2025-07-01T10:11:22ZISO 8601 datetime string in UTC timezone
2025-07-01T10:11:22ZISO 8601 datetime string in UTC timezone
1dTime to live for the traffic rule. After this period, the rule will expire and no longer block traffic.
PERMANENT1d12h6h3h2h1hEjemplo Respuesta
{
"id": "3f8208fb-9aa3-4ea4-9a3f-de52a81e36bb",
"product": "SMS",
"mcc": "234",
"network_name": "Vodafone UK",
"plmns": [
"23401"
],
"reason": "reason for blocks",
"expires_at": "string",
"created_at": "string",
"ttl": "1d"
}Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
reason for blocksReason for the traffic rule action
Ejemplo Solicitar
{
"reason": "reason for blocks"
}{
"reason": "reason for blocks"
}3f8208fb-9aa3-4ea4-9a3f-de52a81e36bbUnique ID of the traffic rule
SMSProduct type for the traffic rule
SMSVOICE234Mobile Country Code
Vodafone UKNetwork name
reason for blocksReason for the traffic rule action
2025-07-01T10:11:22ZISO 8601 datetime string in UTC timezone
2025-07-01T10:11:22ZISO 8601 datetime string in UTC timezone
1dTime to live for the traffic rule. After this period, the rule will expire and no longer block traffic.
PERMANENT1d12h6h3h2h1hEjemplo Respuesta
{
"id": "3f8208fb-9aa3-4ea4-9a3f-de52a81e36bb",
"product": "SMS",
"mcc": "234",
"network_name": "Vodafone UK",
"plmns": [
"23401"
],
"reason": "reason for blocks",
"expires_at": "string",
"created_at": "string",
"ttl": "1d"
}Archive a network rule
Archives a specific network traffic rule identified by id. Archived rules become inactive and no longer block traffic. Still, a maximum of 50 archived rules remain accessible during 90 days for record-keeping and can be retrieved using the GET endpoint with the filter status=archived.
Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
Complete list of country rules defining which country-product combinations should have their traffic blocked.
SMSProduct type for the traffic rule
SMSVOICEGBCountry code (ISO 3166-1 Alpha-2)
URL to the resource
Ejemplo Respuesta
{
"rules": [
{
"product": "SMS",
"country_code": "PL"
}
],
"_links": {
"self": {
"href": "string"
}
}
}Replace country rules
Replaces the country rules with the provided list. Country rules define which country-product combinations should have their traffic blocked. The rules array must always contain a complete list of rules - any existing rules not present in this request will be removed.
Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
Complete list of country rules which should block the traffic. Any existing rules not present in this array will be removed.
SMSProduct type for the traffic rule
SMSVOICEGBCountry code (ISO 3166-1 Alpha-2)
Ejemplo Solicitar
{
"rules": [
{
"product": "SMS",
"country_code": "PL"
}
]
}{
"rules": [
{
"product": "SMS",
"country_code": "PL"
}
]
}Complete list of country rules defining which country-product combinations should have their traffic blocked.
SMSProduct type for the traffic rule
SMSVOICEGBCountry code (ISO 3166-1 Alpha-2)
Ejemplo Respuesta
{
"rules": [
{
"product": "SMS",
"country_code": "PL"
}
]
}Autenticación
| Clave | Descripción | Dónde | Ejemplo |
|---|---|---|---|
| Authorization | Clave API codificada en Base64 y secreto unidos por dos puntos. | Headers | Basic <base64> |
Complete list of supported countries with their risk levels
PLCountry code (ISO 3166-1 Alpha-2)
EUContinent code to which the country belongs:
- AF - Africa
- AN - Antarctica
- AS - Asia
- EU - Europe
- NA - North America
- OC - Oceania
- SA - South America
AFANASEUNAOCSANONEHIGHRisk level for fraud detection. When not specified, defaults to NONE. Countries with HIGH risk will have their traffic blocked by default.
NONEHIGHURL to the resource
Ejemplo Respuesta
{
"countries": [
{
"country_code": "ZM",
"continent": "AF",
"risk": "HIGH"
}
],
"_links": {
"self": {
"href": "string"
}
}
}Errores
La siguiente es una lista no exhaustiva de códigos de error que pueden producirse al utilizar esta API.
Estos códigos se suman a cualquiera de nuestros códigos de error genéricos.
| Código | Información |
|---|---|
| http:error:conflict | Rule couldn't be added as conflicts with currently existing rules |
| system:error:internal-error | Something went wrong. |