Restore emails
Move messages out of the trash.
restore_emails
Move messages out of the trash.
Permissions
Required capabilities: mail.trash.
Inputs
| Name | Required | Type | Details |
|---|---|---|---|
accountId | No | string or null | Account to operate on. Optional when exactly one account is connected. Minimum length: 1. |
messageIds | Yes | array of string | Messages to change, up to 100 distinct IDs |
{
"type": "object",
"properties": {
"accountId": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"description": "Account to operate on. Optional when exactly one account is connected."
},
"messageIds": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1,
"description": "Messages to change, up to 100 distinct IDs"
}
},
"required": [
"messageIds"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Last updated