SendGrid

Twilio SendGrid Mail API

The Twilio SendGrid v3 Mail API allows you to send email at scale over HTTP. The Mail Send endpoint supports many levels of functionality, allowing you to…

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 v3 Mail API allows you to send email at scale over HTTP. The Mail Send endpoint supports many levels of functionality, allowing you to send templates, set categories and custom arguments that can be used to analyze your send, and configure which tracking settings to include such as opens and clicks. You can also group mail sends into batches, allowing you to schedule and cancel sends by their batch IDs.

Endpoints 3

Mail Send

  • POSTSend Email with Twilio SendGrid./v3/mail/send*The Mail Send operation allows you to send email over SendGrid's v3 Web API* For an overview of this API, including its features and limitations, please see…

Mail Batch

  • POSTCreate a batch ID./v3/mail/batchThis operation allows you to generate a new mail batch ID. Once a batch ID is created, you can associate it with a mail send by passing it in the request body…
  • GETValidate a batch ID./v3/mail/batch/:batch_idThis operation allows you to validate a mail batch ID. If you provide a valid batch ID, this operation will return a 200 status code and the batch ID itself.…

API details

Base URL
https://api.sendgrid.com
https://api.eu.sendgrid.com
Authentication
A bearer token in the Authorization header
Operations
3 operations on 3 pathsPOST 2GET 1
Main resources
Mail Batch 2Mail Send 1
Description format
OpenAPI 3.1.0, API version 1.0.0

How to test the Twilio SendGrid Mail 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 Mail 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 “Send Email with Twilio SendGrid.” (POST /v3/mail/send), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Twilio SendGrid Mail API?

The Twilio SendGrid v3 Mail API allows you to send email at scale over HTTP. The Mail Send endpoint supports many levels of functionality, allowing you to… It is listed under Communication and has 3 endpoints.

Who publishes the Twilio SendGrid Mail 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 Mail 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 Mail API?

With A bearer token in the Authorization header.

How many endpoints does the Twilio SendGrid Mail API have?

3 operations on 3 paths (2 POST, 1 GET). The largest groups are Mail Batch, Mail Send.

Is forking the Twilio SendGrid Mail 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.