Provisioning an SSL Certificate

Provisioning a new certificate requires you to make a POST request to the tls endpoint

Sample Request

Replace the API_KEY with your BrandSSL token. You can get your authorization token from the settings page of your dashboard.

curl -XPOST -H "Content-type: application/json" -d '{
"domain": "www.example.com"
}' 'https://www.brandssl.io/api/{API_KEY}/tls'

If the request is successful, you will get an HTTP status 201 response.



Specifying an Endpoint

If you've set up multiple endpoints, you will need to pass the endpoint reference when provisioning an SSL certificate.

Replace the ENDPOINT_REF with your endpoint reference key. You can get your endpoint reference from the settings page of the endpoint on your dashboard.

curl -XPOST -H "Content-type: application/json" -d '{
"domain": "www.example.com", "endpoint": "{ENDPOINT_REF}"
}' 'https://www.brandssl.io/api/{API_KEY}/tls'

If the request is successful, you will get an HTTP status 201 response.