---
title: Find Deployment Logs
description: Retrieves logs for a specific deployment. Supports filtering by timestamp to fetch only recent logs.
docs_index: /docs/llms.txt
lastUpdated: 2026-11-21
product: v0 API
type: reference
prerequisites:
  - /docs/api/v1/quickstart
---

> For an index of all documentation, see [/docs/llms.txt](/docs/llms.txt).

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

#### `GET /v1/deployments/{deploymentId}/logs`

> **Deprecated**: This method is deprecated. Use the [Vercel API](https://docs.vercel.com/docs/rest-api/reference/endpoints/deployments/get-deployment-events) directly to inspect deployment logs.

## Usage

```typescript
import { v0 } from 'v0-sdk'

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

console.log(result)
```

```bash
curl -X GET https://api.v0.dev/v1/deployments/123/logs   -H "Authorization: Bearer $V0_API_KEY"   -H "Content-Type: application/json"
```

## 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.
  - `item: object`
    - `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.

---

For a semantic overview of all documentation, see [/docs/sitemap.md](/docs/sitemap.md)

For an index of all available documentation, see [/docs/llms.txt](/docs/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/docs/agents.md](/docs/agents.md)