Get a message attachment
GET
/v1/email/messages/{message_id}/attachments/{attachment_id}
curl -X GET "https://us1.platform.bird.com/v1/email/messages/{message_id}/attachments/{attachment_id}" \
-H "Authorization: Bearer $TOKEN"Downloads the raw bytes of one attachment from a sent message, returned with the attachment's own content type and a Content-Disposition header that includes its filename. The message must have content storage enabled and the attachment is available for up to 30 days after sending. A 404 indicates the message has no stored content or no attachment with this ID. A 425 indicates the attachment is still being stored and the request can be retried shortly. A 410 indicates the attachment was stored but has since expired.
Paramètres
message_id
string
ID of the message the attachment belongs to, from the send response's id field.
attachment_id
string
Attachment ID, as returned in the message's attachments list.
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