Download attachment

GET
/api/v1/threads/{threadId}/attachments/{fileId}/download

Returns a short-lived presigned download URL and expiration timestamp for a thread attachment by fileId. Fetch the URL without an Authorization header.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Path parameters

threadId*string
fileId*string

Response body

AttachmentDownload

application/json
  1. response
url*string

A presigned GET for the file's bytes. Send it without an Authorization header; the signature is the credential.

expiresAt*string
curl -X GET "https://api.capy.ai/api/v1/threads/{threadId}/attachments/{fileId}/download" \  -H "Authorization: Bearer $CAPY_API_KEY"
{  "url": "string",  "expiresAt": "string"}
Last updated
Open in Capy