apicheats.dev resend/llms.txt Raw .md
GET

GET /emails/receiving/{email_id}/attachments — Resend API

Resend API

Retrieve a list of attachments for a received email

Base URL
https://api.resend.com
Auth
Authorization: Bearer <RESEND_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 216 tokens · Vary: Accept

Critical gotchas

All requests must include a User-Agent header (e.g. User-Agent: my-app/1.0) or the API returns HTTP 403.

cURL

curl -X GET 'https://api.resend.com/emails/receiving/email-id/attachments?limit=10&after=example-after&before=example-before' \  -H "Authorization: Bearer $RESEND_API_KEY" \  -H 'User-Agent: my-app/1.0'

Parameters

Name In Type Required Description
email_id path string Yes The ID of the received email.
limit query integer No Maximum number of attachments to return.
after query string No Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'.
before query string No Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'.

Response 200 OK

{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440000",
      "filename": "document.pdf",
      "content_type": "application/pdf",
      "content_id": "img001",
      "content_disposition": "attachment",
      "download_url": "https://cloudfront.example.com/path?Signature=...",
      "expires_at": "2024-10-27T18:30:00.000Z",
      "size": 2048
    }
  ]
}
Get a free Resend API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.