Integrate Subilex domain and email services into your applications.
Authorization header. Get your token by logging in via POST /api/users/login.
Check if a domain is available for registration and get pricing.
| Param | Type | Description |
|---|---|---|
| domain | string | Domain name to check (required) |
| token | string | Auth token (optional, shows ownership) |
{
"domain": "example.com",
"available": true,
"pricing": { "registration": 11.28, "renewal": 11.28 }
}
Register a new domain name. Requires authentication.
{
"domain": "example.com",
"years": 1,
"nameservers": ["ns1.subilex.com", "ns2.subilex.com"]
}
Returns pricing for all supported TLDs.
Returns all domains owned by the authenticated user.
Create a new email mailbox for a domain.
{
"mailbox": "support",
"domain": "example.com",
"password": "securepass123"
}
Returns all mailboxes for the authenticated user.
Remove an email mailbox.
Process a payment for domains, email, or wallet top-up.
{
"amount": 11.28,
"method": "stripe",
"description": "Domain registration: example.com"
}
Returns payment history for the authenticated user.
{
"name": "John Doe",
"email": "john@example.com",
"password": "securepass123"
}
{
"email": "john@example.com",
"password": "securepass123"
}
{
"token": "eyJhbGciOiJIUzI1NiIs...",
"user": { "id": "...", "name": "John Doe", "email": "john@example.com" }
}
Returns the authenticated user's profile including domains, mailboxes, and balance.