sendsend.email

Download an attachment

GET/v1/received-emails/{id}/attachments/{attachment}

The file itself, always as a download. Scan files before opening them: anyone can send them.

Required scope: inbound:manage

Parameters

NameInDescription
idrequiredpathThe received email id.
attachmentrequiredpathThe attachment id from the list (0, 1, 2…).

Example

curl -X GET 'https://api.sendsend.email/v1/received-emails/ID/attachments/{attachment}' \
  -H "Authorization: Bearer $SENDSEND_API_KEY"

Returns 200.

Errors

StatusCodeWhen
404not_foundNo such resource in this project.
401unauthorizedThe API key is missing, invalid or revoked.
403forbiddenThe key does not have the scope this endpoint needs.

Every error has the same shape. See Errors.