Skip to main content
DELETE
/
jobs
/
{job_id}
curl -X DELETE https://trio.machinefi.com/jobs/a1b2c3d4-e5f6-7890-abcd-ef1234567890
{
  "job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "stopped",
  "message": "Job cancelled successfully",
  "final_stats": {
    "checks_performed": 45,
    "triggers_fired": 3,
    "frames_skipped": 112
  }
}

Overview

Stop a running job immediately. This will cancel the job and prevent any further monitoring or webhook triggers.

Request

job_id
string
required
The job ID to cancel

Response

Returns the cancellation result with final statistics.
job_id
string
The cancelled job ID
status
string
Will be stopped after cancellation
message
string
Human-readable cancellation message.
final_stats
object
Final job statistics at the time of cancellation.
curl -X DELETE https://trio.machinefi.com/jobs/a1b2c3d4-e5f6-7890-abcd-ef1234567890
{
  "job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "stopped",
  "message": "Job cancelled successfully",
  "final_stats": {
    "checks_performed": 45,
    "triggers_fired": 3,
    "frames_skipped": 112
  }
}

Important Notes

  • Cancellation is immediate - no further monitoring will occur
  • Webhooks are not triggered on cancellation (only on condition match)
  • You can retrieve final statistics from the response
  • Jobs auto-cancel after 10 minutes regardless (see Job Management)