Documentation
Sign inGet started

List a thread message's attachments

GET
/v1/email/threads/{thread_id}/messages/{message_id}/attachments
const atts = await bird.email.threads.messages.attachments("thr_01abc", "rem_01xyz");
console.log(atts.data.map((a) => a.filename));
Returns the attachments on a message in a conversation. Attachment bytes are downloadable for 30 days after the message occurred. After that, this endpoint returns 410 Gone, but the attachment metadata stays readable on the message's attachment_manifest.
Response Payload
data
array of object
verplicht
Onderliggende attributen tonen
data.id
string
verplicht
Attachment ID, used to download the attachment bytes.
data.filename
nullable string
verplicht
Original filename, or null when the attachment had none.
data.content_type
nullable string
verplicht
MIME content type, or null when it could not be determined.
data.size
integer
verplicht
Attachment size in bytes.