Fetch all messaging usage reports. Usage reports are aggregated messaging data for specified time period and breakdown
Successful
Array of objects (MdrUsageReportResponse) | |
object (PaginationMeta) |
{- "data": [
- {
- "aggregation_type": "NO_AGGREGATION",
- "connections": [
- 0
], - "created_at": "2020-07-01T00:00:00-06:00",
- "end_date": "2020-07-01T00:00:00-06:00",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "profiles": "My profile",
- "record_type": "mdr_usage_report",
- "result": [
- {
- "carrier_passthrough_fee": "0",
- "connection": "all",
- "cost": "0",
- "currency": "USD",
- "delivered": "0",
- "direction": "outbound",
- "message_type": "SMS",
- "parts": "0",
- "product": "outbound",
- "profile_id": "All",
- "received": "0",
- "sent": "0",
- "tags": "All",
- "tn_type": "TF"
}
], - "start_date": "2020-07-01T00:00:00-06:00",
- "status": "PENDING",
- "updated_at": "2020-07-01T00:00:00-06:00"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Submit request for new new messaging usage report. This endpoint will pull and aggregate messaging data in specified time period.
Successful
{- "data": {
- "aggregation_type": "NO_AGGREGATION",
- "connections": [
- 0
], - "created_at": "2020-07-01T00:00:00-06:00",
- "end_date": "2020-07-01T00:00:00-06:00",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "profiles": "My profile",
- "record_type": "mdr_usage_report",
- "result": [
- {
- "carrier_passthrough_fee": "0",
- "connection": "all",
- "cost": "0",
- "currency": "USD",
- "delivered": "0",
- "direction": "outbound",
- "message_type": "SMS",
- "parts": "0",
- "product": "outbound",
- "profile_id": "All",
- "received": "0",
- "sent": "0",
- "tags": "All",
- "tn_type": "TF"
}
], - "start_date": "2020-07-01T00:00:00-06:00",
- "status": "PENDING",
- "updated_at": "2020-07-01T00:00:00-06:00"
}
}
Generate and fetch messaging usage report synchronously. This endpoint will both generate and fetch the messaging report over a specified time period. No polling is necessary but the response may take up to a couple of minutes.
start_date | string <date-time> Example: start_date=2020-07-01T00:00:00-06:00 |
end_date | string <date-time> Example: end_date=2020-07-01T00:00:00-06:00 |
aggregation_type required | string Enum: "NO_AGGREGATION" "PROFILE" "TAGS" Example: aggregation_type=profile |
profiles | Array of strings Example: profiles=My profile |
Successful
object (MdrUsageReportResponse) | |||||||||||||||||||||||||
|
{- "data": {
- "aggregation_type": "NO_AGGREGATION",
- "connections": [
- 0
], - "created_at": "2020-07-01T00:00:00-06:00",
- "end_date": "2020-07-01T00:00:00-06:00",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "profiles": "My profile",
- "record_type": "mdr_usage_report",
- "result": [
- {
- "carrier_passthrough_fee": "0",
- "connection": "all",
- "cost": "0",
- "currency": "USD",
- "delivered": "0",
- "direction": "outbound",
- "message_type": "SMS",
- "parts": "0",
- "product": "outbound",
- "profile_id": "All",
- "received": "0",
- "sent": "0",
- "tags": "All",
- "tn_type": "TF"
}
], - "start_date": "2020-07-01T00:00:00-06:00",
- "status": "PENDING",
- "updated_at": "2020-07-01T00:00:00-06:00"
}
}
Delete messaging usage report by id
Successful
object (MdrUsageReportResponse) | |||||||||||||||||||||||||
|
{- "data": {
- "aggregation_type": "NO_AGGREGATION",
- "connections": [
- 0
], - "created_at": "2020-07-01T00:00:00-06:00",
- "end_date": "2020-07-01T00:00:00-06:00",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "profiles": "My profile",
- "record_type": "mdr_usage_report",
- "result": [
- {
- "carrier_passthrough_fee": "0",
- "connection": "all",
- "cost": "0",
- "currency": "USD",
- "delivered": "0",
- "direction": "outbound",
- "message_type": "SMS",
- "parts": "0",
- "product": "outbound",
- "profile_id": "All",
- "received": "0",
- "sent": "0",
- "tags": "All",
- "tn_type": "TF"
}
], - "start_date": "2020-07-01T00:00:00-06:00",
- "status": "PENDING",
- "updated_at": "2020-07-01T00:00:00-06:00"
}
}
Fetch a single messaging usage report by id
Successful
object (MdrUsageReportResponse) | |||||||||||||||||||||||||
|
{- "data": {
- "aggregation_type": "NO_AGGREGATION",
- "connections": [
- 0
], - "created_at": "2020-07-01T00:00:00-06:00",
- "end_date": "2020-07-01T00:00:00-06:00",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "profiles": "My profile",
- "record_type": "mdr_usage_report",
- "result": [
- {
- "carrier_passthrough_fee": "0",
- "connection": "all",
- "cost": "0",
- "currency": "USD",
- "delivered": "0",
- "direction": "outbound",
- "message_type": "SMS",
- "parts": "0",
- "product": "outbound",
- "profile_id": "All",
- "received": "0",
- "sent": "0",
- "tags": "All",
- "tn_type": "TF"
}
], - "start_date": "2020-07-01T00:00:00-06:00",
- "status": "PENDING",
- "updated_at": "2020-07-01T00:00:00-06:00"
}
}