Skip to main content
POST
Move a Gmail message to trash

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

messageId
string
required
Required string length: 1 - 512

Body

application/json
confirm
boolean
required

True only when the user explicitly requested this action on this resource. Discovering or selecting a capability is not authorization.

Response

Google's validated response.

id
string
required
Minimum string length: 1
threadId
string
required
Minimum string length: 1
{key}
any