You must purchase additional email activity history to gain access to the Email Activity Feed API.
The Email Activity API allows you to query all of your stored messages, query individual messages, and download a CSV with data about the stored messages.
Once retrieved, you can inspect the data associated with your messages to better understand your mail send. For example, you may retrieve all bounced messages or all messages with the same subject line and search for commonalities among them.
See "Getting Started with the Email Activity Feed API" for help building queries and working with the API.
You can also work with email activity in the Activity section of the Twilio SendGrid App.
This endpoint will return a presigned URL that can be used to download the CSV that was requested from the "Request a CSV" endpoint.
Bearer <<YOUR_API_KEY_HERE>>
UUID used to locate the download csv request entry in the DB.
This is the UUID provided in the email sent to the user when their csv file is ready to download
A signed link that will allow you to download the CSV file requested by the Request a CSV endpoint.
Returns the aws signed link to the csv file which mako UI should perform a get on to trigger the csv download for the user
^((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?$
Min length: 5
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const download_uuid = "f15982c1-a82c-4e87-a6b2-a4a63b4b7644";56const request = {7url: `/v3/messages/download/${download_uuid}`,8method: "GET",9};1011client12.request(request)13.then(([response, body]) => {14console.log(response.statusCode);15console.log(response.body);16})17.catch((error) => {18console.error(error);19});