Get website SSL status
Returns the SSL state of one domain of an Agency Plan website: the certificate status, whether the certificate was uploaded by the customer, and when it stops being valid.
Returns the SSL state of one domain of an Agency Plan website: the certificate status,
whether the certificate was uploaded by the customer, and when it stops being valid.
installing means a certificate setup is running or retrying; the ssl_setup entry of
List website processes shows the same progress. active means a valid certificate is in
place: uploaded by the customer, issued by the platform, or a lifetime certificate bought for
the domain. failed means the last setup gave up and no valid certificate is in place.
expired means the certificate has run out. not_installed means the domain has no
certificate and no setup process. Returns 404 when the website or the domain does not exist.
API Token authentication
Agency Plan website UID
zpwlGlp19Domain name
mydomain.tldSuccess response
installing while a certificate setup is running or retrying, active when a valid
certificate is in place (uploaded, platform-issued, or a lifetime certificate bought for
the domain), failed when the last setup gave up and no valid certificate is in place,
expired when the certificate has run out, not_installed when the domain has no
certificate and no setup process.
activePossible values: Whether the certificate was uploaded by the customer instead of issued or sold by the platform.
falseEnd of the validity period of the certificate in place; null when there is none or the uploaded certificate carries no expiry.
2027-01-15T10:30:00ZUnauthenticated response
Error response
GET /api/agency-hosting/v1/websites/{website_uid}/domains/{domain}/ssl/status HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": "active",
"is_custom": false,
"expires_at": "2027-01-15T10:30:00Z"
}Last updated
Was this helpful?