Mailosaur logo
Mailosaur logo

Files

The Files API allows you to download files, such as message attachments, from Mailosaur.

GET /api/files/attachments/:id

Downloads a single attachment. Simply supply the unique identifier for the required attachment.

Path parameters

  • Name
    id
    Type
    string
    Description

    The identifier of the attachment to be downloaded.

Run in PostmanRun in Insomnia
Example request
curl \
  -o example.png \
  -u api:YOUR_API_KEY \
  https://mailosaur.com/api/files/attachments/ATTACHMENT_ID
GET/api/files/email/:id

Downloads an EML file representing the specified email. Simply supply the unique identifier for the required email.

Path parameters

  • Name
    id
    Type
    string
    Description

    The identifier of the email to be downloaded.

Run in PostmanRun in Insomnia
Example request
curl \
  -o example.eml \
  -u api:YOUR_API_KEY \
  https://mailosaur.com/api/files/email/MESSAGE_ID
Previous