Download attachment
GET
/api/v1/attachments/{attachmentId}
const url = 'https://localhost:10001/api/v1/attachments/1';const options = {method: 'GET', headers: {Authorization: '<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: <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
integer
Attachment ID
Responses
Section titled “ Responses ”Attachment file stream
Media type application/octet-stream
file
Bad request - Invalid attachment ID
Media type application/octet-stream
object
key
additional properties
string
Unauthorized - Missing or invalid token
Media type application/octet-stream
object
key
additional properties
string
Forbidden - Insufficient permissions
Media type application/octet-stream
object
key
additional properties
string
Attachment not found
Media type application/octet-stream
object
key
additional properties
string
Internal server error
Media type application/octet-stream
object
key
additional properties
string