List Attachments
List attachment metadata for a captured message.
List attachment metadata for a captured message.
Scope: email_testing.messages.read
Path Parameters
idstringrequiredThe ID of the captured message, for example d5949378-3069-4d8f-a8f3-6e5edf5d6060. You get it from List Messages or the message.received webhook. It isn't the email's Message-ID header.
Sample Request
Request
curl "https://api.maileroo.com/v1/email-testing/messages/d5949378-3069-4d8f-a8f3-6e5edf5d6060/attachments" \
-H "Authorization: Bearer roo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Sample Response
The response is wrapped in a data object.
Response
{
"data": {
"attachments": [
{
"id": "5b39a483-7989-4882-b663-f88b1db2407a",
"filename": "report.pdf",
"content_type": "application/pdf",
"size": 2048
}
]
}
}Errors
404 Not Found— the resource does not exist or is not owned by the account.