RapidAPI logo

Sign Up

Log In

Gmail

FREE
By stefan.skliarov
Updated 2 months ago
Email
1.4/10
Popularity Score
91ms
Latency
100%
Success Rate

Gmail API Documentation

Create a simple app that makes requests to the Gmail API in just 5 to 10 minutes.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
POSTbatchLabelsModify
POSTbatchMessageDelete
POSTcreateFilter
POSTcreateForwardingAddress
POSTcreateLabel
POSTcreateRawDraft
POSTcreateSendAsAlias
POSTcreateSimpleDraft
POSTdeleteDraft
POSTdeleteFilter
POSTdeleteForwardingAddress
POSTdeleteLabel
POSTdeleteSendAsAlias
POSTdeleteSendAsAliasSMIMEconfig
POSTdeleteSingleMailboxMessage
POSTdeleteThread
POSTgetAutoForwarding
POSTgetDrafts
POSTgetFilters
POSTgetForwardingAddress
POSTgetForwardingAddresses
POSTgetImapSettings
POSTgetLabels
POSTgetMailboxHistory
POSTgetMailboxMessages
POSTgetPopSettings
POSTgetProfile
POSTgetSendAsAliasSMIMEconfig
POSTgetSendAsAliasSMIMEconfigs
POSTgetSendAsAliases
POSTgetSingleDraft
POSTgetSingleFilter
POSTgetSingleLabel
POSTgetSingleMailboxMessage
POSTgetSingleMessageAttachment
POSTgetSingleSendAsAlias
POSTgetSingleThread
POSTgetThreads
POSTgetVacationSettings
POSTimportMessageIntoMailbox
POSTinsertMessageIntoMailbox
POSTinsertSendAsAliasSMIMEconfig
POSTmoveMessageToTrash
POSTmoveThreadToTrash
POSTremoveMessageFromTrash
POSTsendDraft
POSTsendRawMessage
POSTsendSimpleMessage
POSTsetMailboxNotification
POSTsetSMIMEconfigAsDefault
POSTstopMailboxNotifications
POSTuntrashThread
POSTupdateAutoForwarding
POSTupdateDraft
POSTupdateImapSettings
POSTupdateLabel
POSTupdateLabelsOnMessage
POSTupdatePopSettings
POSTupdateSendAsAlias
POSTupdateThreadLabels
POSTupdateVacationSettings
POSTverifySendAsAlias
POSTbatchLabelsModify

Modifies the labels on the specified messages.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
idsLIST
REQUIREDIds of the message
accessTokenSTRING
REQUIREDToken received from Gmail
Optional Parameters
addLabelIdsLIST
OPTIONALLabels to add
removeLabelIdsLIST
OPTIONALLabels to remove
emailSTRING
OPTIONALThe email of the user. The special value me can be used to indicate the authenticated user.
Request Snippet
unirest.post("https://Gmailstefan-skliarovV1.p.rapidapi.com/batchLabelsModify")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("addLabelIds=undefined")
.send("removeLabelIds=undefined")
.send("email=undefined")
.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://Gmailstefan-skliarovV1.p.rapidapi.com/batchLabelsModify")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("addLabelIds=undefined")
.send("removeLabelIds=undefined")
.send("email=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication