Query Metrics Related to Messages
Last updated 2 months ago
Fetch message attributes using various query parameters
The ID of the workspace
An array of messages
const response = await fetch('/workspaces/{workspaceId}/reporting/messages?periodStart=2024-11-21T10%3A24%3A44.900Z', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "ChannelID": "text", "ChannelName": "text", "ChannelSenderType": "text", "CampaignID": "text", "PlatformID": "text", "Status": "text", "FailureCode": "text", "CreatedAt": "2024-11-21T10:24:44.900Z", "SentAt": "2024-11-21T10:24:44.900Z", "DeliveredAt": "2024-11-21T10:24:44.900Z", "Direction": "text", "From": { "Key": "text", "Value": "text", "CountryCode": "text" }, "To": { "Value": [ "text" ], "CountryCodes": [ "text" ] }, "MessageType": "text", "ExtraInformation": { "Operator": "text", "MailboxProvider": "text", "MailboxProviderRegion": "text" }, "UseCase": "text", "Activity": { "OpenedAt": "2024-11-21T10:24:44.900Z", "ClickedAt": "2024-11-21T10:24:44.900Z" } } ]