Contents
Certificates
Certificates for your custom domains: managed certificates that CDNify obtains and renews for you, or your own certificates.
Examples marked as generated are built from the schema with synthetic values.
- GETList certificates
/api/v2/certificates - POSTUpload a certificate
/api/v2/certificates - POSTRequest a managed certificate
/api/v2/certificates/managed - GETGet a certificate
/api/v2/certificates/{certificate_id} - GETCertificate history
/api/v2/certificates/{certificate_id}/events - POSTRenew a managed certificate
/api/v2/certificates/{certificate_id}/renewal
/api/v2/certificatesList certificates
Returns the certificates of your organization. Filter with status (a comma-separated list).
- Authentication
- API token or portal session
- Required permission
certificates.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| status | Query | string | No |
Responses
200OKapplication/json
Fields (32)
Responses listCertificates 200 Field Type Required Rules data array<object> Yes data[].id string Yes data[].kind string Yes - One of: managed_acme, uploaded, legacy_imported, platform
data[].status string Yes - One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
data[].names array<string> Yes data[].common_name string Yes - Can be null
data[].issuer string Yes - Can be null
data[].serial_number string Yes - Can be null
data[].fingerprint_sha256 string Yes - Can be null
data[].not_before string Yes - Format: date-time
- Can be null
data[].not_after string Yes - Format: date-time
- Can be null
data[].days_left integer Yes - Can be null
data[].key_algorithm string Yes - Can be null
data[].auto_renew boolean Yes data[].ca string Yes - Can be null
data[].validation_method string Yes - One of: http-01, dns-01, dns-01-delegated
- Can be null
data[].renew_after string Yes - Format: date-time
- Can be null
data[].replaces string Yes - Can be null
data[].replaced_by string Yes - Can be null
data[].order object Yes - Can be null
data[].order.status string Yes - One of: pending, validating, issued, failed, cancelled
data[].order.attempts integer Yes data[].order.last_error_code string Yes - Can be null
data[].order.next_attempt_at string Yes - Format: date-time
- Can be null
data[].certificate_pem string No - Can be null
data[].chain_pem string No - Can be null
data[].created_at string Yes - Format: date-time
data[].updated_at string Yes - Format: date-time
data[].revoked_at string Yes - Format: date-time
- Can be null
pagination object No pagination.next_cursor string Yes - Can be null
pagination.has_more boolean Yes Example (generated from the schema) { "data": [ { "id": "id_example", "kind": "managed_acme", "status": "pending", "names": [ "string" ], "common_name": "string", "issuer": "string", "serial_number": "string", "fingerprint_sha256": "string", "not_before": "2026-01-15T10:00:00Z", "not_after": "2026-01-15T10:00:00Z", "days_left": 1, "key_algorithm": "string", "auto_renew": false, "ca": "string", "validation_method": "http-01", "renew_after": "2026-01-15T10:00:00Z", "replaces": "string", "replaced_by": "string", "order": { "status": "pending", "attempts": 1, "last_error_code": "string", "next_attempt_at": "2026-01-15T10:00:00Z" }, "certificate_pem": "string", "chain_pem": "string", "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z", "revoked_at": "2026-01-15T10:00:00Z" } ], "pagination": { "next_cursor": "string", "has_more": false } }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/certificates' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/certificatesUpload a certificate
Stores your own certificate and its private key in PEM format, leaf first and then the intermediates. The key is encrypted at rest and is never returned.
- Authentication
- API token or portal session
- Required permission
certificates.upload_key
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| certificate_pem | string | Yes | |
| private_key_pem | string | Yes |
|
| hostnames | array<string> | No |
|
| replaces | string | No |
{
"certificate_pem": "string",
"private_key_pem": "string",
"hostnames": [
"string"
],
"replaces": "string"
}Responses
201Createdapplication/json
Fields (28)
Responses uploadCertificate 201 Field Type Required Rules id string Yes kind string Yes - One of: managed_acme, uploaded, legacy_imported, platform
status string Yes - One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
names array<string> Yes common_name string Yes - Can be null
issuer string Yes - Can be null
serial_number string Yes - Can be null
fingerprint_sha256 string Yes - Can be null
not_before string Yes - Format: date-time
- Can be null
not_after string Yes - Format: date-time
- Can be null
days_left integer Yes - Can be null
key_algorithm string Yes - Can be null
auto_renew boolean Yes ca string Yes - Can be null
validation_method string Yes - One of: http-01, dns-01, dns-01-delegated
- Can be null
renew_after string Yes - Format: date-time
- Can be null
replaces string Yes - Can be null
replaced_by string Yes - Can be null
order object Yes - Can be null
order.status string Yes - One of: pending, validating, issued, failed, cancelled
order.attempts integer Yes order.last_error_code string Yes - Can be null
order.next_attempt_at string Yes - Format: date-time
- Can be null
certificate_pem string No - Can be null
chain_pem string No - Can be null
created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
revoked_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "id": "id_example", "kind": "managed_acme", "status": "pending", "names": [ "string" ], "common_name": "string", "issuer": "string", "serial_number": "string", "fingerprint_sha256": "string", "not_before": "2026-01-15T10:00:00Z", "not_after": "2026-01-15T10:00:00Z", "days_left": 1, "key_algorithm": "string", "auto_renew": false, "ca": "string", "validation_method": "http-01", "renew_after": "2026-01-15T10:00:00Z", "replaces": "string", "replaced_by": "string", "order": { "status": "pending", "attempts": 1, "last_error_code": "string", "next_attempt_at": "2026-01-15T10:00:00Z" }, "certificate_pem": "string", "chain_pem": "string", "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z", "revoked_at": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }409Conflictapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/alias_in_use", "title": "Site name already in use", "status": 409, "code": "alias_in_use", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }503Service unavailableapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/service_unavailable", "title": "Service unavailable", "status": 503, "code": "service_unavailable", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/certificates' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"certificate_pem":"string","private_key_pem":"string","hostnames":["string"],"replaces":"string"}'/api/v2/certificates/managedRequest a managed certificate
Queues a certificate that CDNify obtains through ACME for verified custom domains and renews automatically. The answer is 202 with the certificate; follow its status.
- Authentication
- API token or portal session
- Required permission
certificates.manage
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| Idempotency-Key | Header | string | No |
|
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| names | array<string> | Yes |
|
| validation_method | string | No |
|
| key_algorithm | string | No |
|
{
"names": [
"string"
],
"validation_method": "http-01",
"key_algorithm": "ecdsa-p256"
}Responses
202Acceptedapplication/json
Fields (28)
Responses requestManagedCertificate 202 Field Type Required Rules id string Yes kind string Yes - One of: managed_acme, uploaded, legacy_imported, platform
status string Yes - One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
names array<string> Yes common_name string Yes - Can be null
issuer string Yes - Can be null
serial_number string Yes - Can be null
fingerprint_sha256 string Yes - Can be null
not_before string Yes - Format: date-time
- Can be null
not_after string Yes - Format: date-time
- Can be null
days_left integer Yes - Can be null
key_algorithm string Yes - Can be null
auto_renew boolean Yes ca string Yes - Can be null
validation_method string Yes - One of: http-01, dns-01, dns-01-delegated
- Can be null
renew_after string Yes - Format: date-time
- Can be null
replaces string Yes - Can be null
replaced_by string Yes - Can be null
order object Yes - Can be null
order.status string Yes - One of: pending, validating, issued, failed, cancelled
order.attempts integer Yes order.last_error_code string Yes - Can be null
order.next_attempt_at string Yes - Format: date-time
- Can be null
certificate_pem string No - Can be null
chain_pem string No - Can be null
created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
revoked_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "id": "id_example", "kind": "managed_acme", "status": "pending", "names": [ "string" ], "common_name": "string", "issuer": "string", "serial_number": "string", "fingerprint_sha256": "string", "not_before": "2026-01-15T10:00:00Z", "not_after": "2026-01-15T10:00:00Z", "days_left": 1, "key_algorithm": "string", "auto_renew": false, "ca": "string", "validation_method": "http-01", "renew_after": "2026-01-15T10:00:00Z", "replaces": "string", "replaced_by": "string", "order": { "status": "pending", "attempts": 1, "last_error_code": "string", "next_attempt_at": "2026-01-15T10:00:00Z" }, "certificate_pem": "string", "chain_pem": "string", "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z", "revoked_at": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }409Conflictapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/alias_in_use", "title": "Site name already in use", "status": 409, "code": "alias_in_use", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }503Service unavailableapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/service_unavailable", "title": "Service unavailable", "status": 503, "code": "service_unavailable", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/certificates/managed' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"names":["string"],"validation_method":"http-01","key_algorithm":"ecdsa-p256"}'/api/v2/certificates/{certificate_id}Get a certificate
Returns one certificate with its public PEM and its open order, if there is one.
- Authentication
- API token or portal session
- Required permission
certificates.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| certificate_id | Path | string | Yes |
|
Responses
200OKapplication/json
Fields (28)
Responses getCertificate 200 Field Type Required Rules id string Yes kind string Yes - One of: managed_acme, uploaded, legacy_imported, platform
status string Yes - One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
names array<string> Yes common_name string Yes - Can be null
issuer string Yes - Can be null
serial_number string Yes - Can be null
fingerprint_sha256 string Yes - Can be null
not_before string Yes - Format: date-time
- Can be null
not_after string Yes - Format: date-time
- Can be null
days_left integer Yes - Can be null
key_algorithm string Yes - Can be null
auto_renew boolean Yes ca string Yes - Can be null
validation_method string Yes - One of: http-01, dns-01, dns-01-delegated
- Can be null
renew_after string Yes - Format: date-time
- Can be null
replaces string Yes - Can be null
replaced_by string Yes - Can be null
order object Yes - Can be null
order.status string Yes - One of: pending, validating, issued, failed, cancelled
order.attempts integer Yes order.last_error_code string Yes - Can be null
order.next_attempt_at string Yes - Format: date-time
- Can be null
certificate_pem string No - Can be null
chain_pem string No - Can be null
created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
revoked_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "id": "id_example", "kind": "managed_acme", "status": "pending", "names": [ "string" ], "common_name": "string", "issuer": "string", "serial_number": "string", "fingerprint_sha256": "string", "not_before": "2026-01-15T10:00:00Z", "not_after": "2026-01-15T10:00:00Z", "days_left": 1, "key_algorithm": "string", "auto_renew": false, "ca": "string", "validation_method": "http-01", "renew_after": "2026-01-15T10:00:00Z", "replaces": "string", "replaced_by": "string", "order": { "status": "pending", "attempts": 1, "last_error_code": "string", "next_attempt_at": "2026-01-15T10:00:00Z" }, "certificate_pem": "string", "chain_pem": "string", "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z", "revoked_at": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/certificates/crt_0a1b2c3d4e5f67890a1b2c3d4e5f6789' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/certificates/{certificate_id}/eventsCertificate history
Returns the events of a certificate, newest first.
- Authentication
- API token or portal session
- Required permission
certificates.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| certificate_id | Path | string | Yes |
|
Responses
200OKapplication/json
Fields (8)
Responses listCertificateEvents 200 Field Type Required Rules data array<object> Yes data[].type string Yes data[].occurred_at string Yes - Format: date-time
data[].data object Yes data[].data.* string No pagination object No pagination.next_cursor string Yes - Can be null
pagination.has_more boolean Yes Example (generated from the schema) { "data": [ { "type": "string", "occurred_at": "2026-01-15T10:00:00Z", "data": { "key": "string" } } ], "pagination": { "next_cursor": "string", "has_more": false } }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/certificates/crt_0a1b2c3d4e5f67890a1b2c3d4e5f6789/events' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/certificates/{certificate_id}/renewalRenew a managed certificate
Queues a new generation of a managed certificate, which replaces the current one when it is issued. Uploaded certificates are rotated by uploading a new one.
- Authentication
- API token or portal session
- Required permission
certificates.manage
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| certificate_id | Path | string | Yes |
|
| Idempotency-Key | Header | string | No |
|
Responses
202Acceptedapplication/json
Fields (28)
Responses renewCertificate 202 Field Type Required Rules id string Yes kind string Yes - One of: managed_acme, uploaded, legacy_imported, platform
status string Yes - One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
names array<string> Yes common_name string Yes - Can be null
issuer string Yes - Can be null
serial_number string Yes - Can be null
fingerprint_sha256 string Yes - Can be null
not_before string Yes - Format: date-time
- Can be null
not_after string Yes - Format: date-time
- Can be null
days_left integer Yes - Can be null
key_algorithm string Yes - Can be null
auto_renew boolean Yes ca string Yes - Can be null
validation_method string Yes - One of: http-01, dns-01, dns-01-delegated
- Can be null
renew_after string Yes - Format: date-time
- Can be null
replaces string Yes - Can be null
replaced_by string Yes - Can be null
order object Yes - Can be null
order.status string Yes - One of: pending, validating, issued, failed, cancelled
order.attempts integer Yes order.last_error_code string Yes - Can be null
order.next_attempt_at string Yes - Format: date-time
- Can be null
certificate_pem string No - Can be null
chain_pem string No - Can be null
created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
revoked_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "id": "id_example", "kind": "managed_acme", "status": "pending", "names": [ "string" ], "common_name": "string", "issuer": "string", "serial_number": "string", "fingerprint_sha256": "string", "not_before": "2026-01-15T10:00:00Z", "not_after": "2026-01-15T10:00:00Z", "days_left": 1, "key_algorithm": "string", "auto_renew": false, "ca": "string", "validation_method": "http-01", "renew_after": "2026-01-15T10:00:00Z", "replaces": "string", "replaced_by": "string", "order": { "status": "pending", "attempts": 1, "last_error_code": "string", "next_attempt_at": "2026-01-15T10:00:00Z" }, "certificate_pem": "string", "chain_pem": "string", "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z", "revoked_at": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }409Conflictapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/alias_in_use", "title": "Site name already in use", "status": 409, "code": "alias_in_use", "request_id": "req_01EXAMPLE00000000000000000" }503Service unavailableapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/service_unavailable", "title": "Service unavailable", "status": 503, "code": "service_unavailable", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/certificates/crt_0a1b2c3d4e5f67890a1b2c3d4e5f6789/renewal' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"