Get task attachment download URL
GET
/v1/tasks/{taskId}/attachments/{attachmentId}/download
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/attachments/att_abc123def456/download';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Example
tsk_abc123def456Unique task identifier
attachmentId
required
string
Example
att_abc123def456Unique attachment identifier
Responses
Section titled “Responses”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"}