Get an attachment
/v1/amb/attachments/{attachment_id}bird amb attachments get <attachment-id>curl -X GET "https://us1.platform.bird.com/v1/amb/attachments/{attachment_id}" \
-H "Authorization: Bearer $TOKEN"{
"id": "aat_01krdgeqcxet5s7t44vh8rt9mg",
"business_account_id": "abz_01krdgeqcxet5s7t44vh8rt9mg",
"origin": "received",
"message_id": "amb_01krdgeqcxet5s7t44vh8rt9mg",
"name": "receipt.pdf",
"mime_type": "application/pdf"
}
Returns the metadata of an attachment by its aat_ ID. origin says
whether a customer sent it, you sent it, or you uploaded it; a message
attachment carries its message_id. expires_at is Bird's estimate of
when Apple stops holding the attachment. A send within 24 hours of
expires_at is refused. An unknown ID returns 404.
Parámetros
attachment_idstringAttachment identifier. Starts with aat_.
Carga de respuesta
idSend it as attachment_id.
business_account_idThe business account Apple holds the attachment for.
originHow Bird obtained an attachment:
received: A customer sent it in a message.sent: You sent it in a message bysource_url.uploaded: You uploaded it with createAMBAttachment.
Possible values: received, sent, uploaded
message_idThe message the attachment belongs to.
nameDisplay filename. May be empty for an attachment stored before this release.
mime_typeMedia type of the attachment. May be empty for an attachment stored before this release.
sizeAttachment size in bytes. May be 0 for an attachment stored before this release.
expires_atBird's estimate of when Apple stops holding the attachment, 30 days after it was received, uploaded or last sent. A send within 24 hours of this time is refused.
created_atWhen Bird stored the attachment.
Recursos relacionados
Continúa con la documentación, guías y ejemplos de este tema.