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
| Name | In | Description |
|---|---|---|
idrequired | path | The 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
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such resource in this project. |
| 401 | unauthorized | The API key is missing, invalid or revoked. |
| 403 | forbidden | The key does not have the scope this endpoint needs. |
Every error has the same shape. See Errors.