Cache Status
Download OpenAPI specification:Download
REST API to manage fallback cache for SIPRec service and routing fallback configuration for mediaservice functions.
Base url: https://api.prod-eu-north-1.iotcomms.io/cache
The cache API provides access to the fallback functions for the SIPRec service and the Mediaservice. The API can be used to resolve situations where connectivity is lost between iotcomms.io platform and the customer. It allows the services to be executed based on the previously cached data.
/{domain}/ivrfallback
Query for a list of ivr fallback objects
Authorizations:
path Parameters
domain required | string |
Responses
Access-Control-Allow-Origin | string |
Response Schema: application/json
data | Array of strings (An array containing the keys (numbers) of fallback objects currently stored) |
success | boolean |
Response samples
- 200
{- "data": [
- "string"
], - "success": true
}
/{domain}/ivrfallback/{number}
Query IVR fallback cache for configuration for a specific number
Authorizations:
path Parameters
domain required | string |
number required | string |
Responses
Access-Control-Allow-Origin | string |
Response Schema: application/json
object (FallbackObject) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | boolean |
Response samples
- 200
{- "data": {
- "mode": "onError",
- "ttl": 0,
- "command": {
- "action": {
- "sipFrom": "string",
- "xHeaders": { },
- "sipDiversion": "string",
- "sipPAI": "string",
- "type": "call",
- "contactParameters": { },
- "sipTo": "string",
- "pHeaders": { },
- "copyHeaders": [
- "string"
], - "contactUserParameters": { },
- "sipRPID": "string",
- "destAddr": "string",
- "maxRingTime": 0
}, - "phrases": [
- {
- "fileName": "string",
- "format": "string",
- "cacheTimeToLive": "string",
- "googleTTSParameters": { },
- "refreshCache": true,
- "awsTTSParameters": { }
}
]
}
}, - "success": true
}
/{domain}/ivrfallback/{number}
Set IVR fallback configuration for a specific number
Authorizations:
path Parameters
domain required | string |
number required | string |
Request Body schema: application/jsonrequired
mode | string Enum: "onError" "always" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
expiration | string Default: "HALF-YEAR" When the fallback object should expire. This property can either be a string in which case it behaves as a period of days (enum listed below) or as a number in which case it behaves as a unix timestamp (in seconds).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (FallbackInstruction) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Responses
Access-Control-Allow-Origin | string |
Response Schema: application/json
success | boolean Indicates if the API call was successful or not |
Request samples
- Payload
{- "mode": "onError",
- "expiration": "HALF-YEAR",
- "command": {
- "action": {
- "sipFrom": "string",
- "xHeaders": { },
- "sipDiversion": "string",
- "sipPAI": "string",
- "type": "call",
- "contactParameters": { },
- "sipTo": "string",
- "pHeaders": { },
- "copyHeaders": [
- "string"
], - "contactUserParameters": { },
- "sipRPID": "string",
- "destAddr": "string",
- "maxRingTime": 0
}, - "phrases": [
- {
- "fileName": "string",
- "format": "string",
- "cacheTimeToLive": "string",
- "googleTTSParameters": { },
- "refreshCache": true,
- "awsTTSParameters": { }
}
]
}
}
Response samples
- 200
{- "success": true
}
/{domain}/ivrfallback/{number}
Delete IVR fallback configuration for a specific number from cache
Authorizations:
path Parameters
domain required | string |
number required | string |
Responses
Access-Control-Allow-Origin | string |
Response Schema: application/json
success | boolean Indicates if the API call was successful or not |
Response samples
- 200
{- "success": true
}
/{domain}/ivrfallback/{number}
path Parameters
domain required | string |
number required | string |
Responses
Access-Control-Allow-Origin | string |
Access-Control-Allow-Methods | string |
Access-Control-Allow-Headers | string |
Response Schema: application/json
Response samples
- 200
{ }
/{domain}/siprecfallback/{number}
Query SIPRec fallback cache for status of a specific number
Authorizations:
path Parameters
domain required | string |
number required | string |
Responses
Access-Control-Allow-Origin | string |
Response Schema: application/json
inCache | boolean Indicates whether the number is persistent in the cache or not. |
Response samples
- 200
{- "inCache": true
}
/{domain}/siprecfallback/{number}
Delete specific number from SIPRec fallback cache
Authorizations:
path Parameters
domain required | string |
number required | string |
Responses
Access-Control-Allow-Origin | string |
Response Schema: application/json
deleted | boolean Indicates whether the number was deleted from the cache or not. Attempts to delete non-existing number will return false. |
Response samples
- 200
{- "deleted": true
}
/{domain}/siprecfallback/{number}
path Parameters
domain required | string |
number required | string |
Responses
Access-Control-Allow-Origin | string |
Access-Control-Allow-Methods | string |
Access-Control-Allow-Headers | string |
Response Schema: application/json
Response samples
- 200
{ }