{offset, limit, totalItems, totalPages, links}).type separates consent-exempt sends from ordinary ones, which is what makes this endpoint an audit surface as well as a debugging one.curl --location '/messages?channel=undefined&type=undefined&basis=undefined&status=undefined&tag=undefined&contactId=undefined&clientContactId=undefined&from=undefined&to=undefined&limit=undefined&offset=undefined' \
--header 'Authorization: Bearer <token>'{
"messages": [
{
"messageId": "string",
"channel": "string",
"type": "string",
"basis": "string",
"status": "scheduled",
"contactId": "string",
"to": "string",
"tags": [
"string"
],
"createdAt": "string",
"sentAt": "string"
}
],
"paging": {
"offset": 0,
"limit": 0,
"totalItems": 0,
"totalPages": 0,
"links": [
{
"href": "string",
"rel": "next"
}
]
}
}