Email & PEC

Change flags on several messages at once

The same fields as email_set_flags — seen, starred, trashed — applied to up to 500 messages in one call, instead of one round trip per message. An id outside what you may see is silently skipped, never an error; updated says how many actually changed.

post/api/v1/rest/email/messages/bulk

Request

  • Base URL: https://api.custodo.ai
  • URL: https://api.custodo.ai/api/v1/rest/email/messages/bulk
  • Auth: HTTP bearer

Headers

X-Tenant-Idstring uuid

The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.

Request body

idsstring[] required
seenboolean
starredboolean
trashedboolean

Response

Done. data is the tool’s own answer.

oktrue required
dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.