Messages

Lists all messages in a chat.

get/chats/{chatId}/messages

Request

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

Path parameters

chatIdstring required

The unique identifier of the chat.

Query parameters

limitinteger required

Maximum number of messages to return (1-100, default 20).

cursorstring

Pagination cursor returned from a previous response.

Response

Response for status 200

cursorstring nullable required

Cursor to fetch the next page, or null if there are no more messages.

Changes

    • info

      response property messages/items/parts/items/oneOf[subschema #8]/data/anyOf[subschema #3]/requestedNpmRegistryIds deprecated

    • breaking

      added subschema #2 subschema #3 to the ////// response property oneOf list for the response status

    • info

      removed subschema #2 from the ////// response property oneOf list for the response status