Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234_abcdef

Body

application/json
name
string
required

SSL certificate name.

It must be unique.

Example:

"Example 1"

sslCertificate
string
required

Public part of the SSL certificate.

All chain of the SSL certificate should be added.

Example:

"-----BEGIN CERTIFICATE-----\nMIIBbDCCAROgAwIBAgIUQJOOtM8WkOwi9fIMzL0RQttr/JQwCgYIKoZIzj0EAwIw\nKjETMBEGA1UECgwKRXhhbXBsZSBDQTETMBEGA1UEAwwKRXhhbXBsZSBDQTAeFw0y\nNjAxMDEwMDAwMDBaFw0yNzAxMDEwMDAwMDBaMBYxFDASBgNVBAMMC2V4YW1wbGUu\nY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEFPjFz3rezjBUAKZXDcGcZKwl\npcCQmREWxCDWDh1D1PnWoEGmg/eaTpi0j2XsyLeLZYqwkxwcXobnic3cHo4kRKMr\nMCkwJwYDVR0RBCAwHoILZXhhbXBsZS5jb22CD3d3dy5leGFtcGxlLmNvbTAKBggq\nhkjOPQQDAgNHADBEAiALUtTb/Vd2mJb0Ig36VkIpWej3Ufux/EBCY7BNdDNQ4gIg\nfxZsfN96JxEXETedb1Grr1f/6GYPxUnGkKB4Rjj9aTc=\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIBbTCCARKgAwIBAgIULDeBmErpf2HbicPq8M/WK6fUZxEwCgYIKoZIzj0EAwIw\nKjETMBEGA1UECgwKRXhhbXBsZSBDQTETMBEGA1UEAwwKRXhhbXBsZSBDQTAeFw0y\nNjAxMDEwMDAwMDBaFw0zNjAxMDEwMDAwMDBaMCoxEzARBgNVBAoMCkV4YW1wbGUg\nQ0ExEzARBgNVBAMMCkV4YW1wbGUgQ0EwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNC\nAATdtaj2FA1AUBTNxVPfCeuuJWY6D1SQTtCNT3vbakavfJu+QISYQcc0Tbtudl5s\nv6mQPTiVlKOzi5NSWYn9F8YwoxYwFDASBgNVHRMBAf8ECDAGAQH/AgEAMAoGCCqG\nSM49BAMCA0kAMEYCIQD4GWDCyoYDx48b49W/R6ox5K2Dx37otAqQCSeB96moHAIh\nAKAUFyIRFL4HQ1Y3jEELs8TvC2554gcPQKitr0S0wM1g\n-----END CERTIFICATE-----\n"

sslPrivateKey
string
required

Private key of the SSL certificate.

Example:

"-----BEGIN PRIVATE KEY-----\nMIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQguJC0fwVmXvhkj9fY\nCTAWhTxcAv4/tcUV+7Qhbvac5WGhRANCAAQU+MXPet7OMFQAplcNwZxkrCWlwJCZ\nERbEINYOHUPU+dagQaaD95pOmLSPZezIt4tlirCTHBxehueJzdwejiRE\n-----END PRIVATE KEY-----\n"

validate_root_ca
boolean
default:false

Defines whether to check the SSL certificate for a signature from a trusted certificate authority.

Possible values:

  • true - SSL certificate must be verified to be signed by a trusted certificate authority.
  • false - SSL certificate will not be verified to be signed by a trusted certificate authority.
Example:

true

automated
enum<boolean>
default:false

Must be false or omitted for a certificate you upload.

Available options:
false

Response

201 - application/json

Successful.

id
integer

SSL certificate ID.

Example:

42

deleted
boolean
deprecated

Defines whether the certificate has been deleted.

Possible values:

  • true - Certificate has been deleted.
  • false - Certificate has not been deleted.
Example:

false

cert_issuer
string | null

Name of the certification center issued the SSL certificate.

Example:

"Example CA"

cert_subject_cn
string | null

Domain name that the SSL certificate secures.

Example:

"example.com"

cert_subject_alt
string | null

Alternative domain names that the SSL certificate secures.

Example:

"DNS:example.com,DNS:www.example.com"

validity_not_before
string<date-time> | null

Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)

Example:

"2026-01-01T00:00:00Z"

validity_not_after
string<date-time> | null

Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)

Example:

"2027-01-01T00:00:00Z"

sslCertificateChain
string | null

Parameter is deprecated.

Defines whether the SSL certificate is used by a CDN resource or an alias.

Possible values:

  • true - Certificate is used by a CDN resource or an alias.
  • false - Certificate is not used by a CDN resource or an alias.
Example:

true

name
string

SSL certificate name.

Example:

"Example 1"

automated
boolean

How the SSL certificate was issued.

Possible values:

  • true - Certificate was issued automatically.
  • false - Certificate was added by a user.
Example:

false