Skip to Content
MailroomMailroom home

Attachment metadata and a short-lived download link

GET
/attachments/{id}

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Response Body

The attachment

application/json
  1. response
id?string
filename?string
content_type?string
size_bytes?integer
inline?boolean
content_id?string
message_id?string
email_id?string
download_url?string

Signed link valid for download_url_expires_in seconds

Formaturi
download_url_expires_in?integer
Example Request
curl -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}