Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Retrieve a single attachment for a sent email

GET/emails/{email_id}/attachments/{attachment_id}Retrieve a single attachment for a sent email

Parameters

email_idstring · uuidpathrequired

The ID of the email.

attachment_idstring · uuidpathrequired

The ID of the attachment.

Responses

200OKapplication/json
objectRetrievedAttachment
content_dispositionstring

How the attachment should be displayed.

one of "inline", "attachment"

content_idstring

The content ID for inline attachments.

content_typestring

The MIME type of the attachment.

download_urlstring

Signed URL to download the attachment content.

expires_atstring · date-time

Timestamp when the download URL expires.

filenamestring

The filename of the attachment.

idstring · uuid

The ID of the attachment.

objectstring

The type of object.

sizeinteger

Size of the attachment in bytes.

Example response
{
  "content_disposition": "attachment",
  "content_id": "img001",
  "content_type": "application/pdf",
  "download_url": "https://cloudfront.example.com/path?Signature=...",
  "expires_at": "2024-10-27T18:30:00.000Z",
  "filename": "document.pdf",
  "id": "660e8400-e29b-41d4-a716-446655440000",
  "object": "attachment",
  "size": 2048
}
Documentation menu