Get an attachment's metadata
GET/v1/attachments/{att}
Retrieves an attachment’s stored metadata.
Behavior
- Reports the fields as stored:
mimeisapplication/octet-streamwhen the upload declared nocontent-type. The upload’s own response reports the same stored values, so the two reads always agree. - Serves ids this API minted and ids created for attachments a customer
sent inbound; those arrive on the
message.receivedpayload’sattachmentsentries, are readable here and at/content, and cannot be re-sent (attachment_not_sendable). - Answers for any
status, including one a send or download refuses; this is where you find out why.
Limits
- Inbound attachments are deleted 30 days after receipt. Copy the bytes if you need them longer.
- Scoped to your brand. Another brand’s
att_idreturns HTTP 404attachment_not_found: the same response as an unknown id, so a response never confirms an id exists.
Get an attachment's metadata
curl https://messages.api.linqapp.com/v1/attachments/$ATT \
-H "Authorization: Bearer $LINQ_AMB_API_KEY"{
"id": "att_1a3f77",
"mime": "image/png",
"name": "receipt.png",
"size": 20481,
"status": "ready"
}Returns Examples
{
"id": "att_1a3f77",
"mime": "image/png",
"name": "receipt.png",
"size": 20481,
"status": "ready"
}