---
title: "Get deployment logs"
method: GET
path: "/v0/api/deployments/{deploymentId}/logs"
tags: ["Deployments"]
---

# Get deployment logs

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

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/deployments/{deploymentId}/logs`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/deployments/:deploymentId/logs/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the build logs for a specific deployment.

## Path parameters

- `deploymentId` string, uuid, required

## Response `200`

Deployment logs

- object
  - `logs` string, required
  - `status` 'PENDING' | 'BUILDING' | 'DEPLOYING' | 'SUCCESS' | 'FAILED', required
  - `failureReason` string, nullable, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Deployment not found

---

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