Messages

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

post/chats/{chatId}/messages/{messageId}/stop

Request

  • Base URL
    https://api.v0.dev/v2
  • URL
    https://api.v0.dev/v2/chats/{chatId}/messages/{messageId}/stop
  • Auth
    HTTP bearer

Path parameters

chatIdstring required

The unique identifier of the chat.

messageIdstring required

The unique identifier of the assistant message to stop.

Response

The stopped message.

messageIdstring required

The unique identifier of the stopped message.

Changes

    • info

      added the non-success response with the status

    • breaking

      for the path request parameter chatId, the minLength was increased from 0 to 1

    • breaking

      for the path request parameter messageId, the minLength was increased from 0 to 1

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      api operation id chats.stop removed and replaced with messages.stop

    • info

      the endpoint scheme security apiKey was removed from the API

    • info

      api tag Messages added

    • info

      api tag chats removed

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status