v0 Platform API/Deployments

Find Deployment Logs

Retrieves logs for a specific deployment. Supports filtering by timestamp to fetch only recent logs.

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

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

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

Parameters

Path Parameters

deploymentId string Required

The unique identifier of the deployment to retrieve logs for. Provided as a path parameter.


Query Parameters

since number

A UNIX timestamp (in seconds) used to filter logs. Returns only log entries generated after the specified time.


Response

Response Body

error string


logs string[] Required

Array items: string


nextSince number