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));
प्रतिक्रिया200
{
  "data": [
    {
      "id": "rea_01krdgeqcxet5s7t44vh8rt9mg",
      "filename": "invoice.pdf",
      "content_type": "application/pdf"
    }
  ]
}
Returns the attachments on a message in a conversation. Attachment bytes are downloadable for the mailbox's retention tier after the message occurred. Later requests return 410 Gone, while the attachment metadata stays readable on the message's attachment_manifest.
पैरामीटर
thread_id
string
Thread identifier. Starts with thr_.
message_id
string
Message ID (rem_ for a received message, em_ for a sent one).
Response Payload
data
array of object
आवश्यक
चाइल्ड एट्रिब्यूट दिखाएँ
data.id
string
आवश्यक
Attachment ID, used to download the attachment bytes.
data.filename
nullable string
आवश्यक
Original filename, or null when the attachment had none.
data.content_type
nullable string
आवश्यक
MIME content type, or null when it could not be determined.
data.size
integer
आवश्यक
Attachment size in bytes.

संबंधित संसाधन

इस विषय के लिए डॉक्यूमेंटेशन, गाइड और उदाहरणों के साथ आगे बढ़ें। संसाधन अंग्रेज़ी में हैं।

अभ्यास करें और इम्प्लीमेंटेशन ब्रीफ़ पाएँ