---
title: Stop Message
description: Stops an in-flight message generation in a chat. Useful for cancelling a streaming response that is still being generated.
docs_index: /docs/llms.txt
lastUpdated: 2026-10-23
product: v0 API
type: reference
prerequisites:
  - /docs/api/v1/quickstart
---

> For an index of all documentation, see [/docs/llms.txt](/docs/llms.txt).

Stops an in-flight message generation in a chat. Useful for cancelling a streaming response that is still being generated.

#### `POST /v1/chats/{chatId}/messages/{messageId}/stop`

## Usage

```typescript
import { v0 } from 'v0-sdk'

const result = await v0.chats.stopMessage({
  chatId: 'chat_abc123',
  messageId: 'msg_xyz789',
})

console.log(result)
```

```bash
curl -X POST https://api.v0.dev/chats/{chatId}/messages/{messageId}/stop   -H "Authorization: Bearer $V0_API_KEY"   -H "Content-Type: application/json"
```

## API Signature

### Request

#### Path Parameters

- `chatId: string` The unique identifier of the chat containing the message to stop. Provided as a path parameter.
- `messageId: string` The identifier of the specific message to stop. Provided as a path parameter.

### Response

- `success: true` Indicates that the stop signal was sent successfully.

---

For a semantic overview of all documentation, see [/docs/sitemap.md](/docs/sitemap.md)

For an index of all available documentation, see [/docs/llms.txt](/docs/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/docs/agents.md](/docs/agents.md)