Attachments

Get shared attachment download URL

Changed on

Generate a signed download URL for a shared attachment linked to comments, evidence records, or compliance workflow reviews.

get/v1/attachments/{attachmentId}/download

Request

  • Base URL
    https://api.trycomp.ai
  • Auth
    API key in header X-API-Key

Path parameters

attachmentIdstring required
Example:att_abc123def456

Unique attachment identifier

Response

Download URL generated successfully

downloadUrlstring

Signed URL for downloading the file

expiresInnumber

URL expiration time in seconds

Example response

{
  "downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
  "expiresIn": 900
}

Changes