The Mail API works with the team inbox directly: mailboxes, conversations, folders, read and starred state, and message content. These routes have no commands or tools of their own. The terminal reaches them with vipoutreach api, an MCP client with vipoutreach_api_request, and the everyday inbox work also has the conversation and reply commands.
Mail operations need Mail access on the key, which the person behind it approves for their own mailboxes.
Each operation below shows its REST route under
https://app.vipoutreach.com/api/v1, the
command for the terminal and the
MCP tool where they exist. The command's flags are
listed with it; IDs in the route come first, in order. Fields that hold an
object go in a JSON file passed with --input.
These routes have no command of their own, so the terminal reaches them
with vipoutreach api and an MCP client with
vipoutreach_api_request.
- Folders (7)
- Message state (7)
- Message content (7)
- Mailboxes and conversations (12)
Folders
Inspect this key's folder command without resubmitting
GET /api/v1/mail/mailboxes/{mailbox_id}/folder-commands/{command_id}
Requires explicit folders read approval and current mailbox content access. Folder names are private content. Command reads are restricted to the original key and member. Polling reconciles durable positive provider evidence only; it never repeats a provider mutation.
- ID
- getMailProviderFolderCommand
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/folder-commands/{command_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:folders:read
List delegated provider folders
GET /api/v1/mail/mailboxes/{mailbox_id}/folders
Requires explicit folders read approval and current mailbox content access. Folder names are private content. Command reads are restricted to the original key and member. Polling reconciles durable positive provider evidence only; it never repeats a provider mutation.
- ID
- listMailProviderFolders
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/folders
- MCP
- vipoutreach_api_request
- Access
- api:mail:folders:read
| Field | In | Type | What it is |
|---|---|---|---|
| per_page | query | integer | Default: 25. From 1 to 100. |
| cursor | query | string | Up to 4096 characters. |
* required
Create a confirmed provider folder
POST /api/v1/mail/mailboxes/{mailbox_id}/folders
Requires explicit folders write approval, interactive mail and current mailbox-management permission and current mailbox content access. Requires JSON confirm=true and the exact reviewed revision. Provider IO is outside generic replay transactions. Preserve the idempotency key; identical retries return the same receipt without repeating the provider mutation. An unresolved result must not be retried with a new key. Physical folder deletion requires proven empty and childless state; special-use folders are protected.
- ID
- createMailProviderFolder
- CLI
- vipoutreach api post /mail/mailboxes/{mailbox_id}/folders
- MCP
- vipoutreach_api_request
- Access
- api:mail:folders:write
| Field | In | Type | What it is |
|---|---|---|---|
| Idempotency-Key * | header | string | Up to 255 characters. |
| name * | body | string | One folder name segment, not a path. Up to 255 characters. |
| parent_folder_id | body | string | Up to 26 characters. |
| source_revision * | body | string | |
| confirm * | body | boolean | One of: true. |
* required
Read folder capabilities and creation revision
GET /api/v1/mail/mailboxes/{mailbox_id}/folders/capabilities
Requires explicit folders read approval and current mailbox content access. Folder names are private content. Command reads are restricted to the original key and member. Polling reconciles durable positive provider evidence only; it never repeats a provider mutation.
- ID
- getMailProviderFolderCapabilities
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/folders/capabilities
- MCP
- vipoutreach_api_request
- Access
- api:mail:folders:read
Read a folder and its current revision
GET /api/v1/mail/mailboxes/{mailbox_id}/folders/{folder_id}
Requires explicit folders read approval and current mailbox content access. Folder names are private content. Command reads are restricted to the original key and member. Polling reconciles durable positive provider evidence only; it never repeats a provider mutation.
- ID
- getMailProviderFolder
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/folders/{folder_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:folders:read
Rename a confirmed provider folder
PATCH /api/v1/mail/mailboxes/{mailbox_id}/folders/{folder_id}
Requires explicit folders write approval, interactive mail and current mailbox-management permission and current mailbox content access. Requires JSON confirm=true and the exact reviewed revision. Provider IO is outside generic replay transactions. Preserve the idempotency key; identical retries return the same receipt without repeating the provider mutation. An unresolved result must not be retried with a new key. Physical folder deletion requires proven empty and childless state; special-use folders are protected.
- ID
- renameMailProviderFolder
- CLI
- vipoutreach api patch /mail/mailboxes/{mailbox_id}/folders/{folder_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:folders:write
| Field | In | Type | What it is |
|---|---|---|---|
| Idempotency-Key * | header | string | Up to 255 characters. |
| name * | body | string | Up to 255 characters. |
| revision * | body | string | |
| confirm * | body | boolean | One of: true. |
* required
Delete a confirmed mutable provider folder
DELETE /api/v1/mail/mailboxes/{mailbox_id}/folders/{folder_id}
Requires explicit folders write approval, interactive mail and current mailbox-management permission and current mailbox content access. Requires JSON confirm=true and the exact reviewed revision. Provider IO is outside generic replay transactions. Preserve the idempotency key; identical retries return the same receipt without repeating the provider mutation. An unresolved result must not be retried with a new key. Physical folder deletion requires proven empty and childless state; special-use folders are protected.
- ID
- deleteMailProviderFolder
- CLI
- vipoutreach api delete /mail/mailboxes/{mailbox_id}/folders/{folder_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:folders:write
| Field | In | Type | What it is |
|---|---|---|---|
| Idempotency-Key * | header | string | Up to 255 characters. |
| revision * | body | string | |
| confirm * | body | boolean | One of: true. |
* required
Message state
createMailMessageBatch
POST /api/v1/mail/mailboxes/{mailbox_id}/message-batches
Explicit message_state write consent and current content grants required. Four exact revision-bound messages maximum; configured provider-call budget must fit 150 seconds. A new key never resumes unknown work. No email is sent.
- ID
- createMailMessageBatch
- CLI
- vipoutreach api post /mail/mailboxes/{mailbox_id}/message-batches
- MCP
- vipoutreach_api_request
- Access
- api:mail:message_state:write
| Field | In | Type | What it is |
|---|---|---|---|
| Idempotency-Key * | header | string | Up to 255 characters. |
| action * | body | string | One of: mark_read, mark_unread, star, unstar, move, archive, trash, restore, unarchive, unspam, delete_forever, add_labels, remove_labels. |
| confirm * | body | boolean | |
| items * | body | array of object |
* required
listMailMessageBatches
GET /api/v1/mail/mailboxes/{mailbox_id}/message-batches
Explicit message_state read consent and current content grants required. Four exact revision-bound messages maximum; configured provider-call budget must fit 150 seconds. A new key never resumes unknown work. No email is sent.
- ID
- listMailMessageBatches
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/message-batches
- MCP
- vipoutreach_api_request
- Access
- api:mail:message_state:read
| Field | In | Type | What it is |
|---|---|---|---|
| per_page | query | integer | Default: 25. From 1 to 100. |
| cursor | query | string | Up to 4096 characters. |
* required
getMailMessageBatch
GET /api/v1/mail/mailboxes/{mailbox_id}/message-batches/{batch_id}
Explicit message_state read consent and current content grants required. Four exact revision-bound messages maximum; configured provider-call budget must fit 150 seconds. A new key never resumes unknown work. No email is sent.
- ID
- getMailMessageBatch
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/message-batches/{batch_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:message_state:read
List this key’s message command receipts
GET /api/v1/mail/mailboxes/{mailbox_id}/message-commands
Requires explicit message_state read consent and current content grants. This capability never sends email and does not require folder-management rights. Reviewed writes require JSON confirm=true, a current revision and an Idempotency-Key. Placement actions require an explicit source folder; permanent deletion requires Trash. Provider IO runs outside replay transactions. Preserve the same key for retries. Unknown outcomes are not resubmitted; a positive provider response is retained before local projection.
- ID
- listMailMessageCommands
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/message-commands
- MCP
- vipoutreach_api_request
- Access
- api:mail:message_state:read
| Field | In | Type | What it is |
|---|---|---|---|
| per_page | query | integer | Default: 25. From 1 to 100. |
| cursor | query | string | Up to 4096 characters. |
* required
Inspect a provider message command without resubmitting
GET /api/v1/mail/mailboxes/{mailbox_id}/message-commands/{command_id}
Requires explicit message_state read consent and current content grants. This capability never sends email and does not require folder-management rights. Reviewed writes require JSON confirm=true, a current revision and an Idempotency-Key. Placement actions require an explicit source folder; permanent deletion requires Trash. Provider IO runs outside replay transactions. Preserve the same key for retries. Unknown outcomes are not resubmitted; a positive provider response is retained before local projection.
- ID
- getMailMessageCommand
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/message-commands/{command_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:message_state:read
Read delegated message flags and placements
GET /api/v1/mail/mailboxes/{mailbox_id}/messages/{message_id}/state
Requires explicit message_state read consent and current content grants. This capability never sends email and does not require folder-management rights. Reviewed writes require JSON confirm=true, a current revision and an Idempotency-Key. Placement actions require an explicit source folder; permanent deletion requires Trash. Provider IO runs outside replay transactions. Preserve the same key for retries. Unknown outcomes are not resubmitted; a positive provider response is retained before local projection.
- ID
- getMailMessageState
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/messages/{message_id}/state
- MCP
- vipoutreach_api_request
- Access
- api:mail:message_state:read
Apply one confirmed revision-bound provider message action
POST /api/v1/mail/mailboxes/{mailbox_id}/messages/{message_id}/state
Requires explicit message_state write consent and current content grants. This capability never sends email and does not require folder-management rights. Reviewed writes require JSON confirm=true, a current revision and an Idempotency-Key. Placement actions require an explicit source folder; permanent deletion requires Trash. Provider IO runs outside replay transactions. Preserve the same key for retries. Unknown outcomes are not resubmitted; a positive provider response is retained before local projection.
- ID
- updateMailMessageState
- CLI
- vipoutreach api post /mail/mailboxes/{mailbox_id}/messages/{message_id}/state
- MCP
- vipoutreach_api_request
- Access
- api:mail:message_state:write
| Field | In | Type | What it is |
|---|---|---|---|
| Idempotency-Key * | header | string | Up to 255 characters. |
| action * | body | string | One of: mark_read, mark_unread, star, unstar, move, archive, trash, restore, unarchive, unspam, delete_forever, add_labels, remove_labels. |
| revision * | body | string | |
| confirm * | body | boolean | One of: true. |
| source_folder_id | body | string | Required only for move, archive, trash, restore, unarchive, unspam and delete_forever; must be a current exact placement. Up to 26 characters. |
| target_folder_id | body | string | Required only for move. Up to 26 characters. |
| labels | body | array of string | Required only for add_labels and remove_labels. |
* required
Message content
List delegated mailbox messages
GET /api/v1/mail/mailboxes/{mailbox_id}/messages
Requires the explicitly selected mail_content capability plus session-approved content delegation for this mailbox. Current membership and content grants are rechecked on every request. Existing full-access and read-only presets do not include this capability. Binary downloads require bearer headers; credentials must never be placed in URLs. Message lists use ascending local ingestion order and encrypted, context-bound keyset cursors. Draft content returns the authored body only; staged uploads are not provider attachments.
- ID
- listMailMessages
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/messages
- MCP
- vipoutreach_api_request
- Access
- api:mail:content:read
| Field | In | Type | What it is |
|---|---|---|---|
| mailbox_id * | path | string | |
| Accept-Language | header | string | |
| per_page | query | integer | Default: 25. From 1 to 100. |
| thread_id | query | string | |
| cursor | query | string | Up to 4096 characters. |
* required
Show delegated message metadata
GET /api/v1/mail/mailboxes/{mailbox_id}/messages/{message_id}
Requires the explicitly selected mail_content capability plus session-approved content delegation for this mailbox. Current membership and content grants are rechecked on every request. Existing full-access and read-only presets do not include this capability. Binary downloads require bearer headers; credentials must never be placed in URLs. Message lists use ascending local ingestion order and encrypted, context-bound keyset cursors. Draft content returns the authored body only; staged uploads are not provider attachments.
- ID
- getMailMessage
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/messages/{message_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:content:read
| Field | In | Type | What it is |
|---|---|---|---|
| mailbox_id * | path | string | |
| Accept-Language | header | string | |
| message_id * | path | string |
* required
Download message attachment
GET /api/v1/mail/mailboxes/{mailbox_id}/messages/{message_id}/attachments/{attachment_id}
Requires the explicitly selected mail_content capability plus session-approved content delegation for this mailbox. Current membership and content grants are rechecked on every request. Existing full-access and read-only presets do not include this capability. Binary downloads require bearer headers; credentials must never be placed in URLs. Message lists use ascending local ingestion order and encrypted, context-bound keyset cursors. Draft content returns the authored body only; staged uploads are not provider attachments.
- ID
- getMailMessageAttachment
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/messages/{message_id}/attachments/{attachment_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:content:read
| Field | In | Type | What it is |
|---|---|---|---|
| mailbox_id * | path | string | |
| Accept-Language | header | string | |
| message_id * | path | string | |
| attachment_id * | path | string |
* required
Read sanitized message content
GET /api/v1/mail/mailboxes/{mailbox_id}/messages/{message_id}/body
Requires the explicitly selected mail_content capability plus session-approved content delegation for this mailbox. Current membership and content grants are rechecked on every request. Existing full-access and read-only presets do not include this capability. Binary downloads require bearer headers; credentials must never be placed in URLs. Message lists use ascending local ingestion order and encrypted, context-bound keyset cursors. Draft content returns the authored body only; staged uploads are not provider attachments.
- ID
- getMailMessageBody
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/messages/{message_id}/body
- MCP
- vipoutreach_api_request
- Access
- api:mail:content:read
| Field | In | Type | What it is |
|---|---|---|---|
| mailbox_id * | path | string | |
| Accept-Language | header | string | |
| message_id * | path | string |
* required
Download RFC822 source
GET /api/v1/mail/mailboxes/{mailbox_id}/messages/{message_id}/source
Requires the explicitly selected mail_content capability plus session-approved content delegation for this mailbox. Current membership and content grants are rechecked on every request. Existing full-access and read-only presets do not include this capability. Binary downloads require bearer headers; credentials must never be placed in URLs. Message lists use ascending local ingestion order and encrypted, context-bound keyset cursors. Draft content returns the authored body only; staged uploads are not provider attachments.
- ID
- getMailMessageSource
- CLI
- vipoutreach api get /mail/mailboxes/{mailbox_id}/messages/{message_id}/source
- MCP
- vipoutreach_api_request
- Access
- api:mail:content:read
| Field | In | Type | What it is |
|---|---|---|---|
| mailbox_id * | path | string | |
| Accept-Language | header | string | |
| message_id * | path | string |
* required
Search only explicitly approved mailboxes
GET /api/v1/mail/search
Uses the shared cross-mailbox ranking, scope and filter engine. Mail content capability and bound-user consent are both required. Membership and mailbox grants are rechecked on each page. Current resolved mailboxes, key, actor and filters bind the encrypted cursor. Use POST for large filters/cursors to avoid URL length limits. Results include public thread summaries and matched-message snippets, never provider credentials, internal identifiers or raw diagnostics. Coverage metadata distinguishes partial search and fan-out truncation.
- ID
- searchMail
- CLI
- vipoutreach api get /mail/search
- MCP
- vipoutreach_api_request
- Access
- api:mail:content:read
| Field | In | Type | What it is |
|---|---|---|---|
| Accept-Language | header | string | |
| per_page | query | integer | Default: 25. From 1 to 100. |
| query | query | string | Up to 500 characters. |
| cursor | query | string | Up to 32768 characters. |
| mailbox_ids | query | array of string | |
| collection_ids | query | array of string | |
| scope | query | any | |
| filters | query | any |
* required
Search mail with a JSON query body
POST /api/v1/mail/search
Same read-only operation as GET; use this form for large filter arrays or cursors. Requires content consent, does not send mail, and ignores the Idempotency-Key header. Provider search is not wrapped in a replay transaction.
- ID
- queryMail
- CLI
- vipoutreach api post /mail/search
- MCP
- vipoutreach_api_request
- Access
- api:mail:content:read
| Field | In | Type | What it is |
|---|---|---|---|
| Accept-Language | header | string | |
| query | body | string | Up to 500 characters. |
| cursor | body | string | Up to 32768 characters. Can be null. |
| per_page | body | integer | Default: 25. From 1 to 100. |
| mailbox_ids | body | array of string | |
| collection_ids | body | array of string | |
| scope | body | any | |
| filters | body | any |
* required
Mailboxes and conversations
List saved views or searches
GET /api/v1/mail/saved-items/{kind}
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- listMailSavedItem
- CLI
- vipoutreach api get /mail/saved-items/{kind}
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:read
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| cursor | query | string | Up to 4096 characters. |
| per_page | query | integer | Default: 25. From 1 to 100. |
| query | query | string | Up to 200 characters. |
| include_archived | query | boolean | |
| include_deleted | query | boolean |
* required
Create saved views or searches
POST /api/v1/mail/saved-items/{kind}
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- createMailSavedItem
- CLI
- vipoutreach api post /mail/saved-items/{kind}
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| name * | body | string | Up to 120 characters. |
| description | body | any | |
| color | body | any | |
| icon | body | any | |
| visibility | body | string | One of: personal, shared. |
| pinned | body | boolean | |
| favorite | body | boolean | |
| surface * | body | string | One of: mailbox_threads, unified_inbox, mailbox_search, cross_mailbox_search. |
| definition * | body | any |
* required
Order saved views or searches
GET /api/v1/mail/saved-items/{kind}/order
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- orderMailSavedItem
- CLI
- vipoutreach api get /mail/saved-items/{kind}/order
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:read
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
* required
Reorder saved views or searches
PUT /api/v1/mail/saved-items/{kind}/order
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- reorderMailSavedItem
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| revision * | body | string | |
| item_ids * | body | array of string |
* required
Show saved views or searches
GET /api/v1/mail/saved-items/{kind}/{saved_id}
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- showMailSavedItem
- CLI
- vipoutreach api get /mail/saved-items/{kind}/{saved_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:read
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string |
* required
Update saved views or searches
PATCH /api/v1/mail/saved-items/{kind}/{saved_id}
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- updateMailSavedItem
- CLI
- vipoutreach api patch /mail/saved-items/{kind}/{saved_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string | |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| revision * | body | string | |
| name | body | string | Up to 120 characters. |
| description | body | any | |
| color | body | any | |
| icon | body | any | |
| visibility | body | string | One of: personal, shared. |
| pinned | body | boolean | |
| favorite | body | boolean | |
| surface | body | string | One of: mailbox_threads, unified_inbox, mailbox_search, cross_mailbox_search. |
| definition | body | any |
* required
Delete saved views or searches
DELETE /api/v1/mail/saved-items/{kind}/{saved_id}
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- deleteMailSavedItem
- CLI
- vipoutreach api delete /mail/saved-items/{kind}/{saved_id}
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string | |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| revision * | body | string |
* required
Archive saved views or searches
POST /api/v1/mail/saved-items/{kind}/{saved_id}/archive
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- archiveMailSavedItem
- CLI
- vipoutreach api post /mail/saved-items/{kind}/{saved_id}/archive
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string | |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| revision * | body | string |
* required
Duplicate saved views or searches
POST /api/v1/mail/saved-items/{kind}/{saved_id}/duplicate
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- duplicateMailSavedItem
- CLI
- vipoutreach api post /mail/saved-items/{kind}/{saved_id}/duplicate
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string | |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| revision * | body | string | |
| name | body | string | Up to 120 characters. Can be null. |
* required
Open saved views or searches
GET /api/v1/mail/saved-items/{kind}/{saved_id}/open
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- openMailSavedItem
- CLI
- vipoutreach api get /mail/saved-items/{kind}/{saved_id}/open
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:read
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string | |
| cursor | query | string | Up to 4096 characters. |
| per_page | query | integer | Default: 25. From 1 to 100. |
* required
Restore saved views or searches
POST /api/v1/mail/saved-items/{kind}/{saved_id}/restore
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- restoreMailSavedItem
- CLI
- vipoutreach api post /mail/saved-items/{kind}/{saved_id}/restore
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string | |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| revision * | body | string |
* required
Unarchive saved views or searches
POST /api/v1/mail/saved-items/{kind}/{saved_id}/unarchive
Requires explicit Custom mail_workspace capability and separate personal workspace consent. Only current owned or shared-visible items can be read; only the owner can edit, trash, restore or reorder. Duplicate copies a visible source into a personal item. Opening additionally requires content capability and consent; approved mailbox intersection is applied before query fan-out, caps, counts and cursors. Metadata does not grant email access. Inaccessible stored references are null and has_unavailable_references is true; do not resubmit a redacted definition. Writes require confirm=true and Idempotency-Key, plus the exact revision except create. Reorder requires the complete owned non-deleted kind inventory, including archived rows, and its collection revision. Kind view accepts mailbox_threads/unified_inbox; search accepts mailbox_search/cross_mailbox_search. Cached replay rechecks current authority. Never silently refresh a reviewed revision.
- ID
- unarchiveMailSavedItem
- CLI
- vipoutreach api post /mail/saved-items/{kind}/{saved_id}/unarchive
- MCP
- vipoutreach_api_request
- Access
- api:mail:workspace:write
| Field | In | Type | What it is |
|---|---|---|---|
| kind * | path | string | One of: view, search. |
| saved_id * | path | string | |
| Idempotency-Key * | header | string | Up to 255 characters. |
| confirm * | body | any | |
| revision * | body | string |
* required