Skip to main content
Banan0 API Docs

Cancel Run

Cancel a running or queued job.

Cancel Run

http
POST /api/v1/runs/:runId/cancel

Cancels a queued or running job. Tokens for incomplete work are refunded.

Example Request

bash
curl -X POST \
  -H "Authorization: Bearer bnn_live_xxx" \
  "https://banan0.com/api/v1/runs/run_abc123xyz/cancel"

Example Response

json
{
  "data": {
    "run_id": "run_abc123xyz",
    "status": "CANCELED",
    "canceled_at": "2026-01-13T20:00:10.000Z"
  }
}

Notes

  • You can only cancel runs that are QUEUED or EXECUTING
  • Completed or already failed runs cannot be canceled
  • Cancellation is best-effort for running jobs
  • Command Palette

    Search for a command to run...