# StableDomains Register Domain

> StableDomains Register Domain is a paid API for AI agents from stabledomains.net, paid per call via x402, $1000/call, status unknown (last checked 2026-12-03).

Registers a domain name for 1–10 years, quoting and collecting the live USDC price via x402 payment before completing registration.

## Facts

- Endpoint: POST https://stabledomains.net/api/v1/register?utm_source=zero.xyz
- Price: $1000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stabledomains-register-domain-0aa5a9e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EcfqeoHYYTykozcvD47mZ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stabledomains-register-domain-0aa5a9e6 -d '<json body>'
```

Example prompt: Register myagent.xyz for 2 years on StableDomains — go ahead and pay whatever the live USDC price is.

## When to prefer this

Choose this endpoint when an agent or user wants to actually purchase and lock in a domain name with immediate effect, paying in USDC via x402. Use it after confirming availability (e.g. via StableDomains Bulk Availability) and choosing a name (e.g. via StableDomains Name Generator). Prefer this over manual registrar flows when operating in a crypto-native or autonomous-agent context where credit card payments are not feasible and stablecoin settlement is preferred.

## Known failure modes

- Domain already registered — 4xx response before payment is taken
- Domain is a premium name above the quoted price — refused pre-payment
- Invalid domain format or unsupported TLD — validation error
- Payment authorization fails or USDC balance insufficient — 402 not satisfied
- years out of range (must be 1–10) — schema validation error
- Nameserver list exceeds 6 entries — rejected
- Network timeout during registration — partial state possible, should retry with idempotency care

## How this service works

Buy domain: domain registration paid in USDC via x402. Registers a domain name. POST {domain, years}; the 402 quotes the exact live price for that name (a request without a body shows the lowest from-price). Premium or taken names are refused before payment.

## Output

Returns a confirmation that the domain has been registered, including the domain name, registration term, expiry date, and the USDC amount charged. If the domain is already taken, premium-priced beyond threshold, or the payment fails, registration is refused before funds are collected.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "integer",
   "default": 1,
   "maximum": 10,
   "minimum": 1
  },
  "domain": {
   "type": "string",
   "description": "Domain to register (second-level, e.g. myagent.xyz)"
  },
  "nameservers": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 6
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stabledomains-register-domain-0aa5a9e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stabledomains.net](https://www.zero.xyz/host/stabledomains.net/llms.txt)
