Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Emails

List attachments

GET/v1/emails/{id}/attachments

Attachments of a sent email, each with a download link valid for one hour.

Requires a full-access key.

Emails sent without attachments return an empty list.

Path parameters

idstringrequired
Email id.

Errors

not_foundHTTP 404
Unknown email, or past your plan’s log retention.
GET/v1/emails/{id}/attachments
curl 'https://zapsmtp.xyz/v1/emails/019a1f2e-7c3b-7d41-9a52-0c4b8e6f1a23/attachments' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "attachment",
      "id": "att_1",
      "filename": "invoice.pdf",
      "content_type": "application/pdf",
      "content_disposition": "attachment",
      "content_id": "",
      "size": 20480,
      "download_url": "https://zapsmtp.xyz/v1/files/eyJ0Ijoi…",
      "expires_at": "2026-10-22T16:04:10Z"
    }
  ]
}