Attachments
Get attachment metadata
GET
Gets attachment metadata.
Required permission: attachments.read. See the guide for details.
Error codes:
- 404
attachment.not_found
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
uuidOK
application/json- response
id*stringFormat
uuidprojectId*stringFormat
uuidprojectStorageProviderId*stringStorage the file was written to (the project default at upload time).
Format
uuidfileName*stringcontentType*stringsizeBytes*integerFormat
int64sha256*stringLowercase hex SHA-256 of the file content.
createdAt*stringFormat
date-timecurl -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'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8", "projectStorageProviderId": "f526b023-22f0-42b4-99b8-c66d0ac32634", "fileName": "string", "contentType": "string", "sizeBytes": 0, "sha256": "string", "createdAt": "2019-08-24T14:15:22Z"}