GET
/
v1
/
tasks
/
{taskId}
/
attachments
Get task attachments
curl --request GET \
  --url https://api.trycomp.ai/v1/tasks/{taskId}/attachments \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "att_abc123def456",
    "name": "evidence.pdf",
    "type": "application/pdf",
    "size": 123456,
    "downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
    "createdAt": "2024-01-15T10:30:00Z"
  }
]

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

taskId
string
required

Unique task identifier

Example:

"tsk_abc123def456"

Response

Attachments retrieved successfully

id
string
required

Unique identifier for the attachment

Example:

"att_abc123def456"

name
string
required

Original filename

Example:

"document.pdf"

type
string
required

File type/MIME type

Example:

"application/pdf"

size
number
required

File size in bytes

Example:

1024000

downloadUrl
string
required

Signed URL for downloading the file (temporary)

Example:

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

createdAt
string<date-time>
required

Upload timestamp

Example:

"2024-01-15T10:30:00Z"