Vercel
v0 Platform APIAPI ReferenceChats

Stop Message

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 Example
import { v0 } from 'v0-sdk'const result = await v0.chats.stopMessage({  chatId: 'chat_abc123',  messageId: 'msg_xyz789',})console.log(result)

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.

On this page