Skip to main content
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.
Deletion is permanent. There is no soft-delete or recovery mechanism. The document, its loan record, and any RCM campaigns associated with it are removed from the database. Export any data you need before deleting.
DELETE /v1/documents/:id

Request headers

Authorization
string
required
Bearer token obtained from your Clerk session. Example: Bearer eyJhbGc...

Path parameters

id
string
required
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

Returns 204 No Content on success. The response body is empty.

Example

curl --request DELETE \
  --url https://your-api.example.com/v1/documents/doc_01j9z8x7w6v5u4t3s2r1q0p \
  --header 'Authorization: Bearer <your-session-token>'

Error cases

StatusError messageCause
401Missing Authorization Bearer token.No Authorization header was sent.
401Invalid or expired token.The Bearer token is malformed or has expired.
404Not found.No document with the given id exists, or it belongs to a different account.