GET
/
v1
/
attachments
/
{attachmentId}
/
download
Get attachment download URL
curl --request GET \
  --url https://api.trycomp.ai/v1/attachments/{attachmentId}/download \
  --header 'X-API-Key: <api-key>'
{
  "downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
  "expiresIn": 900
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

attachmentId
string
required

Unique attachment identifier

Example:

"att_abc123def456"

Response

200 - application/json

Download URL generated successfully

downloadUrl
string

Signed URL for downloading the file

Example:

"https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=..."

expiresIn
number

URL expiration time in seconds

Example:

900