# POST /domains

**Resource:** [DOMAINS](./domains.md)  
**MCP tool:** `add_domain`  
**Scopes:** `domains:write`  
**Write operation:** yes

Connect a shortlink hostname. Returns a fresh ownership TXT record, a CNAME record and a seven day claim. A verified hostname in another workspace cannot be claimed. Secure connection setup is waiting until it is enabled. Manage website and email uses in Growth > Websites and Settings > Email.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `hostname` | body | string | yes | The hostname. Scheme, path, case and a trailing dot are cleaned. Example: "go.example.com.au". |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/domains"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"hostname":"...","require_approval":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`