Skip to main content
Every sendgrid.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Api Keys

create

apiKeys.create Create an API key Risk: write
Input Output: empty object

get

apiKeys.get Retrieve an API key Risk: read
Input Output: empty object

getAll

apiKeys.getAll Retrieve all API keys Risk: read
Input Output: empty object

remove

apiKeys.remove Delete an API key Risk: write
Input Output: empty object

update

apiKeys.update Update an API key name or scopes Risk: write
Input Output: empty object

Asm

addGroupSuppressions

asm.addGroupSuppressions Add suppressions to an unsubscribe group Risk: write
Input Output: empty object

createGroup

asm.createGroup Create an unsubscribe group Risk: write
Input Output: empty object

deleteGroup

asm.deleteGroup Delete an unsubscribe group Risk: write
Input Output: empty object

deleteGroupSuppression

asm.deleteGroupSuppression Delete a suppression from an unsubscribe group Risk: write
Input Output: empty object

getGroup

asm.getGroup Retrieve an unsubscribe group Risk: read
Input Output: empty object

getGroups

asm.getGroups Retrieve unsubscribe groups Risk: read
Input Output: object[]

getGroupSuppressions

asm.getGroupSuppressions Retrieve suppressions for an unsubscribe group Risk: read
Input Output: object[]

updateGroup

asm.updateGroup Update an unsubscribe group Risk: write
Input Output: empty object

Contacts

addOrUpdate

contacts.addOrUpdate Add or update contacts in SendGrid Marketing Risk: write
Input
Output

export

contacts.export Create a marketing contacts export job Risk: write
Input Output: empty object

exportStatus

contacts.exportStatus Get a marketing contacts export job Risk: read
Input Output: empty object

get

contacts.get Get a marketing contact by ID Risk: read
Input Output: empty object

getCount

contacts.getCount Get marketing contact count Risk: read
Input: empty object Output: empty object

getSample

contacts.getSample Get a sample of marketing contacts Risk: read
Input Output: empty object

import

contacts.import Create a marketing contacts import job Risk: write
Input Output: empty object

importStatus

contacts.importStatus Get a marketing contacts import job Risk: read
Input Output: empty object

listExports

contacts.listExports List marketing contacts export jobs Risk: read
Input: empty object Output: empty object

remove

contacts.remove Delete marketing contacts by ID Risk: write
Input Output
contacts.search Search marketing contacts with SGQL Risk: read
Input Output: empty object

searchEmails

contacts.searchEmails Search marketing contacts by email Risk: read
Input Output: empty object

Fields

create

fields.create Create a custom field definition Risk: write
Input Output: empty object

getAll

fields.getAll Get all marketing field definitions Risk: read
Input: empty object Output: empty object

remove

fields.remove Delete a custom field definition Risk: write
Input Output: empty object

update

fields.update Update a custom field definition Risk: write
Input Output: empty object

Lists

create

lists.create Create a new marketing contact list Risk: write
Input Output

get

lists.get Get a marketing list by ID Risk: read
Input Output: empty object

getAll

lists.getAll Retrieve all marketing contact lists Risk: read
Input Output

getContactCount

lists.getContactCount Get contact count for a marketing list Risk: read
Input Output: empty object

remove

lists.remove Delete a marketing list Risk: write
Input Output: empty object

removeContacts

lists.removeContacts Remove contacts from a marketing list Risk: write
Input Output

update

lists.update Update a marketing list Risk: write
Input Output

Mail

cancelScheduledSend

mail.cancelScheduledSend Cancel or pause a scheduled send Risk: write
Input Output: empty object

createBatchId

mail.createBatchId Create a batch ID for scheduled mail Risk: write
Input: empty object Output: empty object

deleteScheduledSend

mail.deleteScheduledSend Delete a cancellation/pause for a scheduled send Risk: write
Input Output: empty object

getScheduledSend

mail.getScheduledSend Retrieve a scheduled send by batch ID Risk: read
Input Output: object[]

listScheduledSends

mail.listScheduledSends Retrieve all scheduled sends Risk: read
Input: empty object Output: object[]

send

mail.send Send an email via SendGrid Mail Send API v3 Risk: write
Input
Output

updateScheduledSend

mail.updateScheduledSend Update a scheduled send status Risk: write
Input Output: empty object

validateBatchId

mail.validateBatchId Validate a mail batch ID Risk: read
Input Output: empty object

Segments

create

segments.create Create a Marketing Campaigns segment 2.0 Risk: write
Input Output: empty object

get

segments.get Get a Marketing Campaigns segment 2.0 Risk: read
Input Output: empty object

getAll

segments.getAll Get all Marketing Campaigns segments 2.0 Risk: read
Input Output: empty object

refresh

segments.refresh Manually refresh a Marketing Campaigns segment 2.0 Risk: write
Input Output: empty object

remove

segments.remove Delete a Marketing Campaigns segment 2.0 Risk: write
Input Output: empty object

update

segments.update Update a Marketing Campaigns segment 2.0 Risk: write
Input Output: empty object

Senders

create

