Skip to content
Linq

Download an attachment's bytes

GET/v1/attachments/{att}/content

Downloads an attachment’s stored bytes, verbatim, under its stored MIME type.

Behavior

  • Served with Content-Disposition: attachment and X-Content-Type-Options: nosniff: the bytes are caller-supplied content, not a page this origin vouches for.
  • Same brand scope and the same 404 posture as the metadata read.

Errors

  • HTTP 409 code 2007: the bytes are not stored yet. Wait and retry.
  • HTTP 422 code 2053: the bytes never arrived and never will. Upload again. Only the 409 is worth retrying.
  • Read GET /v1/attachments/{att} for the current status.
Path ParametersExpand Collapse
att: string

Download an attachment's bytes

curl https://messages.api.linqapp.com/v1/attachments/$ATT/content \
    -H "Authorization: Bearer $LINQ_AMB_API_KEY"
Returns Examples