Install SSL
Requests a lifetime SSL certificate for the website.
Requests a lifetime SSL certificate for the website. The installation runs in the background;
Get SSL status reports active or failed when it ends. An active lifetime certificate
does not block the request: a new installation is requested, which is how a certificate is
reinstalled.
Returns 422 for free subdomains (their certificate is managed by the platform), while an
installation is installing or waiting_for_retry, when the website's certificate was
revoked (it cannot be reissued), and when an uploaded custom certificate is installed; that
one has to be uninstalled first.
API Token authentication
u123456789Domain name
mydomain.tldSuccess empty response
Request acceptedUnauthenticated response
Validation error response
Error response
POST /api/hosting/v1/accounts/{username}/websites/{domain}/ssl/setup HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"message": "Request accepted"
}Last updated
Was this helpful?