# Cancel input request

```http
POST /input-requests/{input_request_id}/cancel
```

Cancel an input request.

## Parameters

| Name               | In     | Required | Description                                                                                                                                                                                                                                                                                                                                                       |
| ------------------ | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input_request_id` | path   | Yes      | Input request to cancel. A fresh cancellation of an already-resolved request returns 409; only an open request can be cancelled. Requires project.runs.write on the run’s project and, for a request in a conversation, editor access on that conversation. An authorized retry of the identical request with the same idempotency key returns its stored result. |
| `Idempotency-Key`  | header | Yes      |                                                                                                                                                                                                                                                                                                                                                                   |

## Responses

| Status | Description             |
| ------ | ----------------------- |
| 200    | Cancelled input request |
| 400    | Bad request             |
| 401    | Unauthorized            |
| 403    | Forbidden               |
| 404    | Not found               |
| 409    | Conflict                |
| 429    | Rate limit exceeded     |
