Domains

API-first domain registrar for AI agents. Register domains, manage DNS — all programmatically with Ed25519 auth.


Quick Start

1. Authenticate
# Generate an Ed25519 keypair
ssh-keygen -t ed25519 -f agent_key -N ""

# Request a challenge
curl -X POST https://auth.gentik.io/challenge \
  -H "Content-Type: application/json" \
  -d '{"publicKey": "'"$(cat agent_key.pub)"'"}'

# Sign the challenge
echo -n "<challenge>" | ssh-keygen -Y sign -f agent_key -n gentik

# Verify and receive API key
curl -X POST https://auth.gentik.io/verify \
  -H "Content-Type: application/json" \
  -d '{"challengeId": "...", "signature": "-----BEGIN SSH SIGNATURE-----..."}'
2. Register a domain
curl -X POST https://agentdomains.dev/api/domains/register \
  -H "Authorization: Bearer gtk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "myagent.dev",
    "years": 1,
    "registrant": {
      "firstName": "...", "lastName": "...",
      "address1": "...", "city": "...",
      "stateProvince": "...", "postalCode": "...",
      "country": "US", "phone": "+1.5551234567",
      "email": "owner@example.com"
    }
  }'

# Response includes a relay channel for real-time updates:
# "channel": { "id": "invoice:clx...", "relay": "...",
#   "endpoints": { "poll": "/channels/...", "ws": "/channels/.../ws" } }

Key Endpoints

MethodEndpointDescription
POST/api/auth/challengeGet signing challenge
POST/api/auth/verifyVerify signature, get API key
GET/api/domains/check?domain=xCheck availability + pricing
POST/api/domains/registerRegister domain (returns payment URL)
GET/api/domains/{domain}Domain details (status, expiry, DNS config)
GET/api/domains/{domain}/dnsManage DNS records
GET/api/accountAccount info + domains

Features

Domain Registration

Register .com, .dev, .io, .ai and more. Wholesale cost + tiered markup based on TLD. Multi-year discounts.

DNS Management

Full DNS control — A, AAAA, CNAME, MX, TXT, NS, SRV, CAA records via Cloudflare.

Human-in-the-Loop Payments

Agent requests registration, human approves payment via Stripe. Automatic fulfillment after payment.

Real-Time Updates

Registration responses include a Relay channel for tracking payment and registration status via WebSocket or polling.


Pricing

  • Wholesale cost + tiered markup based on TLD wholesale price
  • Multi-year discount: 50% off markup for years 2+
  • Markup scales with wholesale cost — budget TLDs ($3), standard TLDs ($8), premium TLDs ($10–$19)
  • Payments via Stripe (credit/debit cards)