# getDeployment

```graphql
query GetDeployment($input: GetDeploymentInput!) {
  getDeployment(input: $input) {
    id
    releaseId
    environmentId
    userId
    createdAt
    updatedAt
    release {
      id
      name
      version
      projectId
      userId
      createdAt
      updatedAt
      exportOutcome
      buildOutcome
      deployOutcome
    }
  }
}
```

Get a deployment. Requires project.deployments.read.

## Arguments

| Name       | Type                | Required | Description |
| ---------- | ------------------- | -------- | ----------- |
| `input`    | GetDeploymentInput! | Yes      |             |
| `input.id` | ID!                 | Yes      |             |

## Variables

```json
{
  "input": {
    "id": "string"
  }
}
```

## Responses

| Status | Description                           |
| ------ | ------------------------------------- |
| 200    | The Deployment in data.getDeployment. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query GetDeployment($input: GetDeploymentInput!) {\n  getDeployment(input: $input) {\n    id\n    releaseId\n    environmentId\n    userId\n    createdAt\n    updatedAt\n    release {\n      id\n      name\n      version\n      projectId\n      userId\n      createdAt\n      updatedAt\n      exportOutcome\n      buildOutcome\n      deployOutcome\n    }\n  }\n}",
  "variables": {
    "input": {
      "id": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "getDeployment": {
      "id": "string",
      "releaseId": "string",
      "environmentId": "string",
      "userId": "string",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z",
      "release": {
        "id": "string",
        "name": "string",
        "version": "string",
        "projectId": "string",
        "userId": "string",
        "createdAt": "2026-01-01T00:00:00Z",
        "updatedAt": "2026-01-01T00:00:00Z",
        "exportOutcome": "in_progress",
        "buildOutcome": "in_progress",
        "deployOutcome": "in_progress"
      }
    }
  }
}
```
