English
API Reference v2
cURL
curl --request POST \ --url https://paradigm.lighton.ai/api/v2/tools/document-analysis/{task_id}/cancel/ \ --header 'Authorization: Bearer <token>'
200
SuccessfulCancellation
{ "message": "Task cancellation attempted"}
Cancel an in-progress document analysis task. Only tasks that are pending or in progress can be cancelled. Completed, errored, or already cancelled tasks cannot be cancelled.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
UUID of the task to cancel
Task cancellation attempted successfully