DELETE /v1/documents/:id permanently deletes a document you own. The deletion cascades to any associated loan record attached to the document. A document.deleted event is appended to your activity feed after the document is removed.
Request headers
Bearer token obtained from your Clerk session. Example:
Bearer eyJhbGc...Path parameters
The unique identifier of the document to delete. The document must be owned by your account; the API returns
404 for documents that do not exist or belong to another account.Response
Returns204 No Content on success. The response body is empty.
Example
Error cases
| Status | Error message | Cause |
|---|---|---|
401 | Missing Authorization Bearer token. | No Authorization header was sent. |
401 | Invalid or expired token. | The Bearer token is malformed or has expired. |
404 | Not found. | No document with the given id exists, or it belongs to a different account. |
