---
title: "Recent runtime logs (tail) for a deployment. With no `source`, reads both the production API / worker pods and the dev-mode worker, merged chronologically; scope with `?source=production` or `?source=dev`."
method: GET
path: "/api/v1/deployments/{deploymentId}/logs"
tags: ["Deployments"]
---

# Recent runtime logs (tail) for a deployment. With no `source`, reads both the production API / worker pods and the dev-mode worker, merged chronologically; scope with `?source=production` or `?source=dev`.

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

## Path parameters

- `deploymentId` integer, required

## Query parameters

- `source` 'production' | 'dev'
- `pod` string, nullable
- `container` 'INIT' | 'MAIN' | 'cubejs-server' | 'vector' | 'api-proxy'

## Response `200`

- DeploymentLogsResponse
  - `items` DeploymentLogLine[], required
    - `date` string, required
    - `message` string, required
    - `pod` string, required

---

[API](https://skmtc.net/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.net/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/a0c6b1d2ac96/schema)
