Get SSL status
Changed onReturns the SSL state of the website: the certificate status and provider, whether the certificate is a lifetime one managed by the platform, whether HTTP requests are redirected to HTTPS, when the certificate stops being valid and the last installation error.
installing and waiting_for_retry mean an installation is in progress. failed means the last installation gave up, or the website was not updated for 60 minutes while installing; last_error holds the reason when it is a known message, otherwise it is null. expired means the assigned certificate's validity has ended. not_installed means no certificate is assigned. Free subdomains use a platform-managed certificate: with no installation recorded they report active with provider and expires_at null.
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/hosting/v1/accounts/{username}/websites/{domain}/ssl/status
- Auth: HTTP bearer
Path parameters
Domain name
Response
Success response
Example response
{
"status": "active",
"provider": "letsencrypt",
"is_lifetime": true,
"is_https_redirect_enabled": true,
"expires_at": "2027-01-15T10:30:00Z",
"last_error": "Max attempts to retry were reached"
}Changes
- info
endpoint added
- info