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/domainsAuthorization: Bearer ACCESS_TOKEN| Item | Value |
|---|---|
| Required scope | domains:read |
domain (optional) | Only this domain, e.g. ?domain=example.com (www. is ignored) |
status (optional) | Filter by status, e.g. ?status=Active |
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
| Endpoint | Scope | What it does |
|---|---|---|
GET /v1/domains/check?domain= | domains:read | Availability and price (toman; 1 year and per number of years) |
GET /v1/domains/:domain/info | domains:read | Nameservers, lock, WHOIS privacy, registrant verification |
POST /v1/domains/:domain/nameservers | domains:write | {"nameservers":["ns1…","ns2…"]} (2–4) |
POST /v1/domains/:domain/lock | domains:write | {"locked":true} or false (international) |
POST /v1/domains/:domain/renew | domains:write | {"years":1} → price, phrase and request_id (nothing renewed yet) |
POST /v1/domain-renewals/:request_id/confirm | domains: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
| Field | Type | Description |
|---|---|---|
id | number | Domain ID |
domain | string | Domain name |
status | string | Active, Pending, Pending Registration, Pending Transfer, Grace, Redemption, Expired, Cancelled, Transferred Away |
registered_on | date | null | Registration date |
expires_on | date | null | Expiry date (null for a domain not registered yet) |
days_until_expiry | number | null | Days until expiry; negative means expired |
expired | boolean | null | Whether the expiry date has passed |
next_due_date | date | null | Next renewal invoice date |
period_years | number | null | Registration/renewal period in years |
auto_renew | boolean | null | Auto-renew; always false for cancelled/expired/transferred-away domains |
type | string | ir (Iranian domains) or international |
Errors
| Code | Body | Cause |
|---|---|---|
401 | missing_token / inactive_token / invalid_audience | No token, token expired/revoked, or issued for another resource |
403 | insufficient_scope | Token lacks domains:read; re-authenticate and approve it |
502 | backend_error | Temporary 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.