Project Phil Documentation
Sign in

Independent License System

The Independent License System API lets you manage license keys, view their logs and check whether a license is authorised.

Details

  • Base URLstring
    https://api.example.com
  • Authenticationstring
    x-api-key: YOUR_API_KEY

Endpoints

  • Authentication — Every /api/keys request must include your API key in the x-api-key HTTP header. The key is sent as a request header, not in the request body.
  • GET Get All License Keys — v1.0 /api/keys Returns an array of all license keys in the database.
  • GET Get Single License Key — v1.0 /api/keys/{key} Returns an object with the requested key information.
  • GET Get Single License Key Logs — v1.0 /api/keys/{key}/logs Returns all license logs in an array.
  • POST Check License Key Authorisation — v1.0 /api/check The API returns a JSON response indicating whether the license is valid.
  • POST Create License Key — v1.0 /api/keys Creates a license key with the desired information. New keys are created with locked: true.
  • PUT Update License Key — v1.0 /api/keys/{key} Updates an existing license key details. Content defaults to existing data if not provided in the body. Returns updated key object.
  • DELETE Delete License Key — v1.0 /api/keys/{key} Deletes the desired license key and its logs. Returns the last license object before deletion.
  • PUT Regenerate License — v1.0 /api/keys/{key}/regen Generates a new license key for the license and moves its logs to the new key. The old key stops working immediately. No request body is needed.
Written by !RAB Last updated 1 Dec 2026 1 min read

Discussion 0

No comments yet. Sign in with Discord to start the conversation.