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

# Get deployment

`GET /api/v1/functions/{function_id}/deployments/{deployment_id}`

## Path parameters

- `function_id` string, required
- `deployment_id` string, uuid, required

## Response `200`

Deployment status

- object
  - `success` boolean
  - `data` object
    - `deployment` FunctionDeployment
      - `id` string, uuid
      - `revision_id` string, uuid — Set when the deployment succeeds
      - `channel` 'console' | 'cli' | 'github'
      - `status` 'queued' | 'building' | 'deploying' | 'ready' | 'failed'
      - `commit_sha` string
      - `error` string
      - `build_duration_ms` integer
      - `started_at` string, date-time
      - `finished_at` string, date-time
      - `created_at` string, date-time

## Other responses

- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
