---
title: "Interrupt Task"
method: POST
path: "/tasks/{task_id}/interrupt"
tags: ["Tasks"]
---

# Interrupt Task

`POST /tasks/{task_id}/interrupt`

Stop the in-flight turn without terminating the task. Transitions a running task to the non-terminal INTERRUPTED status; the task stays continuable and the next message or event resumes it.

## Path parameters

- `task_id` string, required

## Request body

- TaskStatusReasonRequest
  - `reason` string, nullable

## Response `200`

Successful Response

- Task
  - `id` string, required
  - `name` string, nullable
  - `status` 'CANCELED' | 'COMPLETED' | 'FAILED' | 'RUNNING' | 'INTERRUPTED' | 'TERMINATED' | 'TIMED_OUT' | 'DELETED'
  - `status_reason` string, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable
  - `cleaned_at` string, date-time, nullable
  - `params` object, nullable
  - `task_metadata` object, nullable

## Other responses

- `422` — Validation Error

## Changes

> 55 revisions in range; 2 could not be searched.

- **2026-07-16** `702bb2729fe2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/scaleapi/apis/agentex-api/changes/tasks/:task_id/interrupt/post.md)

---

[API](https://skmtc.dev/scaleapi/apis/agentex-api.md) · [All operations](https://skmtc.dev/scaleapi/apis/agentex-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scaleapi/agentex-api/revisions/1e0aaafd5780/schema)
