Skip to main content
GET
/
v1
/
attachments
/
{messageId}
/
{filename}
Get attachment
curl --request GET \
  --url https://api.openmail.sh/v1/attachments/{messageId}/{filename} \
  --header 'Authorization: Bearer <token>'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

messageId
string
required
filename
string
required

Response

Redirect to attachment URL