Get task attachments
GET
/v1/tasks/{taskId}/attachments
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/attachments';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.varman.io/v1/tasks/tsk_abc123def456/attachments \ --header 'X-API-Key: <X-API-Key>'Get task attachments in Varman. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Example
tsk_abc123def456Unique task identifier
Responses
Section titled “Responses”Attachments retrieved successfully
Media typeapplication/json
Array<object>
object
id
required
Unique identifier for the attachment
string
name
required
Original filename
string
type
required
File type/MIME type
string
size
required
File size in bytes
number
downloadUrl
required
Signed URL for downloading the file (temporary)
string
createdAt
required
Upload timestamp
string format: date-time
Example
[ { "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" }]Unauthorized - Invalid authentication
Media typeapplication/json
object
message
string
Example
{ "message": "Unauthorized"}Task not found
Media typeapplication/json
object
message
string
Example
{ "message": "Task with ID tsk_abc123def456 not found"}