Skip to main content
Version: 1.0.0

Code Heaven Developer API

Server-to-server API for Code Heaven plugin/theme vendors to validate and manage developer licenses, control per-domain activations, check for product updates, and obtain short-lived signed package download URLs.

Authentication

All requests authenticate with a vendor server-to-server API key passed in the X-CH-Vendor-Key request header. This is the vendor (developer) credential and is distinct from the buyer-facing OAuth flow. Keep this key secret and never expose it in client-side code or end-user browsers.

Errors

Error responses share a common envelope:

{ "error": { "code": "license_invalid", "message": "The license key is not valid." } }
HTTPcodeMeaning
400invalid_requestMalformed or missing request parameters.
401(unauthorized)Missing or invalid vendor API key.
403license_invalidLicense is not valid for this operation.
403expiredLicense has expired.
403domain_not_activatedDomain is not activated for this license.
404not_foundLicense or resource does not exist.
409seat_limit_exceededActivation would exceed the seat limit.
429rate_limitedToo many requests; retry later.

Authentication

Vendor server-to-server API key. Distinct from the buyer OAuth flow.

Security Scheme Type:

apiKey

Header parameter name:

X-CH-Vendor-Key

Contact

Code Heaven Developer Support:

URL: https://code-heaven.com/developers