Request Delete
Markdown for LLMsDeletes a document request. Afterwards it no longer appears in documents-request-list, and documents-request-get answers its id with 500 DOCUMENT_REQUEST_NOT_FOUND. Deleting the same id again returns 200 again.
Only the request is deleted: the document record a completed request produced, and its file, are kept.
An id that matches no document request fails with 500 DOCUMENT_REQUEST_NOT_FOUND, and an id that is not a GUID with a bodiless 404.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
Id of the document request to delete, as returned by documents-request-create in result.data.documentRequest.id. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches no document request returns 500 DOCUMENT_REQUEST_NOT_FOUND.
uuidResponse Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/documents/request/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/delete"{ "result": { "statusCode": 200, "message": "Deleted" }, "origin": "DELETE https://api.doctavian.com/v1/documents/request/{documentRequestId}/delete", "dateTime": "2026-07-14T09:30:00.000Z", "userId": "e117b894-70e4-4511-b79e-f8c2aa2042de", "operationId": "4c4c58496fb462c198c466dcedf57337"}{ "error": { "statusCode": 401, "message": "The request could not be authenticated.", "innerErrors": [ { "code": "UNAUTHORIZED", "message": "The request could not be authenticated.", "userMessage": "Your session has expired or is invalid. Please sign in again." } ] }, "origin": "DELETE https://api.doctavian.com/v1/documents/request/{documentRequestId}/delete", "dateTime": "2026-01-02T12:34:56.000Z", "operationId": "b98d32a29b625738136361861f6708cc", "userId": "748b2a39-7231-4b49-832b-9ef189074a21"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "DELETE_DOCUMENT_REQUEST_ERROR", "message": "The document request could not be deleted.", "userMessage": "Something went wrong. Please try again or contact support.", "eventId": "c2f4e1a7-9b3d-4e58-a6f0-1d7b8e2c5a94" } ] }, "origin": "DELETE https://api.doctavian.com/v1/documents/request/{documentRequestId}/delete", "dateTime": "2026-10-13T08:55:27.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "8668c2a40ee04a2c8668c2a40ee04a2c"}