Create DDNS token
create_ddns_tokenCreate a scoped DNS updater token for one hostname or pattern in a verified zone, for dynamic DNS A/AAAA updates or ACME DNS-01 TXT records, with optional source IP and rate limits.
Instructions
Create a narrow DNS updater token for one hostname/pattern inside a verified customer-owned zone. purpose=ddns allows A/AAAA updater use; purpose=acme allows TXT only under _acme-challenge for DNS-01. Set allow_from to restrict updater source IPs/CIDRs. The full token is returned once. Requires dns:write when using an API key.
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": {
"zone_id": "<zone_id>",
"name_pattern": "<name_pattern>"
},
"name": "create_ddns_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | Token purpose. ddns allows A/AAAA updates; acme allows TXT-only DNS-01 updates under _acme-challenge. Defaults to ddns. | |
| zone_id | Yes | DNS zone ID | |
| allow_from | No | Optional comma-separated source IP/CIDR allowlist for updater requests, e.g. 203.0.113.10,2001:db8::/64. | |
| expires_at | No | Optional expiry date (YYYY-MM-DD or datetime). | |
| name_pattern | Yes | Allowed hostname or wildcard pattern. For purpose=acme this must be _acme-challenge.<zone> or _acme-challenge.<host>.<zone>. | |
| record_types | No | Allowed record types. For purpose=ddns: A, AAAA, or A,AAAA. For purpose=acme: TXT only. | |
| rate_limit_per_minute | No | Per-token update limit, 1-120/min. Defaults to 10. |