v0 Platform API/Deployments

Create Deployment

Create a new deployment for a specific chat and version. This will trigger a deployment to Vercel.

POST /deployments
import { v0 } from 'v0-sdk'

const result = await v0.deployments.create({
  projectId: '123',
  chatId: '123',
  versionId: '123',
})

console.log(result)
POST /deployments
curl -X POST https://api.v0.dev/deployments \
  -H "Authorization: Bearer $V0_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "projectId": "123",
    "chatId": "123",
    "versionId": "123"
  }'

Parameters

Request Body

projectId string Required


chatId string Required


versionId string Required


Response

Response Body

id string Required

A unique identifier for the deployment.


object string Required

Fixed value identifying this object as a deployment.


inspectorUrl string Required

URL to the deployment inspector.


chatId string Required

The ID of the chat that this deployment is scoped to.


projectId string Required

The ID of the project that this deployment is scoped to.


versionId string Required

The ID of the version that this deployment is scoped to.


apiUrl string Required

The API endpoint URL for accessing this deployment programmatically.


webUrl string Required

The web URL where the deployment can be viewed or managed.