Vercel
API ReferenceMessages

Stop Message

Stops an in-flight assistant message generation. The agent aborts at the next safe point and the message is marked finished.

v2 of the v0 API is currently in beta and not yet ready for production. There may be breaking changes.
POST/v2/chats/{chatId}/messages/{messageId}/stop

Usage

TypeScript Example
import { v0 } from 'v0'const result = await v0.messages.stop({  chatId: 'chat_abc123',  messageId: 'msg_xyz789',})console.log(result)

API Signature

Request

Path Parameters

chatId: string

The unique identifier of the chat.

messageId: string

The unique identifier of the assistant message to stop.

Response

success: 'true'

Always true when the stop signal was successfully sent.

On this page