set_domain
Serve the mock under the account's own hostname (Pro): declares it at Cloudflare and returns the CNAME to create (hostname → target) plus the current status; call again without hostname to re-check, or with hostname null to remove it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Subdomain of the mock, e.g. "brisk-otter" | |
| hostname | No | e.g. mock.acme.com; null removes; omitted re-checks the status | |
| ownerToken | No | Owner token received at creation (not needed when the account is connected with an API token) |