Dashboard

Emails

Auth Required

Retrieve Attachment

GEThttps://api.inboxjot.com/v1/emails/{email_id}/attachments/{attachment_id}

Retrieves one attachment of an email. Needs a Full key. A key limited to one domain sees only the emails of that domain, and answers 404 for the others.

GET/v1/emails/{email_id}/attachments/{attachment_id}
curl -X GET https://api.inboxjot.com/v1/emails/eml_06d2mfk8r4tq9xv2bnc7s/attachments/att_06d2mfk8r3hv8kc6pq1nd \
  -H "Authorization: Bearer $INBOXJOT_API_KEY"
{
  "id": "att_06d2mfk8r3hv8kc6pq1nd",
  "filename": "receipt-4821.pdf",
  "content_type": "application/pdf",
  "size": 48213,
  "content_id": null,
  "content_disposition": "attachment",
  "deleted_at": null,
  "download_url": "https://<account>.r2.cloudflarestorage.com/…",
  "expires_at": "2026-10-15T15:02:33.000Z"
}

Returns the attachment.

Path Parameters

email_idstringrequired

The email id, such as eml_06d2mfk8r4tq9xv2bnc7s.

attachment_idstringrequired

The attachment id, such as att_06d2mfk8r3hv8kc6pq1nd.

Response

idstring

The attachment id.

filenamestring

The file name.

content_typestring

The MIME type.

sizeinteger

Size in bytes.

content_idstring | null

The content id of an inline image.

content_dispositionstring

inline when the file has a content id, otherwise attachment.

deleted_atstring | null

When data retention deleted the file.

download_urlstring | null

A link to download the file. It works for 10 minutes. null after data retention deleted the file.

expires_atstring | null

When the download link stops working.

Responses

GET/v1/emails/{email_id}/attachments/{attachment_id}
curl -X GET https://api.inboxjot.com/v1/emails/eml_06d2mfk8r4tq9xv2bnc7s/attachments/att_06d2mfk8r3hv8kc6pq1nd \
  -H "Authorization: Bearer $INBOXJOT_API_KEY"
{
  "id": "att_06d2mfk8r3hv8kc6pq1nd",
  "filename": "receipt-4821.pdf",
  "content_type": "application/pdf",
  "size": 48213,
  "content_id": null,
  "content_disposition": "attachment",
  "deleted_at": null,
  "download_url": "https://<account>.r2.cloudflarestorage.com/…",
  "expires_at": "2026-10-15T15:02:33.000Z"
}

Returns the attachment.