Skip to main content
GET
Fetch a download link of an email attachment

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

id
string<uuid>
required

The unique identifier of the email in our system.

attachmentIndex
integer
required

The index of the attachment in the attachments list of the email, from 0.

Required range: x >= 0

Response

A link that downloads one file with no API key, for a client that cannot receive a file, such as a chat client.

url
string<uri>
required

The URL that downloads the file with no API key until expiresAt. Whoever holds the URL downloads the file, so share it only with whoever may read the file.

fileName
string
required

The name of the file that the URL downloads.

Example:

"PADAR-00042.pdf"

expiresAt
string<date-time>
required

The instant, in UTC, when the URL stops working, five minutes after Aira creates it.