Skip to main content
Contents

Provider callbacks

Routes called by payment providers, the certificate authority and the former Files server, not by customers. They are listed so that no route of the previous platform goes undocumented.

Literal response from the frozen contract

POST/api/v1/resources/{resource}/SSL_com_hook/{hostname}

Certificate authority callback

Callback through which the certificate authority delivered issued certificates on the previous platform.

It answers 410 Gone by default: certificate orders of CDNify use their own callbacks.

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
No API v2 equivalent

Parameters

Parameters v1SslComCertificateCallback
NameInTypeRequiredRules
resourcePathstringYes
  • Pattern: ^[a-z0-9]{7}$
hostnamePathstringYes

Request body

Content types: application/x-www-form-urlencoded, application/json

Request body v1SslComCertificateCallback
FieldTypeRequiredRules
certificate_hookstringYes
md5stringYes
Example
{
  "certificate_hook": "{\"certificates\":\"-----BEGIN CERTIFICATE-----\\nSYNTHETIC\\n-----END CERTIFICATE-----\"}",
  "md5": "0123456789ABCDEF0123456789ABCDEF"
}

Responses

  • 200OKapplication/json

    Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800

    Fields (2)
    Responses v1SslComCertificateCallback 200
    FieldTypeRequiredRules
    messagestringYes
    validTostringYes
    • Pattern: ^\d{4}-\d{2}-\d{2}$
    Example
    {
      "message": "SSL certificate changed for domain cdn.example.com",
      "validTo": "2027-01-15"
    }
  • 400Bad requestapplication/json

    Fields (8)
    Responses v1SslComCertificateCallback 400
    FieldTypeRequiredRules
    #1objectNo
    #1.messagestringYes
    #2objectNo
    #2.errorobjectYes
    #2.error.messagestringYes
    #2.error.md5stringNo
    • Pattern: ^[0-9A-F]{32}$
    #2.error.sha256stringNo
    • Pattern: ^[0-9A-F]{64}$
    #2.error.unique_tokenstringNo
    • Pattern: ^[0-9a-f]{20}$
    Example: missing
    {
      "message": "The required options \"certificate_hook\", \"md5\" are missing."
    }
  • 401Unauthorized

    Headers: WWW-Authenticate: Basic realm="Secured Area"

  • 404Not foundapplication/json

    Fields (12)
    Responses v1SslComCertificateCallback 404
    FieldTypeRequiredRules
    #1objectNo
    #1.errorsarray<object>Yes
    • At least 1 items
    #1.errors[].codeintegerYes
    #1.errors[].messagestringYes
    #2objectNo
    #2.errorobjectYes
    #2.error.messagestringYes
    #2.error.md5stringNo
    • Pattern: ^[0-9A-F]{32}$
    #2.error.sha256stringNo
    • Pattern: ^[0-9A-F]{64}$
    #2.error.unique_tokenstringNo
    • Pattern: ^[0-9a-f]{20}$
    #3objectNo
    #3.messagestringYes
    Example: domain
    {
      "error": {
        "message": "Invalid custom domain"
      }
    }
  • 429Too many requeststext/plain

    Example
    You have reached the rate limit

Called by a third party, not by customers. There is no curl example.

POST/_chargify/webhook

Chargify notifications

Notifications of the former Chargify billing integration.

It answers 410 Gone by default: Chargify is no longer used.

Authentication
Signature of the provider
Host
https://api.cdnify.lat
In CDNify
Behaviour changed for safety or pending a decision
API v2 equivalent
No API v2 equivalent

Request body

Content types: application/x-www-form-urlencoded

Request body hookChargify
FieldTypeRequiredRules
idstringNo
eventstringNo
payloadobjectNo
Example
{
  "id": "1001",
  "event": "payment_success",
  "payload": {
    "subscription": {
      "id": "2002"
    }
  }
}

Responses

  • 200OKapplication/json

    Example
    [
      ""
    ]
  • 400Bad requestapplication/json

    Example
    [
      ""
    ]

Called by a third party, not by customers. There is no curl example.

POST/_cg/hook

CheddarGetter notifications

Notifications of the payment provider, verified with its token and its signature.

Authentication
Signature of the provider
Host
https://api.cdnify.lat
In CDNify
Same behaviour as before
API v2 equivalent
No API v2 equivalent

Request body

Content types: application/x-www-form-urlencoded

Request body hookCheddarGetter
FieldTypeRequiredRules
activityTypestringNo
productobjectYes
product.idstringYes
customerobjectNo
Example
{
  "activityType": "subscriptionChanged",
  "product": {
    "id": "synthetic-product"
  },
  "customer": {
    "id": "synthetic-customer",
    "code": "u0a1b2c3d4"
  }
}

Responses

  • 200OKapplication/json

    Example
    [
      ""
    ]
  • 400Bad requestapplication/json

    Example: method
    [
      "Method should be POST"
    ]
    Example: malformed
    [
      "Malformed request"
    ]
    Example: token
    [
      "Missing token or token missmatch"
    ]
    Example: signature
    [
      "Invalid request signature"
    ]

Called by a third party, not by customers. There is no curl example.

POST/_cg/paypal_signup/{plan}

Start of a PayPal sign-up

Browser step of a sign-up paid with PayPal. It now redirects to the customer portal.

