POST/api/orgs/{org_id}/datasets/{dataset_id}/runs/{run_id}/cancel

Cancel a dataset run

Asks the run to stop after its current batch.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

  • dataset_idstringrequired

    The dataset id.

  • run_idstringrequired

    The run id.

Responses

  • 200

    The run.

    Response
    • idstring
    • dataset_idstring
    • modelstring
    • tag_idsarray<string>
    • statusenum
      "queued""running""completed""failed""cancelled"
    • items_totalinteger
    • items_doneinteger
    • items_failedinteger
    • cost_nano_usdinteger
    • tag_ratesobject

      Fire rate per tag id.

    • created_atstring
    • finished_atstring | null
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 403

    The key is valid but may not perform this action (for example an inference key on a provisioning-key route, or a feature outside your plan).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl -X POST 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/runs/4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a/cancel' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "id": "4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a",
  "dataset_id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
  "model": "gpt-6-luna",
  "tag_ids": [
    "0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90"
  ],
  "status": "running",
  "items_total": 120,
  "items_done": 40,
  "items_failed": 0,
  "cost_nano_usd": 210000000,
  "tag_rates": {
    "0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90": 0.05
  },
  "created_at": "2026-11-18T14:32:07Z",
  "finished_at": null
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/runs/4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a/cancel