Create License Key

Added in v1.0
POST https://api.example.com/api/keys
Requires authentication: X-API-Key: YOUR_API_KEY

Creates a license key with the desired information.

Body parameters

  • uid string required
    Example: 123
  • pid integer required
    Example: 123
  • ip string optional
  • status boolean optional
  • disabled boolean optional

Responses

  • 200Success
  • 201Created, but could not fetch the license.
  • 400Missing uid or pid.
Request
curl -X POST 'https://api.example.com/api/keys' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "uid": "123",
  "pid": 456,
  "ip": "203.0.113.10",
  "status": true,
  "disabled": false
}'
Response
Success
{
  "id": 1,
  "uuid": "123",
  "product": 456,
  "key": "0190a5f3-7c1e-7b2a-9d4e-3f8a6c1b2d90",
  "ip": "203.0.113.10",
  "status": true,
  "disabled": false,
  "locked": false,
  "lastSeen": null
}