# Create environment domain

Tool: `veryfront__create_domain`

Add a custom domain. Requires project.domains.write.

## Arguments

| Name                | Type   | Required | Description                                |
| ------------------- | ------ | -------- | ------------------------------------------ |
| `project_reference` | string |          | Project ID or slug                         |
| `environment_id`    | string | Yes      | Environment ID                             |
| `domain`            | string | Yes      | Custom domain name (e.g., app.example.com) |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_domain",
    "arguments": {
      "environment_id": "string",
      "domain": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"domain\":\"string\",\"environment_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"created_at\":\"string\",\"updated_at\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "00000000-0000-0000-0000-000000000000",
      "domain": "string",
      "environment_id": "00000000-0000-0000-0000-000000000000",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
```
