Check the status and retrieve a MDR with a call to: GET/reporting/mdr_requests/{id}
'filters': [
{
'filter_type': enum('and', 'or'),
'cli': string,
'cli_filter': enum('contains', 'starts_with', 'ends_with')
},
{
'filter_type': enum('and', 'or'),
'cld': string,
'cld_filter': enum('contains', 'starts_with', 'ends_with'),
},
{
'filter_type': enum('and', 'or'),
'tags_list': list of tag strings
}
]
Note: The first object in the filter list must specify a filter_type of and
. You can not follow an
or
with another and
. Other than that, you can specify as many filters as you like in any order.
MDR Request to add
MDR Request response
Bad request
Unauthorized
{- "start_time": "string",
- "end_time": "string",
- "call_types": [
- 1
], - "record_types": [
- 1
], - "connections": [ ],
- "profiles": [ ],
- "report_name": "string",
- "filters": [
- "string"
], - "directions": [ ],
- "timezone": "UTC"
}
{- "id": "string",
- "start_time": "string",
- "end_time": "string",
- "call_types": [
- 1
], - "record_types": [
- 1
], - "connections": [
- "string"
], - "report_name": "string",
- "status": 1,
- "report_url": "string",
- "filters": "string",
- "created_at": "string",
- "updated_at": "string",
- "profiles": "string"
}
Returns a list of your MDR requests.
Mdr Request response
Unauthorized
[- {
- "id": "string",
- "start_time": "string",
- "end_time": "string",
- "call_types": [
- 1
], - "record_types": [
- 1
], - "connections": [
- "string"
], - "report_name": "string",
- "status": 1,
- "report_url": "string",
- "filters": "string",
- "created_at": "string",
- "updated_at": "string",
- "profiles": "string"
}
]
Retrieve the status of an MDR request. Response includes a link to the report once it is generated.
mdr_request
Unauthorized
Resource not found
{- "id": "string",
- "start_time": "string",
- "end_time": "string",
- "call_types": [
- 1
], - "record_types": [
- 1
], - "connections": [
- "string"
], - "report_name": "string",
- "status": 1,
- "report_url": "string",
- "filters": "string",
- "created_at": "string",
- "updated_at": "string",
- "profiles": "string"
}