Check a custom domain
check_domainLook up a custom domain's DNS records now and, when both are right, switch it on: the certificate is issued automatically and the domain starts serving within a few minutes. Returns the domain's status (pending, verified, active or cert_failed) and, while pending, what is still wrong with the records. DNS changes can take a while to spread, so a pending result is normal right after adding the records; call it again later.
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": "check_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. |