Skip to content

API Reference

Domains API

Copy page

GET /v1/domains — status, expiry date and auto-renew of your domains

Returns the token owner’s domains with status, expiry date and days remaining. Also used to check a single domain.

Request

GET https://api.hostino.ai/v1/domains
Authorization: Bearer ACCESS_TOKEN
ItemValue
Required scopedomains:read
domain (optional)Only this domain, e.g. ?domain=example.com (www. is ignored)
status (optional)Filter by status, e.g. ?status=Active
Terminal window
curl -s "https://api.hostino.ai/v1/domains?domain=example.com" \
-H "Authorization: Bearer $TOKEN"

Response

{
"count": 1,
"domains": [
{
"id": 136,
"domain": "example.com",
"status": "Active",
"registered_on": "2026-06-03",
"expires_on": "2027-05-16",
"days_until_expiry": 207,
"expired": false,
"next_due_date": "2027-05-16",
"period_years": 1,
"auto_renew": true,
"type": "international"
}
]
}

Managing domains

EndpointScopeWhat it does
GET /v1/domains/check?domain=domains:readAvailability and price (toman; 1 year and per number of years)
GET /v1/domains/:domain/infodomains:readNameservers, lock, WHOIS privacy, registrant verification
POST /v1/domains/:domain/nameserversdomains:write{"nameservers":["ns1…","ns2…"]} (2–4)
POST /v1/domains/:domain/lockdomains:write{"locked":true} or false (international)
POST /v1/domains/:domain/renewdomains:write{"years":1} → price, phrase and request_id (nothing renewed yet)
POST /v1/domain-renewals/:request_id/confirmdomains:write + orders:confirm{"confirmation":"<phrase the owner typed>"} → renewal and invoice

The domain must belong to the token’s owner; otherwise 404 domain_not_found.

Fields

FieldTypeDescription
idnumberDomain ID
domainstringDomain name
statusstringActive, Pending, Pending Registration, Pending Transfer, Grace, Redemption, Expired, Cancelled, Transferred Away
registered_ondate | nullRegistration date
expires_ondate | nullExpiry date (null for a domain not registered yet)
days_until_expirynumber | nullDays until expiry; negative means expired
expiredboolean | nullWhether the expiry date has passed
next_due_datedate | nullNext renewal invoice date
period_yearsnumber | nullRegistration/renewal period in years
auto_renewboolean | nullAuto-renew; always false for cancelled/expired/transferred-away domains
typestringir (Iranian domains) or international

Errors

CodeBodyCause
401missing_token / inactive_token / invalid_audienceNo token, token expired/revoked, or issued for another resource
403insufficient_scopeToken lacks domains:read; re-authenticate and approve it
502backend_errorTemporary internal error; retry

Planned

Domain registration and renewal, transfers, WHOIS, nameserver management and .ir (IRNIC handle) management will be added later. Until then use the Hostino panel and the domain registration guide.

In MCP

The same data is available through the list_domains tool.