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
draft full type
draft full type
message full type
message full type
delete
drafts.delete
Delete a draft [DESTRUCTIVE]
Risk: destructive
Output:
void
get
drafts.get
Get a specific draft
Risk: read
Output
message full type
message full type
list
drafts.list
List drafts in the mailbox
Risk: read
Output
drafts full type
drafts full type
send
drafts.send
Send a draft as an email
Risk: write
message full type
message full type
payload full type
payload full type
update
drafts.update
Update an existing draft
Risk: write
draft full type
draft full type
message full type
message full type
Labels
create
labels.create
Create a new label
Risk: write
label full type
label full type
color full type
color full type
delete
labels.delete
Delete a label [DESTRUCTIVE]
Risk: destructive
Output:
void
get
labels.get
Get a specific label
Risk: read
Output
color full type
color full type
list
labels.list
List all labels in the mailbox
Risk: read
Output
labels full type
labels full type
update
labels.update
Update an existing label
Risk: write
label full type
label full type
color full type
color full type
Messages
batchModify
messages.batchModify
Add or remove labels from multiple messages in bulk
Risk: write
Output:
void
delete
messages.delete
Permanently delete a message [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
Output:
void
get
messages.get
Get a specific message
Risk: read
Output
payload full type
payload full type
list
messages.list
List messages in a mailbox
Risk: read
Output
messages full type
messages full type
modify
messages.modify
Add or remove labels from a message
Risk: write
Output
payload full type
payload full type
send
messages.send
Send an email to one or more recipients
Risk: write
Output
payload full type
payload full type
trash
messages.trash
Move a message to the trash
Risk: write
Output
payload full type
payload full type
untrash
messages.untrash
Restore a message from the trash
Risk: write
Output
payload full type
payload full type
Threads
delete
threads.delete
Permanently delete a thread [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
Output:
void
get
threads.get
Get a specific thread
Risk: read
Output
messages full type
messages full type
list
threads.list
List threads in the mailbox
Risk: read
Output
threads full type
threads full type
modify
threads.modify
Add or remove labels from a thread
Risk: write
Output
messages full type
messages full type
trash
threads.trash
Move a thread to the trash
Risk: write
Output
messages full type
messages full type
untrash
threads.untrash
Restore a thread from the trash
Risk: write
Output
messages full type
messages full type