API referenceMessages
Attachment metadata and a short-lived download link
GET
bearerAuthheader
AuthorizationBearer <mr_live_ / mr_test_>API key. Never log the secret.
id*stringThe attachment
application/json- response
id?stringfilename?stringcontent_type?stringsize_bytes?integerinline?booleancontent_id?stringmessage_id?stringemail_id?stringdownload_url?stringSigned link valid for download_url_expires_in seconds
Format
uridownload_url_expires_in?integercurl -X GET 'https://api.mailroomapi.com/v1/attachments/string'Example Response
{ "id": "string", "filename": "string", "content_type": "string", "size_bytes": 0, "inline": true, "content_id": "string", "message_id": "string", "email_id": "string", "download_url": "http://example.com", "download_url_expires_in": 0}