Sign Up

Log In

SendGrid

FREEMIUM
By sendgridOfficial
Updated 5 months ago
Email
7.6/10
Popularity Score
270ms
Latency
95%
Success Rate

SendGrid API Documentation

Welcome to SendGrid’s Web API v3! This API is RESTful, fully featured, and easy to integrate with.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

Mail
POSTSend
Blocks
GETRetrieve all blocks
GETRetrieve a specific block
DELETEDelete a specific block
Bounces
GETRetrieve all bounces
GETRetrieve a bounce
DELETEDelete a bounce
Invalid Emails
GETRetrieve all invalid emails
GETRetrieve a specific invalid email
DELETEDelete a specific invalid email
Spam Reports
GETRetrieve all spam reports
DELETEDelete a specific spam report
GETRetrieve a specific spam report
Cancel Scheduled Sends
POSTCreate a batch ID
GETValidate Batch ID
POSTCancel or pause a scheduled send
GETRetrieve all scheduled sends
GETRetrieve scheduled send
PATCHUpdate user scheduled send information
DELETEDelete a cancellation or pause of a scheduled send
Unsubscribe Groups
GETRetrieve all suppression groups associated with the user.
GETGet information on a single suppression group.
PATCHUpdate a suppression group.
DELETEDelete a suppression group.
POSTCreate a new suppression group
Suppressions (Unsubscribe)
POSTAdd suppressions to a suppression group
GETRetrieve all suppressions for a suppression group
DELETEDelete a suppression from a suppression group
GETRetrieve all suppressions
GETRetrieve all suppression groups for an email address
POSTSearch for suppressions within a group
Settings - Tracking
GETRetrieve Tracking Settings
GETRetrieve Click Track Settings
PATCHUpdate Click Tracking Settings
GETRetrieve Google Analytics Settings
PATCHUpdate Google Analytics Settings
GETGet Open Tracking Settings
PATCHUpdate Open Tracking Settings
GETRetrieve Subscription Tracking Settings
PATCHUpdate Subscription Tracking Settings
Settings - Mail
GETRetrieve all mail settings
GETRetrieve all BCC mail settings
PATCHUpdate BCC mail settings
GETRetrieve address whitelist mail settings
PATCHUpdate address whitelist mail settings
GETRetrieve footer mail settings
PATCHUpdate footer mail settings
GETRetrieve forward spam mail settings
PATCHUpdate forward spam mail settings
GETRetrieve plain content mail settings
PATCHUpdate plain content mail settings
GETRetrieve spam check mail settings
PATCHUpdate spam check mail settings
GETRetrieve bounce purge mail settings
PATCHUpdate bounce purge mail settings
GETRetrieve forward bounce mail settings
PATCHUpdate forward bounce mail settings
POSTSend

This endpoint allows you to send email over SendGrid’s v3 Web API,

FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
SendJSON_STRING
REQUIREDSend email payload. For optional payload parameters visit https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html#-Request-Body-Parameters
Request Snippet
unirest.post("https://rapidprod-sendgrid-v1.p.rapidapi.com/mail/send")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/json")
.send({"personalizations":[{"to":[{"email":"[email protected]"}],"subject":"Hello, World!"}],"from":{"email":"[email protected]"},"content":[{"type":"text/plain","value":"Hello, World!"}]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://rapidprod-sendgrid-v1.p.rapidapi.com/mail/send")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/json")
.send({"personalizations":[{"to":[{"email":"[email protected]"}],"subject":"Hello, World!"}],"from":{"email":"[email protected]"},"content":[{"type":"text/plain","value":"Hello, World!"}]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard