Download an attachment
Request
Method: GET
Path: /api/attachments/{guid}
Authentication: Not required
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| guid | string | path | Yes | |
| undefined | string | undefined | No |
Responses
200 - Binary content with Content-Type, Content-Disposition, Content-Length headers
404 - Attachment not found
Examples
cURL
curl -X GET \
-H "Content-Type: application/json" \
http://localhost:3000/api/attachments/{guid}
JavaScript
const response = await fetch('http://localhost:3000/api/attachments/{guid}', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
This documentation is automatically generated from the OpenAPI specification.