Check the status and retrieve a CDR with a call to: GET/reporting/cdr_requests/{id}
filters
field specifies a list of query criteria as follows:'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.
CDR Request to add
CDR Request response
Bad request
Unauthorized
{- "start_time": "string",
- "end_time": "string",
- "call_types": [
- 1
], - "record_types": [
- 1
], - "connections": [
- "string"
], - "report_name": "string",
- "source": "string",
- "filters": [
- "string"
]
}
{- "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"
}
Returns a list of your CDR requests.
Cdr 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"
}
]
Retrieves the status of a CDR request. Response includes a link to the report once it is generated.
cdr_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"
}