40 linhas
1,6 KiB
JSON
40 linhas
1,6 KiB
JSON
{
|
|
"baseUrl": "https://api.interweb.ao",
|
|
"headers": {
|
|
"Authorization": "Bearer {{connection.apiKey}}",
|
|
"Accept": "application/json",
|
|
"Accept-Language": "en",
|
|
"User-Agent": "interweb-ao-make/1.0.0"
|
|
},
|
|
"response": {
|
|
"error": {
|
|
"type": "RuntimeError",
|
|
"message": "[{{statusCode}}] {{ifempty(body.error.message; 'The API did not accept the request.')}}{{if(body.error.details.reason; ' (' + body.error.details.reason + ')'; '')}}",
|
|
"401": {
|
|
"type": "InvalidAccessTokenError",
|
|
"message": "The API key is not valid, was revoked or has expired. Create a new one in the API Center: https://www.meu.interweb.ao/api-center.php"
|
|
},
|
|
"402": {
|
|
"type": "InvalidConfigurationError",
|
|
"message": "Not enough credit, nothing was charged. {{body.error.message}} {{ifempty(body.error.details.add_funds_url; '')}}"
|
|
},
|
|
"403": {
|
|
"type": "InvalidConfigurationError",
|
|
"message": "[403] {{body.error.message}}{{if(body.error.code == 'insufficient_scope'; ' Create a key with this permission in the API Center: https://www.meu.interweb.ao/api-center.php'; '')}}"
|
|
},
|
|
"422": {
|
|
"type": "DataError",
|
|
"message": "[422] {{body.error.message}}{{if(body.error.details.reason; ' (' + body.error.details.reason + ')'; '')}}"
|
|
},
|
|
"429": {
|
|
"type": "RateLimitError",
|
|
"message": "Too many requests. Wait {{ifempty(headers['retry-after']; 60)}} seconds and try again."
|
|
}
|
|
}
|
|
},
|
|
"log": {
|
|
"sanitize": [
|
|
"request.headers.authorization"
|
|
]
|
|
}
|
|
}
|