# Get Deployment Version

`GET /api/workflows/{id}/deployments/{version}`

## Description
Return the workflow state captured by one deployment version. Requires read access; scoped keys need a read grant.

## Parameters

- **id** (path) (required) — `string`: The unique identifier of the workflow.

- **version** (path) (required) — `integer`: The deployment version number, as listed by List Deployments.

## Responses

### 200 — The deployed state.

```json
{
  "type": "object",
  "properties": {
    "deployedState": {
      "type": "object",
      "description": "Blocks, edges, loops, and parallels as deployed."
    }
  }
}
```

### 400 — `version` is not a number.

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    }
  }
}
```

### 401 — Invalid or missing API key. Ensure the X-API-Key header is set with a valid key.

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    }
  }
}
```

### 403 — The key's owner lacks read access to the workflow in its workspace.

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    }
  }
}
```

### 404 — The requested resource was not found. Verify the ID is correct and belongs to your workspace.

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable error message."
    }
  }
}
```
