POST/api/v1/licensing/keys

Create License Key

Generate a new license key for the current organization. The key can be used to configure a self-hosted Docker instance. Only the organization owner can create license keys.

Request

Headers

HeaderRequiredDescription
AuthorizationYesBearer token

Body Parameters

ParameterTypeRequiredDescription
instanceNamestringNoHuman-readable name for the instance (e.g., "Production", "Staging")

Example Request

curl -X POST https://app.storno.ro/api/v1/licensing/keys \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "instanceName": "Production Server"
  }'

Response

Success Response (201 Created)

{
  "id": "019c8a12-4567-7abc-def0-123456789abc",
  "licenseKey": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
  "instanceName": "Production Server",
  "active": true,
  "createdAt": "2026-02-20T10:30:00+00:00"
}
FieldTypeDescription
idstringUUID of the license key
licenseKeystringThe 64-character license key. Save this immediately — it is only returned in full on creation. Subsequent list requests show a masked version.
instanceNamestringInstance label, if provided
activebooleanWhether the key is active
createdAtstringISO 8601 creation timestamp

Error Codes

CodeDescription
401Unauthorized — Missing or invalid token
403Forbidden — User is not the organization owner
404Not Found — Organization not found

Usage Notes

  • Only the organization owner can create license keys
  • The full license key is returned only at creation time. Copy it immediately.
  • There is no limit on the number of keys per organization, but each self-hosted instance should use its own key
  • The key inherits the organization's current subscription plan