Description
Get attachments from the specified message.

Request URL

Mail API v1.0

GET /v1/emails/(uuid:email_id)/messages/(uuid:message_id)/attachments/(uuid:attachment_id)

Request Paramters

Parameter Value Style Type Description
X-Auth-Token - header string User Token
email_id - URI UUID Email ID
message_id - URI UUID Message ID
attachment_id - URI UUID Attachment ID

Response Paramters

Parameter Value Style Type Description
attachment - plain dict -
attachment_id - plain UUID Attachment ID
attachment_file_name - plain string Attachment File Name
content_type - plain string Content Type
attachment_file - plain binary Attachment File

Request Json

This operation does not accept a request body.

Normal response codes

200 - Success

Error response codes

401 - Access Denied
404 - Not Found

Repeatable

Yes

Example

curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \
https://mail-hosting.tyo1.cloud.z.com/v1/emails/8247d601-a528-44b2-b32f-8562b68edbeb/messages/c3ccccb90ca0af81e2c014b494b0c790/attachments/728
HTTP/1.1 200 Success
Date: Tue, 09 Dec 2014 01:46:58 GMT
Server: Apache
Content-Length: 1003
Content-Type: application/json

{
  "attachment": {
    "attachment_id": "728",
    "attachment_file_name": "test.csv",
    "content_type": "txt/csv",
    "attachment_file": (binary)
  }
}