---
title: "Stop Message"
method: POST
path: "/chats/{chatId}/messages/{messageId}/stop"
tags: ["Messages"]
---

# Stop Message

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

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

## Path parameters

- `chatId` string, required — The unique identifier of the chat.
- `messageId` string, required — The unique identifier of the assistant message to stop.

## Response `200`

The stopped message.

- object — The stopped message.
  - `messageId` string, required — The unique identifier of the stopped message.

## Other responses

- `401` — Response for status 401
- `403` — Response for status 403
- `404` — Response for status 404
- `409` — Response for status 409
- `422` — Response for status 422
- `500` — Response for status 500

---

[API](https://skmtc.net/vercel/apis/v0-platform-api-beta.md) · [All operations](https://skmtc.net/vercel/apis/v0-platform-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/v0-platform-api-beta/versions/7c7a496f8022/schema)
