---
title: "Get logs for a deployment"
method: GET
path: "/v1/projects/{projectId}/deployments/{deploymentId}/runtime-logs"
tags: ["logs"]
---

# Get logs for a deployment

`GET /v1/projects/{projectId}/deployments/{deploymentId}/runtime-logs`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/projects/{projectId}/deployments/{deploymentId}/runtime-logs`
- Auth: HTTP bearer

Returns a stream of logs for a given deployment.

## Path parameters

- `projectId` string, required: The ID or name of the project containing the deployment.
- `deploymentId` string, required: The ID or hostname of the deployment.

## Query parameters

- `teamId` string
- `slug` string

## Response `200`

- object
  - `domain` string, required
  - `level` 'debug' | 'error' | 'fatal' | 'info' | 'trace' | 'warning', required
  - `message` string, required
  - `messageTruncated` false | true, required
  - `requestMethod` string, required
  - `requestPath` string, required
  - `responseStatusCode` number, required
  - `rowId` string, required
  - `source` 'delimiter' | 'edge-function' | 'edge-middleware' | 'request' | 'serverless', required
  - `timestampInMs` number, required

## Other responses

- `400`: One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `410`

## Changes

- **2026-09-30** `099fbe1f521c`: 1 info
  - added the non-success response with the status `404`
- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2026-06-11** `14b4658f819e`: 3 warning
  - added the new `debug` enum value to the `level` response property for the response status `200`
  - added the new `fatal` enum value to the `level` response property for the response status `200`
  - added the new `trace` enum value to the `level` response property for the response status `200`
- **2026-01-22** `c12186034433`: 2 warning
  - added the new `false` enum value to the `messageTruncated` response property for the response status `200`
  - added the new `true` enum value to the `messageTruncated` response property for the response status `200`
- **2025-05-17** `67f6a93c3cd8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/projects/:projectId/deployments/:deploymentId/runtime-logs/get.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
