Skip to content

Download attachment

GET
/api/v1/attachments/{attachmentId}
curl --request GET \
--url https://localhost:10001/api/v1/attachments/1 \
--header 'Authorization: <Authorization>'

Retrieve and stream the stored file for the given attachment

attachmentId
required
integer

Attachment ID

Attachment file stream

Media type application/octet-stream
file

Bad request - Invalid attachment ID

Media type application/octet-stream

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Unauthorized - Missing or invalid token

Media type application/octet-stream

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Forbidden - Insufficient permissions

Media type application/octet-stream

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Attachment not found

Media type application/octet-stream

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body

Internal server error

Media type application/octet-stream

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
Invalid request body