Attachments
Download an attachment
GET
Streams the file as a download (Content-Disposition: attachment).
Required permission: attachments.read. See the guide for details.
Error codes:
- 404
attachment.not_found,project_storage_provider.not_found - 422
storage.*
Every endpoint can also answer 401 (missing or invalid key), 403 (route outside the key's project or permission) and 429 rate_limit.exceeded.
ApiKeyheader
X-Api-Key<token>Project API key: nb_<prefix>_<secret>.
companyId*stringId of the company that owns the project (shown with the API key in the dashboard).
Format
uuidprojectId*stringId of the project the API key belongs to.
Format
uuidattachmentId*stringFormat
uuidThe file, with its stored content type, Content-Disposition: attachment and X-Content-Type-Options: nosniff.
response?file*/*Format
binarycurl -X GET 'https://api.gbnotification.dokploy.geobilgi.net/api/v1/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08/content'Example Response
"string"