Skip to main content
Every gmail.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.

Drafts

create

drafts.create Create a new draft Risk: write
Input
Output

delete

drafts.delete Delete a draft [DESTRUCTIVE] Risk: destructive
Input Output: void

get

drafts.get Get a specific draft Risk: read
Input Output

list

drafts.list List drafts in the mailbox Risk: read
Input Output

send

drafts.send Send a draft as an email Risk: write
Input
Output

update

drafts.update Update an existing draft Risk: write
Input
Output

Labels

create

labels.create Create a new label Risk: write
Input
Output

delete

labels.delete Delete a label [DESTRUCTIVE] Risk: destructive
Input Output: void

get

labels.get Get a specific label Risk: read
Input Output

list

labels.list List all labels in the mailbox Risk: read
Input Output

update

labels.update Update an existing label Risk: write
Input
Output

Messages

batchModify

messages.batchModify Add or remove labels from multiple messages in bulk Risk: write
Input Output: void

delete

messages.delete Permanently delete a message [DESTRUCTIVE · IRREVERSIBLE] Risk: destructive · Irreversible
Input Output: void

get

messages.get Get a specific message Risk: read
Input Output

list

messages.list List messages in a mailbox Risk: read
Input Output

modify

messages.modify Add or remove labels from a message Risk: write
Input Output

send

messages.send Send an email to one or more recipients Risk: write
Input Output

trash

messages.trash Move a message to the trash Risk: write
Input Output

untrash

messages.untrash Restore a message from the trash Risk: write
Input Output

Threads

delete

threads.delete Permanently delete a thread [DESTRUCTIVE · IRREVERSIBLE] Risk: destructive · Irreversible
Input Output: void

get

threads.get Get a specific thread Risk: read
Input Output

list

threads.list List threads in the mailbox Risk: read
Input Output

modify

threads.modify Add or remove labels from a thread Risk: write
Input Output

trash

threads.trash Move a thread to the trash Risk: write
Input Output

untrash

threads.untrash Restore a thread from the trash Risk: write
Input Output