curl --request GET \
--url http://localhost:3333/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"
}
]Retrieve all attachments for a specific task
curl --request GET \
--url http://localhost:3333/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"
}
]API key for authentication
Organization ID (required for session auth, optional for API key auth)
Unique task identifier
"tsk_abc123def456"
Attachments retrieved successfully
Unique identifier for the attachment
"att_abc123def456"
Original filename
"document.pdf"
File type/MIME type
"application/pdf"
File size in bytes
1024000
Signed URL for downloading the file (temporary)
"https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=..."
Upload timestamp
"2024-01-15T10:30:00Z"
Was this page helpful?