WoyraDocs
Get an API key

One message with its body, marking it read

GET/v1/mail/messages/{id}

Mailboxes · Requires an API key

In the apps, opening a message is reading it, so this marks it read and every other client hears so through the changes feed. (The provider API's GET /v1/mailboxes/{id}/messages/{message_id} does not.)

Parameters

NameInDescription
idrequiredpath
mailboxqueryThe token's own mailbox. Any other address is refused with 403.

Example

curl https://api.woyra.io/v1/mail/messages/email_01J... \
  -H "Authorization: Bearer $WOYRA_KEY"

Response

200 The message and its body.

Errors

StatusCodes
401authentication_required, invalid_api_key
404not_found, product_not_offered

Also in Mailboxes