senders.create Create a verified sender Risk: write
Input Output: empty object

createIdentity

senders.createIdentity Create a Marketing Campaigns sender identity Risk: write
Input: empty object Output: empty object

getAll

senders.getAll Retrieve verified senders Risk: read
Input Output

getIdentity

senders.getIdentity Get a Marketing Campaigns sender identity Risk: read
Input Output: empty object

listIdentities

senders.listIdentities Get Marketing Campaigns sender identities Risk: read
Input: empty object Output: empty object

remove

senders.remove Delete a verified sender Risk: write
Input Output: empty object

resend

senders.resend Resend verified sender verification Risk: write
Input Output: empty object

update

senders.update Update a verified sender Risk: write
Input Output: empty object

Stats

getCategory

stats.getCategory Retrieve category statistics Risk: read
Input Output: object[]

getClient

stats.getClient Retrieve email client statistics Risk: read
Input Output: object[]

getDevice

stats.getDevice Retrieve device statistics Risk: read
Input Output: object[]

getGeo

stats.getGeo Retrieve geographic statistics Risk: read
Input Output: object[]

getGlobal

stats.getGlobal Retrieve global email statistics Risk: read
Input Output: object[]

getMailboxProvider

stats.getMailboxProvider Retrieve mailbox provider statistics Risk: read
Input Output: object[]

Suppressions

addGlobalUnsubscribes

suppressions.addGlobalUnsubscribes Add emails to the global unsubscribe list Risk: write
Input Output: empty object

deleteBlock

suppressions.deleteBlock Delete a block by email Risk: write
Input Output: empty object

deleteBlocks

suppressions.deleteBlocks Delete blocked emails Risk: write
Input Output: empty object

deleteBounce

suppressions.deleteBounce Delete a bounce by email Risk: write
Input Output: empty object

deleteBounces

suppressions.deleteBounces Delete bounce suppressions Risk: write
Input Output: empty object

deleteGlobalUnsubscribe

suppressions.deleteGlobalUnsubscribe Delete a global unsubscribe by email Risk: write
Input Output: empty object

deleteInvalidEmail

suppressions.deleteInvalidEmail Delete an invalid email Risk: write
Input Output: empty object

deleteInvalidEmails

suppressions.deleteInvalidEmails Delete invalid emails Risk: write
Input Output: empty object

deleteSpamReport

suppressions.deleteSpamReport Delete a spam report by email Risk: write
Input Output: empty object

deleteSpamReports

suppressions.deleteSpamReports Delete spam reports Risk: write
Input Output: empty object

getBlock

suppressions.getBlock Retrieve a block by email Risk: read
Input Output: object[]

getBlocks

suppressions.getBlocks Retrieve blocked emails Risk: read
Input Output

getBounce

suppressions.getBounce Retrieve a bounce by email Risk: read
Input Output: object[]

getBounces

suppressions.getBounces Retrieve email bounce suppressions Risk: read
Input Output

getGlobalUnsubscribe

suppressions.getGlobalUnsubscribe Retrieve a global unsubscribe by email Risk: read
Input Output: empty object

getGlobalUnsubscribes

suppressions.getGlobalUnsubscribes Retrieve global unsubscribes Risk: read
Input Output

getInvalidEmail

suppressions.getInvalidEmail Retrieve an invalid email Risk: read
Input Output: object[]

getInvalidEmails

suppressions.getInvalidEmails Retrieve invalid emails Risk: read
Input Output

getSpamReport

suppressions.getSpamReport Retrieve a spam report by email Risk: read
Input Output: object[]

getSpamReports

suppressions.getSpamReports Retrieve spam reports Risk: read
Input Output

Templates

activateVersion

templates.activateVersion Activate a transactional template version Risk: write
Input Output: empty object

create

templates.create Create a transactional template Risk: write
Input Output: empty object

createVersion

templates.createVersion Create a transactional template version Risk: write
Input Output: empty object

get

templates.get Get a transactional template Risk: read
Input Output: empty object

getAll

templates.getAll Get all transactional templates Risk: read
Input Output: empty object

getVersion

templates.getVersion Get a transactional template version Risk: read
Input Output: empty object

remove

templates.remove Delete a transactional template Risk: write
Input Output: empty object

removeVersion

templates.removeVersion Delete a transactional template version Risk: write
Input Output: empty object

update

templates.update Update a transactional template Risk: write
Input Output: empty object

updateVersion

templates.updateVersion Update a transactional template version Risk: write
Input Output: empty object

User

getAccount

user.getAccount Retrieve the user account Risk: read
Input: empty object Output: empty object

getCredits

user.getCredits Retrieve remaining email credits Risk: read
Input: empty object Output: empty object

getEmail

user.getEmail Retrieve the account email address Risk: read
Input: empty object Output: empty object

getProfile

user.getProfile Retrieve the user profile Risk: read
Input: empty object Output: empty object

getScopes

user.getScopes Retrieve API key scopes for the current key Risk: read
Input: empty object Output: empty object

getUsername

user.getUsername Retrieve the account username Risk: read
Input: empty object Output: empty object