Create a domain setup link
cooper_domain_setup_linkUse this when a human must publish the DNS records for a custom domain. Requires auth. Inputs: domain_id (required; the dom_… id from cooper_add_domain or cooper_list_domains), expires_in_hours (optional integer from 1 to 168, default 72). Returns {url, expires_at, domain_id, hostname}. url is one page the human opens. It shows the records, a zone file, and Check now. It is not an API key. Creating a link revokes the previous link for that domain. A verified domain can still have a link. Another account's id is domain_not_found. Failure codes: unauthorized, domain_not_found, invalid_body, permission_denied.
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": {
"domain_id": "<domain_id>"
},
"name": "cooper_domain_setup_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | Yes | Domain id (dom_…) from cooper_add_domain or cooper_list_domains | |
| expires_in_hours | No | Hours until the link stops working. Integer from 1 to 168. Default 72. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page for this domain's DNS records. Send it to the human. It is not an API key. | |
| hostname | No | Hostname shown on the setup page. | |
| domain_id | No | Domain id (dom_…) this link is for. | |
| expires_at | No | ISO-8601 time the link stops working. |