Get CDN status
Returns whether the Hostinger CDN is enabled for the website domain.
Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account.
The domain must be the exact website name as listed on the account, without a www. prefix.
Returns 404 when the domain is not a website on the account.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
usernamestringRequiredExample:
u123456789domainstringRequiredExample:
Domain name
mydomain.tldResponses
200
Success response
application/json
is_enabledbooleanRequiredExample:
Whether the Hostinger CDN is enabled for the website domain
true401
Unauthenticated response
application/json
500
Error response
application/json
get/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/status
GET /api/hosting/v1/accounts/{username}/websites/{domain}/cdn/status HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"is_enabled": true
}Last updated
Was this helpful?