Load records synchronously
Fetch usage data synchronously
Query parameters
The account for which the list of reports will be queried.
The product to return records for
Direction of the communication, either inbound (received by our services), or outbound (originated from our services). Required for products SMS and MESSAGES. Optional for VOICE-CALL. Invalid for IN-APP-VOICE, CONVERSATIONS, NUMBER-INSIGHT, VERIFY-API.
The UUID of the message or call to be searched for. You can specify a comma-separated list of UUIDs. If UUIDs are not found they are listed in the response in the ids_not_found field.
If you specify id, you must not specify status, date_start or date_end.
ISO-8601 extended time zone offset or ISO-8601 UTC zone offset formatted date (format yyyy-mm-ddThh:mm:ss[.sss]±hh:mm or yyyy-mm-ddThh:mm:ss[.sss]Z) for when reports should begin.
It filters on the time the API call was received by Vonage and corresponds to the field date_received (date_start for Voice) in the report file. It is inclusive, i.e. the provided value is less than or equal to the value in the field date_received (date_start for Voice) in the CDR.
If you provide this, you must provide date_end and must not provide id.
Must be no more than 24 hours later than date_start
ISO-8601 extended time zone offset or ISO-8601 UTC zone offset formatted date (format yyyy-mm-ddThh:mm:ss[.sss]±hh:mm or yyyy-mm-ddThh:mm:ss[.sss]Z) for when report should end.
It is exclusive, i.e. the provided value is strictly greater than the value in the field date_received in the CDR.
If you provide this, you must provide date_start and must not provide id.
Include the message contents in the records. Only applicable for use with products SMS and MESSAGES, where it is optional.
Indicates whether the SMS was split up into multiple parts (due to its length).
The SMS status to search for. Optional where product is SMS.
Response
OK
Example response
{
"_links": {
"self": {
"href": "https://api.nexmo.com/v2/reports/records?product=SMS&direction=outbound&date_start=2020-03-05T13%3A00%3A00Z&date_end=2020-03-05T14%0A00%3A00Z&account_id=abcdef01"
}
},
"account_id": "abcdef01",
"currency": "EUR",
"ids_not_found": "7b10a0c2-1a05-11eb-bad9-38f9d331649,7b1091b8-1a05-11eb-bad9-38f9d331493",
"received_at": "2019-06-28T15:30:00+0000",
"request_id": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
"request_status": "SUCCESS",
"direction": "outbound",
"items_count": 1,
"product": "SMS",
"records": [
{
"account_id": "abcdef01",
"country": "FR",
"country_name": "France",
"currency": "EUR",
"date_finalized": "2019-06-28T15:30:00+0000",
"date_received": "2019-06-28T15:30:00+0000",
"direction": "outbound",
"error_code": "0",
"error_code_description": "Delivered",
"from": "441234567890",
"message_id": "0000000A",
"network": "23415",
"network_name": "Vodafone Limited",
"status": "delivered",
"to": "441234567890",
"message_body": "This is a text message"
}
]
}