SendGrid

Twilio SendGrid Email Logs API

The Twilio SendGrid Email Logs API allows you to query all of your stored messages and individual messages. Once retrieved, you can inspect the data…

Communication#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

The Twilio SendGrid Email Logs API allows you to query all of your stored messages and individual 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.

Endpoints 2

Email Logs

  • GETGet all details for the specified message ID./v3/logs/:sg_message_id?subuser=stringGet all of the details about the specified message.
  • POSTSearch all messages using the provided query filters./v3/logsList recent messages within Email Logs, or search for messages using a filter.

API details

Base URL
https://api.sendgrid.com
https://api.eu.sendgrid.com
Authentication
A bearer token in the Authorization header
Operations
2 operations on 2 pathsGET 1POST 1
Main resources
Email Logs 2
Response formats
application/json
Description format
OpenAPI 3.1.0, API version 1.0.0

How to test the Twilio SendGrid Email Logs API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Twilio SendGrid Email Logs API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses A bearer token in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Get all details for the specified message ID.” (GET /v3/logs/:sg_message_id?subuser=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Twilio SendGrid Email Logs API?

The Twilio SendGrid Email Logs API allows you to query all of your stored messages and individual messages. Once retrieved, you can inspect the data… It is listed under Communication and has 2 endpoints.

Who publishes the Twilio SendGrid Email Logs API?

It is listed from SendGrid's public API description (an OpenAPI document), not published by SendGrid on Swastik Codes. Anyone who controls sendgrid.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Twilio SendGrid Email Logs API?

Its description lists 2 base URLs: https://api.sendgrid.com, https://api.eu.sendgrid.com. The first is the usual one; the others are typically sandbox or regional servers.

How do I authenticate with the Twilio SendGrid Email Logs API?

With A bearer token in the Authorization header.

How many endpoints does the Twilio SendGrid Email Logs API have?

2 operations on 2 paths (1 GET, 1 POST). The largest groups are Email Logs.

Is forking the Twilio SendGrid Email Logs API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.