Publishing v0 chat versions to Vercel using platform APIs

Hi, I’m looking for a way to publish a v0 chat latest version (linked to a Vercel project) using the v0 APIs.

I have 100+ v0 chats (each linked to an unique Vercel project) that I want to do this for on an ongoing basis.

In other words, I don’t want to click the Publish button, I want to do it via APIs and have it deploy via Vercel.

Screenshot 2026-03-03 at 10.53.26 PM

I’ve tried looking up the v0 project ID for a specified v0 chat but it looks like v0 chat doesn’t always have a v0 project associated with it.

For example, calling Get Chat would yield a response that doesn’t have a projectId for me to subsequently used to invoke Create Deployment.

What would be the correct way to achieve this?

Does the Vercel/v0 support have an idea?

Chats don’t have projects attached by default, they get them when you add features that require them (like environment variables) or connect git

Via the API, you can make a project yourself with create project. If you already have a vercel project created you can attach its ID here, otherwise it will create a Vercel project for you

Then when you create the new chat, you can use this projectId in the request body

1 Like

Hey! To help debug your v0 project, could you share your v0 chat link?
It looks like https://v0.app/chat/... — you can copy it from your browser’s address bar while in the chat.

You’ll also need to unlist the chat so our team can view it — here’s how: Sharing | v0 Docs

This helps the team reproduce what you’re seeing much faster. Thanks!