v0 Platform API/API Reference/Deployments
Find Deployment Logs
Retrieves logs for a specific deployment. Supports filtering by timestamp to fetch only recent logs.
GET/v1/deployments/{deploymentId}/logs
Usage
TypeScript Example
API Signature
Request
Path Parameters
deploymentId: string
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
logs: object[]
Array of log entries.
createdAt: string
Log creation timestamp.
deploymentId: string
Deployment ID.
id: string
Log entry ID.
text: string
Log message content.
type: 'stdout' | 'stderr'
Output stream type.
level?: 'error' | 'warning' | 'info'
Log severity level.
object: 'deployment_log'
Object type identifier.
nextSince?: number
Timestamp for pagination.
object: 'list'
Object type identifier.