Skip to main content
GET
/
api
/
v1
/
mails
/
{mailServerID}
/
messages
/
{messageID}
/
attachments
/
{attachmentID}
download attachment
curl --request GET \
  --url https://mail-service.iran.liara.ir/api/v1/mails/{mailServerID}/messages/{messageID}/attachments/{attachmentID} \
  --header 'Authorization: <api-key>'
{
  "status": "<string>",
  "data": {
    "attachment": {
      "name": "<string>",
      "size": 123,
      "content_type": "<string>",
      "createdAt": "<string>",
      "id": "<string>",
      "data": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

mailServerID
string
required
messageID
string
required
attachmentID
string
required

Response

OK

status
string
data
object