Skip to main content
POST
Mark, label or move a message

Authorizations

Authorization
string
header
required

Bearer credential for one agent: an API key or an access token (a JWT). Pass as Authorization: Bearer <credential>.

A key is shown once when it is issued and is not recoverable afterwards; an access token lives five minutes and is fetched with the agent's own client key from the access service. Treat both as secrets: they reach one agent's mail, and anything a delegation has extended to it. An access token's scope is a ceiling on what the agent may do with it.

Body

application/json
id
string
required

The message to change.

Example:

"message_01j9x2v8k3e0080000000000"

changes
object
required

The fields to change. At least one.

idempotency_key
string

Response

The write was applied.

ref
string
created
boolean
effects
object[]

What the write changed.

error
object