Chats

Create Chat From Files

Changed on

Creates a new chat from inline UTF-8 or base64-encoded source files.

post/chats/from-files

Request

  • Base URL
    https://api.v0.dev/v2
  • URL
    https://api.v0.dev/v2/chats/from-files
  • Auth
    HTTP bearer

Request body

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted'

Visibility setting for the new chat.

titlestring

Title for the new chat.

metadataobject

Arbitrary key-value data to attach to the chat.

Response

A chat response that also reports the usage.

Changes

    • info

      added the new optional request property // (media type: application/json)

    • info

      added the new optional request property // (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property // (media type: multipart/form-data)

    • info

      added the required property / to the response with the status