License keys

Some products come with a license key. After buying such a product you can generate your key under Downloads. The key is bound to your purchase: if the order is refunded or charged back, the key stops working.

For vendors: verifying keys

Your plugin can verify a key with a GET request:

https://chunkfactory.com/public-api/v1/license?pid=PRODUCT_ID&key=LICENSE_KEY&address=SERVER_ADDRESS

Response if the key is valid:

{"valid": true, "license": {"license_id": 123, "product_id": 1, "user_id": 42, "username": "Buyer", "created": "2026-10-10T18:17:41Z", "has_downloaded": true, "license_address": "play.example.net"}, "address_match": true}

Otherwise {"valid": false, "error": {"code": "license_not_found", …}}. address is optional; address_match compares it with the server address the buyer entered before downloading.

The old URL https://api.chunkfactory.com/?pid=&key= keeps working. More endpoints are described in the API documentation.