Подключить свой домен
connect_domainConnect a custom domain to a site.
IMPORTANT: between this call and a working domain stands A PERSON. You
get DNS records — show them to the user and explain they go in at their
domain registrar. Do not wait for readiness: DNS propagates in minutes
to an hour, the platform re-checks on its own, and you check later via
`check_domain`. Spinning here burns time and context for nothing.
The address can be passed as-is: the platform reduces
`https://shop.example.com/page` to `shop.example.com` itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Домен без схемы и без слеша: `example.ru` или `www.example.ru`. Со схемой (`https://…`) платформа ответит отказом 422. | |
| project | Yes | Проект: слаг (`my-site`) или id. Слаг — то, что видно в адресе сайта; если пользователь назвал сайт словами, возьми слаг из `my_projects`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| state | Yes | ||
| checks | No | ||
| domain | Yes | ||
| records | Yes | ||
| working | Yes | ||
| next_action | Yes | ||
| next_check_hint | No |