DocumentationAPI Reference
ApiAPI ReferenceDocuments

Delete a document

Permanently removes a document owned by the authenticated account, together with its analysis results. Requires the documents:write scope.

DELETE
/documents/{documentId}

Permanently removes a document owned by the authenticated account, together with its analysis results. Requires the documents:write scope.

Authorization

bearerAuth
headerAuthorizationBearer <API Key>

An OutRiskAI API key, sent as a bearer token. Create keys in the dashboard under Settings; the secret is shown only once.

Path Parameters

documentId*string

Document identifier returned when the document is submitted.

Response Body

Document deleted.

application/json
  1. response
success*boolean
data*
error*
Example Request
curl -X DELETE 'https://outriskai.com/api/public/v1/documents/string'
Example Response
{  "success": true,  "data": {    "deleted": true,    "document": {      "id": "string"    }  },  "error": {}}