Skip to main content
Search and catalog routes are public and need no key. Everything under /cli/ needs a key scoped to all, domain, or reselling. Changes need read_write.

Domain purchase flow

Search domains

POST /domains/search
string
required
Full domain or search term.
string
Optional TLD category.

Search and catalog endpoints

check-availability takes the name and TLD apart, for example {"name":"pxxl","tld":"cv"}.

Create a registrant contact

POST /cli/contacts
string
required
Registrant first name.
string
required
Registrant last name.
string
required
Registrant email.
string
required
Registrant phone number.
string
required
Primary street address.
string
required
City.
string
required
State or region.
string
required
Postal code.
string
required
Country code.
Optional fields: organization, address2, and isDefault.
Response 201

Contact endpoints

Create a domain purchase

POST /cli/domainprovider/domain/register
array
required
Domains to purchase.
string
required
Full domain name.
number
default:"1"
Registration duration.
array
Add-ons as objects with an id.
string[]
Optional custom nameservers.
number
Saved contact ID from /cli/contacts. Fills contact and address for you.
object
firstName, lastName, email, phone, and optional organization. Required without contactId.
object
street, city, state, postalCode, and country. Required without contactId.
NGN | USD
default:"NGN"
Checkout currency.
string
Team that owns the purchase.
Response 201
Search again immediately before purchase. Availability and pricing can change.

Get a payment URL

GET /cli/domainprovider/invoice/{invoiceId}/payment-url
NGN | USD
Checkout currency.
string
Owning team.

Connect a domain

POST /cli/domains
string
required
Hostname to connect.
string
required
Project receiving traffic.
boolean
default:"false"
Adds a Pxxl alias subdomain instead of a custom domain.
string
Service target for a multi-service project.
number
Service port for a multi-service project.
number
Routes the domain to this container port instead of the project port.
Point the records in dnsRecords at your DNS provider, then call /cli/domains/checkrecord. A plan without custom domains returns 403 with code DOMAIN_LIMIT_EXCEEDED.

Connected domain endpoints

Some routes take the domain’s ID (from domainId or /cli/domains). Others take the hostname. The table says which.

DNS records

DNS records can be changed only on domains bought through Pxxl that use Pxxl DNS. Other domains return 403 with DNS records are read-only for this domain. Paths take the domain ID.
string
required
Record type such as A, AAAA, CNAME, TXT, or MX.
string
required
Record name. Use @ for the apex.
string
required
Record value.
number
Time to live in seconds.
number
Priority for records such as MX.
boolean
Sends traffic through the Pxxl proxy where supported.

Reseller endpoints

Selling domains to your own users? The reseller API at /api/v3/domain-reseller takes a reseller key and charges your wallet. See Domain reseller.

Invoice and order endpoints