Generate a free subdomain
Generate a unique free subdomain that can be used for hosting services without purchasing custom domains.
Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
Authorizations
AuthorizationstringRequired
API Token authentication
Responses
200
Success response
application/json
domainstringOptionalExample:
Generated free subdomain
palegreen-fox-548498.hostingersite.com401
Unauthenticated response
application/json
500
Error response
application/json
post/api/hosting/v1/domains/free-subdomains
POST /api/hosting/v1/domains/free-subdomains HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"domain": "palegreen-fox-548498.hostingersite.com"
}Last updated
Was this helpful?