Skip to main content

API reference · /api/v1

Overview

The Domain.af reseller API is a versioned REST interface that returns JSON. Authenticate with API key headers from a secure server.

Base URL

https://www.domain.af/api/v1

Available endpoints

  • POST /api/v1/domains/register Register, renew and transfer domains, paid from your account credit at your reseller prices. Idempotent.
  • PUT /api/v1/domains/{domain}/nameservers Nameservers, contacts, registrar lock, EPP codes, child nameservers, WHOIS Privacy and Domain Protection.
  • POST /api/v1/domains/check Check whether a domain is available and receive reseller-effective pricing in the same response.
  • POST /api/v1/pricing Retrieve reseller-effective quotes for registration, renewal, transfer, or restore.
  • GET /api/v1/domains List domains associated with your reseller account.
  • GET /api/v1/domains/{domain} Retrieve status, expiry, and nameservers for a domain you manage.
  • GET /api/v1/account/balance Retrieve your reseller credit balance, currency, and active domain count.
  • GET /api/v1/account/tier See your current tier, next tier, and domains needed to advance.

Webhooks

Instead of polling, receive a signed HTTPS callback when a domain is registered, renewed, transferred, about to expire or expired, when nameservers or the registrar lock change, and when an invoice is paid. See Webhooks.

Sandbox

Test your integration without registering or paying for anything: create a Sandbox key and use /api/sandbox/v1. See Sandbox.