Add an app domain
nerdit_add_domainServe one app at a subdomain the owner controls, such as app.example.com. Needs the Pro plan; at most 3 domains per account; a bare domain such as example.com is refused (the owner can redirect it to the subdomain at their registrar). Then tell the owner to create exactly the record returned: CNAME <record.name> -> <record.target> (the target is this account's own; when their DNS is on Cloudflare, set it DNS only, not proxied). Nothing is served until that CNAME is seen: the status stays awaiting_dns, and a name not verified by expires_at (24 hours) is removed. Once the record exists, call nerdit_check_domain. Adding the same name to the same app again returns it.
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": {
"node_id": "<node_id>",
"service_name": "<service_name>",
"host": "<host>"
},
"name": "nerdit_add_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | The domain name, a subdomain such as app.example.com. | |
| node_id | Yes | Identifier of the machine, from nerdit_list_nodes. | |
| service_name | Yes | Name of the app on that machine. |