Download attachment
GET /api/v1/attachments/{attachmentId} Select code sample Fetch cURL
List activity logs by project Next
Download attachment public URL
const url = 'https://localhost:10001/api/v1/attachments/1';const options = {method: 'GET', headers: {Authorization: '
'}}; 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://localhost:10001/api/v1/attachments/1 \ --header 'Authorization:
'
Retrieve and stream the stored file for the given attachment
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” attachmentId required integerAttachment ID
Responses
Section titled “ Responses ”200
Section titled “200 ”Attachment file stream
Media type application/octet-stream file400
Section titled “400 ”Bad request - Invalid attachment ID
Media type application/octet-stream object key additional properties string401
Section titled “401 ”Unauthorized - Missing or invalid token
Media type application/octet-stream object key additional properties string403
Section titled “403 ”Forbidden - Insufficient permissions
Media type application/octet-stream object key additional properties string404
Section titled “404 ”Attachment not found
Media type application/octet-stream object key additional properties string500
Section titled “500 ”Internal server error
Media type application/octet-stream object key additional properties string PreviousList activity logs by project Next
Download attachment public URL