Skip to main content
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.

GET/api/v2/certificates

List 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

Parameters listCertificates
NameInTypeRequiredRules
statusQuerystringNo

Responses

  • 200OKapplication/json

    Fields (32)
    Responses listCertificates 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].idstringYes
    data[].kindstringYes
    • One of: managed_acme, uploaded, legacy_imported, platform
    data[].statusstringYes
    • One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
    data[].namesarray<string>Yes
    data[].common_namestringYes
    • Can be null
    data[].issuerstringYes
    • Can be null
    data[].serial_numberstringYes
    • Can be null
    data[].fingerprint_sha256stringYes
    • Can be null
    data[].not_beforestringYes
    • Format: date-time
    • Can be null
    data[].not_afterstringYes
    • Format: date-time
    • Can be null
    data[].days_leftintegerYes
    • Can be null
    data[].key_algorithmstringYes
    • Can be null
    data[].auto_renewbooleanYes
    data[].castringYes
    • Can be null
    data[].validation_methodstringYes
    • One of: http-01, dns-01, dns-01-delegated
    • Can be null
    data[].renew_afterstringYes
    • Format: date-time
    • Can be null
    data[].replacesstringYes
    • Can be null
    data[].replaced_bystringYes
    • Can be null
    data[].orderobjectYes
    • Can be null
    data[].order.statusstringYes
    • One of: pending, validating, issued, failed, cancelled
    data[].order.attemptsintegerYes
    data[].order.last_error_codestringYes
    • Can be null
    data[].order.next_attempt_atstringYes
    • Format: date-time
    • Can be null
    data[].certificate_pemstringNo
    • Can be null
    data[].chain_pemstringNo
    • Can be null
    data[].created_atstringYes
    • Format: date-time
    data[].updated_atstringYes
    • Format: date-time
    data[].revoked_atstringYes
    • Format: date-time
    • Can be null
    paginationobjectNo
    pagination.next_cursorstringYes
    • Can be null
    pagination.has_morebooleanYes
    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
curl 'https://api.cdnify.lat/api/v2/certificates' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/certificates

Upload 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

Request body uploadCertificate
FieldTypeRequiredRules
certificate_pemstringYes
private_key_pemstringYes
  • Write only, never returned
hostnamesarray<string>No
  • At most 100 items
replacesstringNo
Example (generated from the schema)
{
  "certificate_pem": "string",
  "private_key_pem": "string",
  "hostnames": [
    "string"
  ],
  "replaces": "string"
}

Responses

  • 201Createdapplication/json

    Fields (28)
    Responses uploadCertificate 201
    FieldTypeRequiredRules
    idstringYes
    kindstringYes
    • One of: managed_acme, uploaded, legacy_imported, platform
    statusstringYes
    • One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
    namesarray<string>Yes
    common_namestringYes
    • Can be null
    issuerstringYes
    • Can be null
    serial_numberstringYes
    • Can be null
    fingerprint_sha256stringYes
    • Can be null
    not_beforestringYes
    • Format: date-time
    • Can be null
    not_afterstringYes
    • Format: date-time
    • Can be null
    days_leftintegerYes
    • Can be null
    key_algorithmstringYes
    • Can be null
    auto_renewbooleanYes
    castringYes
    • Can be null
    validation_methodstringYes
    • One of: http-01, dns-01, dns-01-delegated
    • Can be null
    renew_afterstringYes
    • Format: date-time
    • Can be null
    replacesstringYes
    • Can be null
    replaced_bystringYes
    • Can be null
    orderobjectYes
    • Can be null
    order.statusstringYes
    • One of: pending, validating, issued, failed, cancelled
    order.attemptsintegerYes
    order.last_error_codestringYes
    • Can be null
    order.next_attempt_atstringYes
    • Format: date-time
    • Can be null
    certificate_pemstringNo
    • Can be null
    chain_pemstringNo
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    revoked_atstringYes
    • 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
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"}'
POST/api/v2/certificates/managed

Request 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

Parameters requestManagedCertificate
NameInTypeRequiredRules
Idempotency-KeyHeaderstringNo
  • At most 255 characters

Request body

Content types: application/json

Request body requestManagedCertificate
FieldTypeRequiredRules
namesarray<string>Yes
  • At least 1 items
  • At most 100 items
validation_methodstringNo
  • One of: http-01, dns-01, dns-01-delegated
key_algorithmstringNo
  • One of: ecdsa-p256, ecdsa-p384, rsa-2048, rsa-3072, rsa-4096
Example (generated from the schema)
{
  "names": [
    "string"
  ],
  "validation_method": "http-01",
  "key_algorithm": "ecdsa-p256"
}

