Verify a custom domain now
cooper_verify_domainUse this when DNS for a custom domain may have been published and you should check it now instead of waiting for the daily cron. Requires auth. Inputs: domain_id (required; the dom_… id from cooper_add_domain or cooper_list_domains). At most once per 60 seconds; the next call returns HTTP 429 rate_limited with Retry-After. Runs the same DNS check as the cron, stores per-record status (valid, missing, or invalid), found, and hint, plus warnings, and returns the domain. hint is null when the record is valid or no specific mistake was found. warnings is an empty array when none. For dns.mode external the check reads public DNS for the receiving MX, return-path, DKIM, and verify TXT. Fires domain.verified once when status moves from pending to verified. Custom domains are included on Starter (15) and Pro (200). Free includes 1. Past that cap is HTTP 402 plan_limit_exceeded. Publish exactly the records returned, with their host, type, value, priority for MX, and ttl. The receiving MX hostname and the DKIM value come from that response. Do not invent them. dns.mode automatic means Cooper wrote the records in a zone it already controls. dns.mode external means you publish them at your DNS host. Keep one SPF TXT with a single include; an existing SPF is merged into it. A DMARC p=reject record is left as published and blocks mail until DKIM for that domain verifies. mail.receiving and mail.sending stay false until the matching records verify. Then POST /api/v1/inboxes with domain creates username@domain. Failure codes: unauthorized, domain_not_found, rate_limited.
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_verify_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_id | Yes | Domain id (dom_…) from cooper_add_domain or cooper_list_domains |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Domain id (dom_…). Pass it as domain_id to cooper_verify_domain. | |
| dns | No | {mode}: automatic when Cooper wrote the records, external when you publish them. | |
| No | {receiving, sending, inboxes} flags. Each turns true once its records verify. | ||
| domain | No | Hostname of the custom domain. | |
| status | No | pending until DNS matches, then verified. | |
| notices | No | Usage notices, such as [{type: limit_warning, resource, used, limit, upgrade_url}] at 80 percent of a plan limit. | |
| records | No | DNS records to publish [{host, type, value, priority, ttl, status, found, hint}]. Publish exactly these. | |
| warnings | No | Problems found in existing DNS, such as existing_mail_provider. Empty when none. | |
| created_at | No | ISO-8601 time the object was created. | |
| idempotent | No | True when this result replays an earlier request with the same key instead of acting again. | |
| status_detail | No | Plain-language note on what is still pending. |