v0 Platform API/Deployments

Get Deployment

Get a deployment by ID. This will return the details of the deployment, including the inspector URL, chat ID, project ID, version ID, API URL, and web URL.

GET /deployments/{deploymentId}
import { v0 } from 'v0-sdk'

const result = await v0.deployments.getById({
  deploymentId: '123',
})

console.log(result)
GET /deployments/{deploymentId}
curl -X GET https://api.v0.dev/deployments/123 \
  -H "Authorization: Bearer $V0_API_KEY" \
  -H "Content-Type: application/json"

Parameters

Path Parameters

deploymentId string Required

Path parameter "deploymentId"


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.