Download attachment
GET
Returns a short-lived presigned download URL and expiration timestamp for a thread attachment by fileId. Fetch the URL without an Authorization header.
bearerAuthheader
AuthorizationBearer <token>An API key created in Capy under Settings → API.
threadId*stringfileId*stringAttachmentDownload
application/json- response
url*stringA presigned GET for the file's bytes. Send it without an Authorization header; the signature is the credential.
expiresAt*stringcurl -X GET "https://api.capy.ai/api/v1/threads/{threadId}/attachments/{fileId}/download" \ -H "Authorization: Bearer $CAPY_API_KEY"{ "url": "string", "expiresAt": "string"}