Create an API domain
create_domainCreates an API domain that defines the public URL namespace for your deployed endpoints. Run it before deploying endpoints, then pass the returned id as the deployment's domainId.
Instructions
Creates an API domain — the namespace your deployed endpoints live under. Its slug becomes the first path segment of every endpoint in it: https://api.qu4zr.io/{slug}/{path} — and, where site hosts are enabled, the HOSTNAME a site is served at (https://{slug}.{zone}/), so it is a public, permanent, brandable name and not an internal id. The reply carries the domain's baseUrl; use that as the canonical base for its pages rather than assembling a URL. Do this BEFORE deploy_endpoint, then pass the returned id as deploy_endpoint's domainId. The slug is GLOBALLY unique across all users and is effectively permanent once endpoints are deployed and callers depend on the URL, so it requires confirm=true — call without confirm first to preview, and let the user pick the slug rather than choosing a memorable one yourself. Omit slug to derive it from name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, e.g. "Orders API". | |
| slug | No | URL segment, e.g. "orders-api". Globally unique. Defaults to name. | |
| tags | No | ||
| confirm | No | Must be true to create. Omit/false returns a preview only. | |
| description | No |