Authentication
None
Host
https://api.cdnify.lat
In CDNify
Behaviour changed for safety or pending a decision
API v2 equivalent
No API v2 equivalent

Parameters

Parameters hookPaypalSignupStart
NameInTypeRequiredRules
planPathstringYes

Request body

Content types: application/x-www-form-urlencoded

Request body hookPaypalSignupStart
FieldTypeRequiredRules
signupobjectNo
signup.customerobjectNo
signup.customer.referencestringNo
Example
{
  "signup": {
    "customer": {
      "reference": "u0a1b2c3d4"
    }
  }
}

Responses

  • 302Found (redirect)

    Headers: Location

Called by a third party, not by customers. There is no curl example.

GET/_cg/paypal_signup

Return from a PayPal sign-up

Browser return after a PayPal sign-up. It now redirects to the customer portal.

Authentication
None
Host
https://api.cdnify.lat
In CDNify
Same contract, with a defect corrected
API v2 equivalent
No API v2 equivalent

Responses

  • 200OKtext/html

Called by a third party, not by customers. There is no curl example.

GET/_cg/paypal_cancelled

Cancelled PayPal sign-up

Browser return after a cancelled PayPal sign-up. It now redirects to the customer portal.

Authentication
None
Host
https://api.cdnify.lat
In CDNify
Same contract, with a defect corrected
API v2 equivalent
No API v2 equivalent

Responses

  • 200OKtext/html

Called by a third party, not by customers. There is no curl example.

POST/_files/webhook/sync

Files storage usage

Storage usage reported by the former Files server.

It answers 410 Gone: the Files server is no longer part of CDNify.

Authentication
Signature of the provider
Host
https://api.cdnify.lat
In CDNify
Behaviour changed for safety or pending a decision
API v2 equivalent
No API v2 equivalent

Request body

Content types: application/json

Request body hookFilesUsageSync
FieldTypeRequiredRules
[].userstringYes
[].usagenumberYes
Example
[
  {
    "user": "u0a1b2c3d4",
    "usage": 1048576
  }
]

Responses

  • 200OKapplication/json

    Example
    []
  • 403Forbiddenapplication/json

    Example
    [
      "X header is incorrect"
    ]

Called by a third party, not by customers. There is no curl example.

POST/_files/webhook/files_sync

Files changes

File additions and removals reported by the former Files server.

It answers 410 Gone: the Files server is no longer part of CDNify.

Authentication
None
Host
https://api.cdnify.lat
In CDNify
Behaviour changed for safety or pending a decision
API v2 equivalent
No API v2 equivalent

Request body

Content types: application/json

Request body hookFilesFileSync
FieldTypeRequiredRules
eventstringNo
  • One of: file.uploaded, file.deleted
*objectNo
*.idanyYes
*.user_idanyYes
*.resource_idanyYes
*.nameanyYes
*.pathanyYes
*.sizeanyYes
*.typeanyYes
*.date_uploadedanyYes
Example
{
  "0": {
    "id": 1,
    "user_id": "u0a1b2c3d4",
    "resource_id": "a1b2c3d",
    "name": "logo.png",
    "path": "/img",
    "size": 2048,
    "type": "image/png",
    "date_uploaded": "2026-01-15 10:00:00"
  },
  "event": "file.uploaded"
}

Responses

  • 200OKapplication/json

    Fields (1)
    Responses hookFilesFileSync 200
    FieldTypeRequiredRules
    messagestringYes
    Example
    {
      "message": "Count = 1, Error count = 0"
    }
  • 400Bad requestapplication/json

    Fields (1)
    Responses hookFilesFileSync 400
    FieldTypeRequiredRules
    messagestringYes
    Example: not_json
    {
      "message": "Content is not json"
    }
    Example: malformed
    {
      "message": "Malformed request"
    }
    Example: file
    {
      "message": "Unable to process file"
    }

Called by a third party, not by customers. There is no curl example.

POST/_files/webhook/migration/result

Files migration result

Result of a user migration reported by the former Files server.

It answers 410 Gone: the Files server is no longer part of CDNify.

Authentication
None
Host
https://api.cdnify.lat
In CDNify
Behaviour changed for safety or pending a decision
API v2 equivalent
No API v2 equivalent

Request body

Content types: application/json

Request body hookFilesMigrationResult
FieldTypeRequiredRules
successbooleanYes
useranyYes
current_serverstringYes
migration_serverstringYes
Example
{
  "success": true,
  "user": 1,
  "current_server": "files1.example.net",
  "migration_server": "files2.example.net"
}

Responses

  • 200OKapplication/json

    Example
    {}
  • 400Bad requestapplication/json

    Fields (1)
    Responses hookFilesMigrationResult 400
    FieldTypeRequiredRules
    messagestringYes
    Example
    {
      "message": "Content is not json"
    }

Called by a third party, not by customers. There is no curl example.

GET/_files/hello/{name}

Files sample page

Sample page left over by the Files component.

It answers 410 Gone.

Authentication
None
Host
https://api.cdnify.lat
In CDNify
Behaviour changed for safety or pending a decision
API v2 equivalent
No API v2 equivalent

Parameters

Parameters hookFilesHello
NameInTypeRequiredRules
namePathstringYes

Responses

  • 200OKtext/html

Called by a third party, not by customers. There is no curl example.