account

Register a custom hostname for this organization’s package apps (Cloudflare for SaaS).

Register a custom hostname for this organization’s package apps (Cloudflare for SaaS). App-level hostnames apply to one internet-visible public app and serve it at the host root. Org-level hostnames apply to private apps and serve them at /packages/{kodyId} on the custom host. Only org admins on a paid plan may add domains. Point DNS (usually a CNAME) at the package-app zone before verification completes. Optional ssl_method=txt pre-validates the certificate via TXT before traffic switches.

Org permission: org:write.

post/v1/orgs/package-app-custom-hostnames

Request

  • Base URL: https://api.kody.codes
  • URL: https://api.kody.codes/v1/orgs/package-app-custom-hostnames
  • Auth: HTTP bearer

Request body

hostnamestring required

Customer hostname to register.

binding_kind'app' | 'org' required

app = one public internet-visible app; org = private apps.

package_idstring

Required when binding_kind is app.

ssl_method'http' | 'txt'

Cloudflare SSL validation method. Default http. Use txt for pre-validation before switching traffic.

Response

Success.

billing_notestring nullable required

Changes

No recorded changes to this operation across all 2 revisions of this API.