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.
Get all of the details about the specified message.
Bearer <<YOUR_API_KEY_HERE>>
The ID of the message you are requesting details for.
The 'From' email address used to deliver the message. This address should be a verified sender in your Twilio SendGrid account.
test0@example.com
A unique ID assigned to the message. This ID can be used to retrieve activity data for the specific message.
The email's subject line.
The intended recipient's email address.
The message's status.
processed
delivered
not_delivered
The ID associated with a Twilio SendGrid email template used to format the message.
The unsubscribe group associated with this email.
1
Teammate's username
^$|^[A-Za-z0-9]+
Min length: 0
Max length: 64
The ID of the API Key used to authenticate the sending request for the message.
^[A-Za-z0-9]+
Min length: 3
Max length: 50
List of events related to email message
This is the IP of the user who sent the message.
Categories users associated to the message
JSON hash of key-value pairs associated with the message.
Null
IP used to send to the remote Mail Transfer Agent.
Whether or not the outbound IP is dedicated vs shared
dedicated
shared
1const client = require('@sendgrid/client');2client.setApiKey(process.env.SENDGRID_API_KEY);34const msg_id = "ZGkrHSypTsudrGkmdpJJ";56const request = {7url: `/v3/messages/${msg_id}`,8method: 'GET',910}1112client.request(request)13.then(([response, body]) => {14console.log(response.statusCode);15console.log(response.body);16})17.catch(error => {18console.error(error);19});