sendsend.email

List attachments

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

Attachments on a received email. available is false for files over 10 MB, which are listed but not kept.

Required scope: inbound:manage

Parameters

NameInDescription
idrequiredpathThe received email id.

Example

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

Response 200

{
  "object": "list",
  "data": [
    {
      "id": "0",
      "filename": "receipt.pdf",
      "content_type": "application/pdf",
      "size": 20480,
      "content_id": null,
      "inline": false,
      "available": true
    }
  ]
}

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.