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

Retrieve an attachment

GET/v1/emails/receiving/{id}/attachments/{aid}

Retrieve one attachment's metadata and signed download link.

Requires a full-access key.

Path parameters

idstring (UUID)required
Received email id
aidstringrequired
Attachment id

Errors

restricted_api_keyHTTP 403
not_foundHTTP 404
email not found | attachment not found
inbound_not_configuredHTTP 503
GET/v1/emails/receiving/{id}/attachments/{aid}
curl 'https://zapsmtp.xyz/v1/emails/receiving/019a1f2e-7c3b-7d41-9a52-0c4b8e6f1a23/attachments/att_1' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "attachment",
  "id": "5b0f8f7e-2a1c-5d3e-9f4a-6b7c8d9e0f1a",
  "filename": "screenshot.png",
  "content_type": "image/png",
  "content_disposition": "attachment",
  "content_id": null,
  "size": 48213,
  "download_url": "https://zapsmtp.xyz/v1/files/eyJ0Ijoi....aGk",
  "expires_at": "2026-10-21T16:12:00Z"
}