---
title: "Get deployment"
method: GET
path: "/v1/functions/deployments/{deploymentId}"
tags: ["Functions"]
---

# Get deployment

`GET /v1/functions/deployments/{deploymentId}`

Fetch a deployment to poll its status during a deploy.

## Path parameters

- `deploymentId` string, required

## Response `200`

Deployment details.

- FunctionDeploymentResponse
  - `deployment` FunctionDeployment, required
    - `id` string, required
    - `functionId` string, required
    - `version` integer, required — Monotonically increasing deployment version, starting at 1.
    - `status` 'pending' | 'bundling' | 'uploading' | 'publishing' | 'active' | 'failed' | 'superseded', required — Stage of a function deployment.
    - `sourceCodeBytes` integer, nullable
    - `bundleBytes` integer, nullable
    - `errorMessage` string, nullable — Failure reason when status is 'failed'.
    - `deployedAt` string, date-time, nullable
    - `createdAt` string, date-time, required

## Other responses

- `401` — Unauthorized.
- `404` — Deployment not found.

---

[API](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api.md) · [All operations](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zavudev/zavu-unified-messaging-layer-api/versions/07b87b6ae707/schema)
