Skip to content

Get task attachments

GET
/v1/tasks/{taskId}/attachments
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.

taskId
required
string

Example

tsk_abc123def456

Unique task identifier

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"
}