Add a custom domain to a website
airapps_site_bind_domainBinds a hostname the space owns (shop.company.com, no scheme or path) to a website that has gone live, and returns the domains with the DNS records to add at the DNS provider. The domain serves the site once DNS and HTTPS are ready.
POST /api/v1/airapps/{nodeId}/site/domains
For multi-space accounts, call auth_verify, ask the user which space to use, and pass targetSpaceId. An AirApp's website: after its files change, deploy the members-only preview, then go live to put that same version on the public address. Changes to records need no redeploy. Add a domain only when the user asks; give them the returned dnsRecords to add at their DNS provider, then check again with the domain list.
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": {
"nodeId": "<nodeId>",
"hostname": "<hostname>"
},
"name": "airapps_site_bind_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| hostname | Yes | ||
| targetSpaceId | No | Busabase space id. Call auth_verify first and ask the user which space to use when more than one is returned. |