zohomail.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.
Folders
create
folders.create
Create a new folder
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
folderName | string | Yes | — |
parentFolderId | string | No | Parent folder ID for creating a sub-folder. |
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | No | — |
folderName | string | No | — |
path | string | No | — |
parentFolderId | string | No | — |
previousFolderId | string | No | — |
folderType | string | No | — |
isArchived | string | boolean | No | — |
imapAccess | string | boolean | No | — |
unreadCount | string | number | No | — |
messageCount | string | number | No | — |
URI | string | No | — |
delete
folders.delete
Delete a folder along with its emails and sub-folders [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
folderId | string | Yes | — |
void
get
folders.get
Get a specific folder
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
folderId | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | No | — |
folderName | string | No | — |
path | string | No | — |
parentFolderId | string | No | — |
previousFolderId | string | No | — |
folderType | string | No | — |
isArchived | string | boolean | No | — |
imapAccess | string | boolean | No | — |
unreadCount | string | number | No | — |
messageCount | string | number | No | — |
URI | string | No | — |
list
folders.list
List all mail folders
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
| Name | Type | Required | Description |
|---|---|---|---|
folders | object[] | Yes | — |
folders full type
folders full type
update
folders.update
Rename, mark all emails read, or empty a folder
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
folderId | string | Yes | — |
mode | rename | markAsRead | emptyFolder | Yes | — |
folderName | string | No | New folder name. Required when mode = rename. |
void
Messages
delete
messages.delete
Permanently delete an email [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
folderId | string | Yes | — |
messageId | string | Yes | — |
void
get
messages.get
Get a specific email with its content
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
folderId | string | Yes | — |
messageId | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
messageId | string | No | — |
threadId | string | No | — |
folderId | string | No | — |
subject | string | No | — |
summary | string | No | — |
fromAddress | string | No | — |
toAddress | string | No | — |
ccAddress | string | No | — |
sender | string | No | — |
sentDateInGMT | string | No | — |
receivedTime | string | No | — |
size | string | No | — |
hasAttachment | string | No | — |
hasInline | string | No | — |
status | string | No | — |
status2 | string | No | — |
flagid | string | No | — |
priority | string | No | — |
calendarType | string | No | — |
threadCount | string | No | — |
content | string | No | — |
mailFormat | string | No | — |
returnPath | string | No | — |
bccAddress | string | No | — |
replyTo | string | No | — |
list
messages.list
List emails in a folder
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
folderId | string | Yes | Folder to list emails from (required). |
start | number | No | Starting sequence number (default 1). |
limit | number | No | Number of emails to retrieve, 1-200 (default 10). |
status | read | unread | all | No | — |
sortBy | date | messageId | size | No | — |
sortorder | boolean | No | true = ascending, false = descending (default). |
includeto | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
messages | object[] | Yes | — |
messages full type
messages full type
markRead
messages.markRead
Mark emails as read
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
messageId | string[] | Yes | — |
void
markUnread
messages.markUnread
Mark emails as unread
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
messageId | string[] | Yes | — |
void
move
messages.move
Move emails to another folder
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
messageId | string[] | Yes | Message IDs to move. |
destfolderId | string | Yes | Destination folder ID. |
void
send
messages.send
Send an email to one or more recipients
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | Zoho Mail accountId. When omitted, the first account on the authenticated user is resolved automatically. |
fromAddress | string | Yes | Sender address; must belong to the authenticated account. |
toAddress | string | Yes | Recipient address(es), comma-separated. |
ccAddress | string | No | — |
bccAddress | string | No | — |
subject | string | No | — |
content | string | No | — |
mailFormat | html | plaintext | No | — |
askReceipt | yes | no | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
messageId | string | No | — |
threadId | string | No | — |
folderId | string | No | — |
subject | string | No | — |
summary | string | No | — |
fromAddress | string | No | — |
toAddress | string | No | — |
ccAddress | string | No | — |
sender | string | No | — |
sentDateInGMT | string | No | — |
receivedTime | string | No | — |
size | string | No | — |
hasAttachment | string | No | — |
hasInline | string | No | — |
status | string | No | — |
status2 | string | No | — |
flagid | string | No | — |
priority | string | No | — |
calendarType | string | No | — |
threadCount | string | No | — |