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.
Resume Message
Reconnects to an active assistant message stream in a chat.
Download version files
Download all files for a specific chat version as a zip or tarball archive. Use includeDefaultFiles=true to include all deployment files (package.json, configuration files, etc.) or false/omitted to return only the generated source files.