Contents
Custom domains and certificates
Custom domains of a resource, domain validation files and certificates.
Literal response from the frozen contract
- GETList custom domains
/api/v1/resources/{resource}/custom_domains - POSTAdd a custom domain
/api/v1/resources/{resource}/custom_domains - DELETERemove a custom domain
/api/v1/resources/{resource}/custom_domains/{hostname} - POSTPublish a domain validation file
/api/v1/resources/{resource}/custom_domains/{hostname}/certificate-domain-validation - POSTPublish a domain validation file (second variant)
/api/v1/resources/{resource}/custom_domains/{hostname}/certificate-domain-validation2 - DELETERemove a domain validation file
/api/v1/resources/{resource}/custom_domains/{hostname}/certificate-domain-validation/{md5} - POSTRequest a free certificate
/api/v1/resources/{resource}/ssl_certificate/{hostname} - PUTInstall or replace a certificate
/api/v1/resources/{resource}/ssl_certificate/{hostname}
/api/v1/resources/{resource}/custom_domainsList custom domains
Returns the custom domains of the resource.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- Rate limited
- Yes
- API v2 equivalent
- List custom domains GET /api/v2/sites/{site_id}/custom-domains
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
Responses
200OKapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (12)
Responses v1ListCustomDomains 200 Field Type Required Rules domains array<object> Yes domains[].hostname string Yes domains[].ssl string Yes - One of: custom, shared
domains[].created_at string Yes domains[].valid_to oneOf Yes domains[].valid_to.#1 any No - Can be null
domains[].valid_to.#2 object No domains[].valid_to.#2.date string Yes domains[].valid_to.#2.timezone_type integer Yes domains[].valid_to.#2.timezone string Yes domains[].ref string Yes - Can be null
domains[].certificate_validation_pending boolean Yes - Can be null
Example { "domains": [ { "hostname": "cdn.example.com", "ssl": "shared", "created_at": "2026-01-15T10:05:00+00:00", "valid_to": null, "ref": null, "certificate_validation_pending": false }, { "hostname": "static.example.com", "ssl": "custom", "created_at": "2026-01-16T09:00:00+00:00", "valid_to": { "date": "2027-01-16 00:00:00", "timezone_type": 3, "timezone": "UTC" }, "ref": "co-synthetic01", "certificate_validation_pending": false } ] }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (3)
Responses v1ListCustomDomains 404 Field Type Required Rules errors array<object> Yes - At least 1 items
errors[].code integer Yes errors[].message string Yes Example { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }429Too many requeststext/plain
Example You have reached the rate limit
curl 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/custom_domains' \
-u "$CDNIFY_API_KEY:x"/api/v1/resources/{resource}/custom_domainsAdd a custom domain
Adds a custom domain to the resource, optionally with your own certificate and private key.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- Rate limited
- Yes
- API v2 equivalent
- Add a custom domain POST /api/v2/sites/{site_id}/custom-domains
- Upload a certificate POST /api/v2/certificates
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
Request body
Content types: application/x-www-form-urlencoded, application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| hostname | string | Yes | |
| certificates | object | No | |
| certificates.privateKey | string | Yes | |
| certificates.certificate | string | Yes |
{
"hostname": "cdn.example.com"
}Responses
200OKapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (1)
Responses v1CreateCustomDomain 200 Field Type Required Rules message string Yes Example { "message": "This custom domain is already in use." }201Createdapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (2)
Responses v1CreateCustomDomain 201 Field Type Required Rules message string Yes id integer Yes Example { "message": "Successfully added custom domain. To make it work, edit your DNS record for this domain and create a CNAME record pointing to example.a.cdnify.io", "id": 1234 }400Bad requestapplication/json
Fields (3)
Responses v1CreateCustomDomain 400 Field Type Required Rules errors object Yes errors.code integer No errors.message string Yes Example { "errors": { "message": "certificates must be an array" } }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (3)
Responses v1CreateCustomDomain 404 Field Type Required Rules errors array<object> Yes - At least 1 items
errors[].code integer Yes errors[].message string Yes Example { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }422Unprocessable contentapplication/json
Fields (1)
Responses v1CreateCustomDomain 422 Field Type Required Rules message string Yes Example: missing_hostname { "message": "The required option \"hostname\" is missing." }Example: cert_expired { "message": "This certificate is out of date" }Example: cert_invalid { "message": "Not a valid certificate" }Example: cert_key_mismatch { "message": "The certificate and key do not match or the private key contains a passphrase" }Example: cert_wrong_cn { "message": "This certificate is not linked to this domain. This is the certificate for other.example.com" }429Too many requeststext/plain
Example You have reached the rate limit
curl -X POST 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/custom_domains' \
-u "$CDNIFY_API_KEY:x" \
--data-urlencode 'hostname=cdn.example.com'/api/v1/resources/{resource}/custom_domains/{hostname}Remove a custom domain
Removes a custom domain from the resource.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Same contract, with a defect corrected
- Rate limited
- Yes
- API v2 equivalent
- Remove a custom domain DELETE /api/v2/sites/{site_id}/custom-domains/{domain_id}
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
| hostname | Path | string | Yes |
Responses
204No content
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (8)
Responses v1DeleteCustomDomain 404 Field Type Required Rules #1 object No #1.errors array<object> Yes - At least 1 items
#1.errors[].code integer Yes #1.errors[].message string Yes #2 object No #2.errors object Yes #2.errors.code integer No #2.errors.message string Yes Example: domain { "errors": { "message": "Custom domain cdn.example.com does not exist" } }Example: resource { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }429Too many requeststext/plain
Example You have reached the rate limit500Internal server errortext/html
curl -X DELETE 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/custom_domains/cdn.example.com' \
-u "$CDNIFY_API_KEY:x"/api/v1/resources/{resource}/custom_domains/{hostname}/certificate-domain-validationPublish a domain validation file
Publishes on the edge the HTTP file that proves control of the domain for a certificate signing request (CSR) of your own.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Same contract, with a defect corrected
- Rate limited
- Yes
- API v2 equivalent
- Request a managed certificate POST /api/v2/certificates/managed
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
| hostname | Path | string | Yes |
Request body
Content types: application/x-www-form-urlencoded, application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| csr | string | Yes |
{
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nSYNTHETIC\n-----END CERTIFICATE REQUEST-----"
}Responses
201Createdapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (5)
Responses v1CreateCdv 201 Field Type Required Rules success object Yes success.message string Yes success.md5 string No - Pattern: ^[0-9A-F]{32}$
success.sha256 string No - Pattern: ^[0-9A-F]{64}$
success.unique_token string No - Pattern: ^[0-9a-f]{20}$
Example { "success": { "message": "The Certificate Domain Validation procedure has run successfully.", "md5": "0123456789ABCDEF0123456789ABCDEF", "sha256": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF", "unique_token": "0a1b2c3d4e5f6a7b8c9d" } }400Bad requestapplication/json
Fields (8)
Responses v1CreateCdv 400 Field Type Required Rules #1 object No #1.message string Yes #2 object No #2.error object Yes #2.error.message string Yes #2.error.md5 string No - Pattern: ^[0-9A-F]{32}$
#2.error.sha256 string No - Pattern: ^[0-9A-F]{64}$
#2.error.unique_token string No - Pattern: ^[0-9a-f]{20}$
Example: missing_csr { "message": "The required option \"csr\" is missing." }Example: not_pointing { "error": { "message": "hostname does not point to CDNify.com or does not belong to the specific resource" } }Example: pop_failure { "error": { "message": "Errors have been encountered during the Certificate Domain Validation procedure. Please provide the following code to our support team (support@cdnify.com): c3ludGhldGljLWNvZGU=", "md5": "0123456789ABCDEF0123456789ABCDEF", "sha256": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF", "unique_token": "0a1b2c3d4e5f6a7b8c9d" } }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (3)
Responses v1CreateCdv 404 Field Type Required Rules errors array<object> Yes - At least 1 items
errors[].code integer Yes errors[].message string Yes Example { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }429Too many requeststext/plain
Example You have reached the rate limit
curl -X POST 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/custom_domains/cdn.example.com/certificate-domain-validation' \
-u "$CDNIFY_API_KEY:x" \
--data-urlencode 'csr=-----BEGIN CERTIFICATE REQUEST-----
SYNTHETIC
-----END CERTIFICATE REQUEST-----'/api/v1/resources/{resource}/custom_domains/{hostname}/certificate-domain-validation2Publish a domain validation file (second variant)
Second variant of the previous route, kept for compatibility.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Same contract, with a defect corrected
- Rate limited
- Yes
- API v2 equivalent
- Request a managed certificate POST /api/v2/certificates/managed
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
| hostname | Path | string | Yes |
Request body
Content types: application/x-www-form-urlencoded, application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| csr | string | Yes |
{
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nSYNTHETIC\n-----END CERTIFICATE REQUEST-----"
}Responses
201Createdapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (5)
Responses v1CreateCdv2 201 Field Type Required Rules success object Yes success.message string Yes success.md5 string No - Pattern: ^[0-9A-F]{32}$
success.sha256 string No - Pattern: ^[0-9A-F]{64}$
success.unique_token string No - Pattern: ^[0-9a-f]{20}$
Example { "success": { "message": "The Certificate Domain Validation procedure has run successfully.", "md5": "0123456789ABCDEF0123456789ABCDEF", "sha256": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF", "unique_token": "0a1b2c3d4e5f6a7b8c9d" } }400Bad requestapplication/json
Fields (8)
Responses v1CreateCdv2 400 Field Type Required Rules #1 object No #1.message string Yes #2 object No #2.error object Yes #2.error.message string Yes #2.error.md5 string No - Pattern: ^[0-9A-F]{32}$
#2.error.sha256 string No - Pattern: ^[0-9A-F]{64}$
#2.error.unique_token string No - Pattern: ^[0-9a-f]{20}$
Example: missing_csr { "message": "The required option \"csr\" is missing." }Example: not_pointing { "error": { "message": "hostname does not point to CDNify.com or does not belong to the specific resource" } }Example: pop_failure { "error": { "message": "Errors have been encountered during the Certificate Domain Validation procedure. Please provide the following code to our support team (support@cdnify.com): c3ludGhldGljLWNvZGU=", "md5": "0123456789ABCDEF0123456789ABCDEF", "sha256": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF", "unique_token": "0a1b2c3d4e5f6a7b8c9d" } }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (3)
Responses v1CreateCdv2 404 Field Type Required Rules errors array<object> Yes - At least 1 items
errors[].code integer Yes errors[].message string Yes Example { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }429Too many requeststext/plain
Example You have reached the rate limit
curl -X POST 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/custom_domains/cdn.example.com/certificate-domain-validation2' \
-u "$CDNIFY_API_KEY:x" \
--data-urlencode 'csr=-----BEGIN CERTIFICATE REQUEST-----
SYNTHETIC
-----END CERTIFICATE REQUEST-----'/api/v1/resources/{resource}/custom_domains/{hostname}/certificate-domain-validation/{md5}Remove a domain validation file
Removes the validation file from the edge.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Same contract, with a defect corrected
- Rate limited
- Yes
- API v2 equivalent
- No API v2 equivalent
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
| hostname | Path | string | Yes | |
| md5 | Path | string | Yes |
|
Responses
204No content
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
400Bad requestapplication/json
Fields (5)
Responses v1DeleteCdv 400 Field Type Required Rules error object Yes error.message string Yes error.md5 string No - Pattern: ^[0-9A-F]{32}$
error.sha256 string No - Pattern: ^[0-9A-F]{64}$
error.unique_token string No - Pattern: ^[0-9a-f]{20}$
Example: not_pointing { "error": { "message": "hostname does not point to CDNify.com or does not belong to the specific resource" } }Example: pop_failure { "error": { "message": "Errors have been encountered during the Certificate Domain Validation procedure. Please provide the following code to our support team (support@cdnify.com): c3ludGhldGljLWNvZGU=" } }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (3)
Responses v1DeleteCdv 404 Field Type Required Rules errors array<object> Yes - At least 1 items
errors[].code integer Yes errors[].message string Yes Example { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }429Too many requeststext/plain
Example You have reached the rate limit
curl -X DELETE 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/custom_domains/cdn.example.com/certificate-domain-validation/0123456789ABCDEF0123456789ABCDEF' \
-u "$CDNIFY_API_KEY:x"/api/v1/resources/{resource}/ssl_certificate/{hostname}Request a free certificate
Asks for a certificate for a custom domain of the resource.
Automatic issuance through this route is not available by default: after the domain checks it answers 503. Use the managed certificates of the API v2.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Behaviour changed for safety or pending a decision
- Rate limited
- Yes
- API v2 equivalent
- Request a managed certificate POST /api/v2/certificates/managed
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
| hostname | Path | string | Yes |
Request body
Content types: application/x-www-form-urlencoded, application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| is_test | boolean | string | integer | No |
{}Responses
200OKapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (2)
Responses v1RequestFreeCertificate 200 Field Type Required Rules md5 string Yes message object | array | string Yes - Can be null
Example { "md5": "0123456789ABCDEF0123456789ABCDEF", "message": { "ref": "co-synthetic01", "order_status": "validating" } }400Bad requestapplication/json
Fields (5)
Responses v1RequestFreeCertificate 400 Field Type Required Rules error object Yes error.message string Yes error.md5 string No - Pattern: ^[0-9A-F]{32}$
error.sha256 string No - Pattern: ^[0-9A-F]{64}$
error.unique_token string No - Pattern: ^[0-9a-f]{20}$
Example: not_pointing { "error": { "message": "hostname does not point to CDNify.com or does not belong to the specific resource" } }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (10)
Responses v1RequestFreeCertificate 404 Field Type Required Rules #1 object No #1.errors array<object> Yes - At least 1 items
#1.errors[].code integer Yes #1.errors[].message string Yes #2 object No #2.error object Yes #2.error.message string Yes #2.error.md5 string No - Pattern: ^[0-9A-F]{32}$
#2.error.sha256 string No - Pattern: ^[0-9A-F]{64}$
#2.error.unique_token string No - Pattern: ^[0-9a-f]{20}$
Example: domain { "error": { "message": "Invalid custom domain" } }Example: resource { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }429Too many requeststext/plain
Example You have reached the rate limit
curl -X POST 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/ssl_certificate/cdn.example.com' \
-u "$CDNIFY_API_KEY:x"/api/v1/resources/{resource}/ssl_certificate/{hostname}Install or replace a certificate
Installs or replaces your own certificate and private key on a custom domain.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Same contract, with a defect corrected
- Rate limited
- Yes
- API v2 equivalent
- Upload a certificate POST /api/v2/certificates
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| resource | Path | string | Yes |
|
| hostname | Path | string | Yes |
Request body
Content types: application/x-www-form-urlencoded, application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| privateKey | string | Yes | |
| certificate | string | Yes |
{
"privateKey": "-----BEGIN PRIVATE KEY-----\nSYNTHETIC\n-----END PRIVATE KEY-----",
"certificate": "-----BEGIN CERTIFICATE-----\nSYNTHETIC\n-----END CERTIFICATE-----"
}Responses
200OKapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (2)
Responses v1ChangeCertificate 200 Field Type Required Rules message string Yes validTo string Yes - Pattern: ^\d{4}-\d{2}-\d{2}$
Example { "message": "SSL certificate changed for domain cdn.example.com", "validTo": "2027-01-15" }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (12)
Responses v1ChangeCertificate 404 Field Type Required Rules #1 object No #1.errors array<object> Yes - At least 1 items
#1.errors[].code integer Yes #1.errors[].message string Yes #2 object No #2.error object Yes #2.error.message string Yes #2.error.md5 string No - Pattern: ^[0-9A-F]{32}$
#2.error.sha256 string No - Pattern: ^[0-9A-F]{64}$
#2.error.unique_token string No - Pattern: ^[0-9a-f]{20}$
#3 object No #3.message string Yes Example: domain { "error": { "message": "Invalid custom domain" } }Example: resource { "errors": [ { "code": 404, "message": "HTTP: Failed to find resource" } ] }Example: cert_invalid { "message": "Not a valid certificate" }Example: cert_key_mismatch { "message": "The certificate and key do not match or the private key contains a passphrase" }429Too many requeststext/plain
Example You have reached the rate limit
curl -X PUT 'https://api.cdnify.lat/api/v1/resources/a1b2c3d/ssl_certificate/cdn.example.com' \
-u "$CDNIFY_API_KEY:x" \
--data-urlencode 'privateKey=-----BEGIN PRIVATE KEY-----
SYNTHETIC
-----END PRIVATE KEY-----' \
--data-urlencode 'certificate=-----BEGIN CERTIFICATE-----
SYNTHETIC
-----END CERTIFICATE-----'