Delete Document
DELETE
https://app.firmeasy.legal/api/v1/documents/{document_token}
Delete Document
Section titled “Delete Document”This endpoint allows you to delete an existing document from the system using its identifier token.
🔒 {document_token}: Unique document token obtained when creating or listing them.
Authentication
Section titled “Authentication”To perform this operation, the session token must be sent in the headers.
AuthorizationAccess token obtained during login, with the 'Bearer' prefix.
Limits:Required
Content-TypeSpecifies the content type of the HTTP request body.
Limits:'application/json'
Request Body
Section titled “Request Body”This endpoint does not require a request body (payload). Resource identification is done exclusively through the URL parameter (document_token).
Successful Response
Section titled “Successful Response”- HTTP Code 204 - No Content
The server processes the request and deletes the document successfully. No content is returned in the response body.
Possible Errors
Section titled “Possible Errors”| Code | Description |
|---|---|
401 |
Not authorized (invalid or missing token). |
404 |
Document not found (the provided token does not exist or was already deleted). |
500 |
Unexpected internal server error. |
