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

# Get one deployment

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

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/functions/{id}/deployments/{deploymentId}`
- Auth: HTTP bearer

One deployment of the function, with its status, error, timings and bundle fingerprints.

## Path parameters

- `id` string, uuid, required
- `deploymentId` string, uuid, required

## Response `200`

Get one deployment

- object
  - `success` true, required
  - `data` GetFunctionDeploymentResult, required
    - `id` string, uuid, required
    - `status` string, required
    - `deploy_error` string, nullable, required
    - `started_at` string, date-time, required
    - `finished_at` string, date-time, nullable, required
    - `duration_ms` number, nullable, required
    - `is_current` boolean, required
    - `source_kind` 'esm' | 'managed_build', required
    - `entry_point` string, nullable, required
    - `bundle_bytes` number, nullable, required
    - `bundle_gzip_bytes` number, nullable, required
    - `build_ms` number, nullable, required
    - `bundle_sha256` string, nullable, required
    - `source_sha256` string, nullable, required
    - `builder_version` string, nullable, required

## Other responses

- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

---

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