# domain

```graphql
query Domain($input: GetDomainInput!) {
  domain(input: $input) {
    domain {
      id
      domain
      environmentId
      projectId
      createdAt
      updatedAt
    }
    error
  }
}
```

Get a custom domain. Requires project.read.

## Arguments

| Name                  | Type            | Required | Description |
| --------------------- | --------------- | -------- | ----------- |
| `input`               | GetDomainInput! | Yes      |             |
| `input.environmentId` | ID!             | Yes      |             |
| `input.domainId`      | ID!             | Yes      |             |

## Variables

```json
{
  "input": {
    "environmentId": "string",
    "domainId": "string"
  }
}
```

## Responses

| Status | Description                        |
| ------ | ---------------------------------- |
| 200    | The DomainPayload! in data.domain. |

## 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 Domain($input: GetDomainInput!) {\n  domain(input: $input) {\n    domain {\n      id\n      domain\n      environmentId\n      projectId\n      createdAt\n      updatedAt\n    }\n    error\n  }\n}",
  "variables": {
    "input": {
      "environmentId": "string",
      "domainId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "domain": {
      "domain": {
        "id": "string",
        "domain": "string",
        "environmentId": "string",
        "projectId": "string",
        "createdAt": "2026-01-01T00:00:00Z",
        "updatedAt": "2026-01-01T00:00:00Z"
      },
      "error": "string"
    }
  }
}
```
