Skip to Content
Notification APIDocs
Attachments

Delete an attachment

DELETE
/api/v1/companies/{companyId}/projects/{projectId}/attachments/{attachmentId}

Deletes an attachment no template or message references.

Required permission: attachments.write. See the guide for details.

Error codes:

  • 404 attachment.not_found
  • 422 attachment.in_use, 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.

Authorization

ApiKey
headerX-Api-Key<token>

Project API key: nb_<prefix>_<secret>.

Path Parameters

companyId*string

Id of the company that owns the project (shown with the API key in the dashboard).

Formatuuid
projectId*string

Id of the project the API key belongs to.

Formatuuid
attachmentId*string
Formatuuid

Response Body

No Content

Example Request
curl -X DELETE '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
Empty