---
title: "Get deployment logs"
method: GET
path: "/v1/deployments/{publicId}/logs"
tags: ["Deployment"]
---

# Get deployment logs

`GET /v1/deployments/{publicId}/logs`

## Request

- Base URL: `https://api.fortrabbit.com`
- URL: `https://api.fortrabbit.com/v1/deployments/{publicId}/logs`
- Auth: HTTP bearer

Deployment logs become available shortly after a deployment finishes. While "ready" is false the logs are still being collected. Once "ready" is true the response is final; an empty "logs" array then means there are no logs for this deployment.

## Path parameters

- `publicId` string, required

## Response `200`

Deployment resource

- DeploymentDeploymentLogsResponseApiRead
  - `ready` boolean: False while the deployment logs are still being collected. Poll this endpoint again until it turns true. Once true the response is final, and an empty "logs" array then means there are no logs to show.
  - `logs` object[]: Log lines in chronological order. Always an array; empty while "ready" is false.

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/fortrabbit/apis/fortrabbit-api.md) · [All operations](https://skmtc.dev/fortrabbit/apis/fortrabbit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fortrabbit/apis/fortrabbit-api/revisions/36ca73befa52?raw)
