---
title: "Get Deployment Logs"
method: GET
path: "/api/v1/projects/{project_id}/deployments/logs"
tags: ["Deployments"]
---

# Get Deployment Logs

`GET /api/v1/projects/{project_id}/deployments/logs`

Get the logs for a deployment.

Retrieves all build and deployment logs for a specific deployment,
sorted by timestamp in ascending order (oldest first).

## Path parameters

- `project_id` string, uuid, required — The unique identifier of the project

## Query parameters

- `deployment_id` string, uuid, required

## Response `200`

Successful Response

- DeploymentLogsResponse — Response containing deployment logs for a specific deployment. Attributes: project_deployment_id (ProjectDeploymentID): The deployment these logs belong to. logs (list[LogMessage]): The list of log messages sorted by timestamp. total_count (int): Total number of log entries.
  - `project_deployment_id` string, uuid, required — The unique identifier a project deployment
  - `logs` LogMessage[], required
    - `timestamp` string
    - `type` 'step_start' | 'step_end' | 'stream' | 'build_failure' | 'convex_deployment_failure' | 'generic' | 'deployment_failure', required
    - `step` string, required
    - `message` string, required
    - `success` boolean
    - `latency_seconds` number, nullable
    - `stream` 'stdout' | 'stderr', nullable
    - `exit_code` integer, nullable
    - `error_summary` string, nullable
  - `total_count` integer, required
  - `deployment_error_message` string, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rebolt/apis/fastapi.md) · [All operations](https://skmtc.dev/rebolt/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rebolt/fastapi/revisions/ee5884f323f3/schema)
