List a received email's attachments
GET
/v1/email/inbound-messages/{inbound_message_id}/attachments
bird email inbound-messages attachments <inbound-message-id>curl -X GET "https://us1.platform.bird.com/v1/email/inbound-messages/{inbound_message_id}/attachments" \
-H "Authorization: Bearer $TOKEN"Réponse200
{
"data": [
{
"id": "rea_01krdgeqcxet5s7t44vh8rt9mg",
"filename": "invoice.pdf",
"content_type": "application/pdf",
"size": 215432
}
]
}
Returns metadata for each attachment on a received email:
- The attachment_id.
- The declared filename.
- The MIME type.
- The size.
The same manifest is embedded in Get a received email. Fetch an individual attachment's bytes with Get a received email's attachment.
Paramètres
inbound_message_id
string
Received email identifier. Starts with rem_.
Contenu de la réponse
data
array of object
obligatoire
Metadata for every attachment on the message. Empty when the message had no attachments.
Afficher les attributs enfants
data.id
string
obligatoire
Attachment ID, stable within the received message.
data.filename
nullable string
obligatoire
Filename from the attachment's Content-Disposition, or null when the sender did not name the part.
data.content_type
nullable string
obligatoire
MIME type parsed from the attachment part, or null when absent.
data.size
integer
obligatoire
Size of the attachment in bytes.
Ressources associées
Poursuivez avec la documentation, les guides et les exemples sur ce sujet. Les ressources sont en anglais.
Regarder le guideGetting started with emailExplorer la fonctionnalitéEmailSuivre le parcours d'apprentissageBuild your first integrationGuide d'implémentationSend your first email
Essayez la pratique et obtenez un guide d'implémentation