Skip to content

Get task attachment download URL

GET
/v1/tasks/{taskId}/attachments/{attachmentId}/download
curl --request GET \
--url https://api.varman.io/v1/tasks/tsk_abc123def456/attachments/att_abc123def456/download \
--header 'X-API-Key: <X-API-Key>'

Generate a signed download URL for an attachment on a compliance task so reviewers can access uploaded evidence.

taskId
required
string

Example

tsk_abc123def456

Unique task identifier

attachmentId
required
string

Example

att_abc123def456

Unique attachment identifier

Download URL generated successfully

Media typeapplication/json
object
downloadUrl

Signed URL for downloading the file

string
expiresIn

URL expiration time in seconds

number

Example

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

Unauthorized - Invalid authentication

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}

Task or attachment not found

Media typeapplication/json
object
message
string

Example

{
"message": "Task or attachment not found"
}