Add a custom domain
add_domainConnect a custom domain the user owns to a project, so the app also answers at that address over HTTPS. Returns the two DNS records the user adds at their DNS provider: a CNAME that points the domain at the project's address, and a TXT record that proves they own it. Nothing is served on the domain until check_domain finds both. Custom domains are on paid plans; the allowance is counted across the account. The project still has to be public (deploy) for the domain to serve.
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": {
"project_id": "<project_id>",
"domain": "<domain>"
},
"name": "add_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The custom domain, e.g. "app.yourcompany.com". A pasted URL is trimmed to its hostname. | |
| project_id | Yes | The project's id, as returned by create_project or list_projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | https://<domain> once active and the project is public, otherwise null. | |
| domain | Yes | The hostname. | |
| status | Yes | pending = waiting for the DNS records. verified = records found, certificate being issued. active = serving over HTTPS (while the project is public). cert_failed = the certificate could not be issued; see problem. | |
| problem | No | What is still wrong, in words. null when nothing is. | |
| records | Yes | The DNS records to add at the domain's DNS provider. | |
| checked_at | No | When DNS was last checked, ISO 8601. |