WoyraDocs
Get an API key

A short-lived link to one attachment

GET/v1/mail/messages/{id}/attachments/{attachment_id}

Mailboxes · Requires an API key

Parameters

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

Example

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

Response

200 The link, which the browser follows without a token.

FieldTypeDescription
urlrequiredstring
filenamerequiredstring
contentTypestring
sizeBytesinteger
expiresInrequiredintegerSeconds.

Errors

StatusCodes
401authentication_required, invalid_api_key
404not_found, product_not_offered

Also in Mailboxes