Responses

  • 202Acceptedapplication/json

    Fields (28)
    Responses requestManagedCertificate 202
    FieldTypeRequiredRules
    idstringYes
    kindstringYes
    • One of: managed_acme, uploaded, legacy_imported, platform
    statusstringYes
    • One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
    namesarray<string>Yes
    common_namestringYes
    • Can be null
    issuerstringYes
    • Can be null
    serial_numberstringYes
    • Can be null
    fingerprint_sha256stringYes
    • Can be null
    not_beforestringYes
    • Format: date-time
    • Can be null
    not_afterstringYes
    • Format: date-time
    • Can be null
    days_leftintegerYes
    • Can be null
    key_algorithmstringYes
    • Can be null
    auto_renewbooleanYes
    castringYes
    • Can be null
    validation_methodstringYes
    • One of: http-01, dns-01, dns-01-delegated
    • Can be null
    renew_afterstringYes
    • Format: date-time
    • Can be null
    replacesstringYes
    • Can be null
    replaced_bystringYes
    • Can be null
    orderobjectYes
    • Can be null
    order.statusstringYes
    • One of: pending, validating, issued, failed, cancelled
    order.attemptsintegerYes
    order.last_error_codestringYes
    • Can be null
    order.next_attempt_atstringYes
    • Format: date-time
    • Can be null
    certificate_pemstringNo
    • Can be null
    chain_pemstringNo
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    revoked_atstringYes
    • 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
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"}'
GET/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

Parameters getCertificate
NameInTypeRequiredRules
certificate_idPathstringYes
  • Pattern: ^crt_[0-9a-f]{32}$

Responses

  • 200OKapplication/json

    Fields (28)
    Responses getCertificate 200
    FieldTypeRequiredRules
    idstringYes
    kindstringYes
    • One of: managed_acme, uploaded, legacy_imported, platform
    statusstringYes
    • One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
    namesarray<string>Yes
    common_namestringYes
    • Can be null
    issuerstringYes
    • Can be null
    serial_numberstringYes
    • Can be null
    fingerprint_sha256stringYes
    • Can be null
    not_beforestringYes
    • Format: date-time
    • Can be null
    not_afterstringYes
    • Format: date-time
    • Can be null
    days_leftintegerYes
    • Can be null
    key_algorithmstringYes
    • Can be null
    auto_renewbooleanYes
    castringYes
    • Can be null
    validation_methodstringYes
    • One of: http-01, dns-01, dns-01-delegated
    • Can be null
    renew_afterstringYes
    • Format: date-time
    • Can be null
    replacesstringYes
    • Can be null
    replaced_bystringYes
    • Can be null
    orderobjectYes
    • Can be null
    order.statusstringYes
    • One of: pending, validating, issued, failed, cancelled
    order.attemptsintegerYes
    order.last_error_codestringYes
    • Can be null
    order.next_attempt_atstringYes
    • Format: date-time
    • Can be null
    certificate_pemstringNo
    • Can be null
    chain_pemstringNo
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    revoked_atstringYes
    • 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
curl 'https://api.cdnify.lat/api/v2/certificates/crt_0a1b2c3d4e5f67890a1b2c3d4e5f6789' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
GET/api/v2/certificates/{certificate_id}/events

Certificate history

Returns the events of a certificate, newest first.

Authentication
API token or portal session
Required permission
certificates.read

Parameters

Parameters listCertificateEvents
NameInTypeRequiredRules
certificate_idPathstringYes
  • Pattern: ^crt_[0-9a-f]{32}$

Responses

  • 200OKapplication/json

    Fields (8)
    Responses listCertificateEvents 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].typestringYes
    data[].occurred_atstringYes
    • Format: date-time
    data[].dataobjectYes
    data[].data.*stringNo
    paginationobjectNo
    pagination.next_cursorstringYes
    • Can be null
    pagination.has_morebooleanYes
    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
curl 'https://api.cdnify.lat/api/v2/certificates/crt_0a1b2c3d4e5f67890a1b2c3d4e5f6789/events' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/certificates/{certificate_id}/renewal

Renew 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

Parameters renewCertificate
NameInTypeRequiredRules
certificate_idPathstringYes
  • Pattern: ^crt_[0-9a-f]{32}$
Idempotency-KeyHeaderstringNo
  • At most 255 characters

Responses

  • 202Acceptedapplication/json

    Fields (28)
    Responses renewCertificate 202
    FieldTypeRequiredRules
    idstringYes
    kindstringYes
    • One of: managed_acme, uploaded, legacy_imported, platform
    statusstringYes
    • One of: pending, issuing, active, expired, revoked, failed, quarantined, replaced
    namesarray<string>Yes
    common_namestringYes
    • Can be null
    issuerstringYes
    • Can be null
    serial_numberstringYes
    • Can be null
    fingerprint_sha256stringYes
    • Can be null
    not_beforestringYes
    • Format: date-time
    • Can be null
    not_afterstringYes
    • Format: date-time
    • Can be null
    days_leftintegerYes
    • Can be null
    key_algorithmstringYes
    • Can be null
    auto_renewbooleanYes
    castringYes
    • Can be null
    validation_methodstringYes
    • One of: http-01, dns-01, dns-01-delegated
    • Can be null
    renew_afterstringYes
    • Format: date-time
    • Can be null
    replacesstringYes
    • Can be null
    replaced_bystringYes
    • Can be null
    orderobjectYes
    • Can be null
    order.statusstringYes
    • One of: pending, validating, issued, failed, cancelled
    order.attemptsintegerYes
    order.last_error_codestringYes
    • Can be null
    order.next_attempt_atstringYes
    • Format: date-time
    • Can be null
    certificate_pemstringNo
    • Can be null
    chain_pemstringNo
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    revoked_atstringYes
    • 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
curl -X POST 'https://api.cdnify.lat/api/v2/certificates/crt_0a1b2c3d4e5f67890a1b2c3d4e5f6789/renewal' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"