# Agents assistant interrupt

`POST /agents/assistant/threads/{id}/interrupt` · Rivier · agents

Stop the assistant at the next safe point, or redirect it with a new instruction while it works.

- Scope: agents:write
- Sdk: agents.assistant.interrupt
- Cli: agents assistant interrupt

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "stop",
        "steer"
      ],
      "default": "stop"
    },
    "message": {
      "type": "string",
      "maxLength": 2000
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/agents/assistant/threads/{id}/interrupt' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "mode": "stop",
  "message": "string"
}'
```
