Skip to content
Linq Copy agent prompt

Download an attachment

GET/v1/attachments/{attachment}/content

Downloads exact retained inbound bytes using this account’s Bearer key. URLs are stable and require Authorization on every request. Pending capture returns 409 attachment_not_ready with Retry-After; a message.received event is recorded once its attachments are captured or have failed, or ten minutes after the message arrived, whichever comes first. An attachment the event marks available downloads at once; one marked unavailable with reason timed_out may still answer 409 and later become downloadable; a part with no availability is from a historical event and may still be capturing, so retry its 409 as Retry-After directs; failed or expired retained assets return 410 attachment_unavailable; missing, pruned, outbound or foreign assets return 404 attachment_not_found. Retention is 30 days from server receipt and downloads do not extend it. GET admitted before expiry may finish from acquired bytes. Range is ignored (full 200 response); HEAD is refused.

Path ParametersExpand Collapse
attachment: string

Download an attachment

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