API referenceEmail messages
PUT
/email/api/v1/emails/{id}

unread wins over everything else. folders: one folder name for IMAP and Outlook (a move; the email's id changes with its folder, the new one is gateway.email_id). On Gmail, the folder names (as folders lists them; a system label such as \Starred as it is) become the mail's labels: the ones named are added; of the others, only user labels and INBOX, Trash and Spam are removed. Important, Starred, Draft and Sent stay unless named; All Mail is no label.

Authorization

X-API-KEY<token>

Your API key from the console (gw_live_…).

In: header

Path Parameters

id*string

An email (emm_…), or the engine's own id (provider_id) with account_id.

Query Parameters

account_id?string

The mailbox (em_…): required with a provider id, else it must be the id's own.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/email/api/v1/emails/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "object": "EmailUpdated",  "gateway": {    "email_id": "string"  }}