POST
/
plugins
/
{pluginId}
/
licenses
Create a license for a plugin
curl --request POST \
  --url https://api.mclicense.org/plugins/{pluginId}/licenses \
  --header 'Content-Type: application/json' \
  --header 'MCL-Key: <api-key>' \
  --data '{
  "maxIps": 123,
  "expiresOn": "<string>",
  "user": "<string>"
}'
{
  "key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "pluginId": "<string>",
  "maxIps": 123,
  "expiresOn": "<string>",
  "user": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

MCL-Key
string
header
required

API key must start with 'mcl_'

Path Parameters

pluginId
string
required

Body

application/json
maxIps
integer
required

Maximum number of IP addresses allowed

expiresOn
string
required

Expiration date or 'Never'

user
string

Optional user identifier

Response

200 - application/json

License created successfully

key
string<uuid>
required

Unique license key

pluginId
string
required

ID of the associated plugin

maxIps
integer
required

Maximum number of IP addresses allowed

expiresOn
string

Expiration date in ISO 8601 format or 'Never'

user
string

Optional user identifier

createdAt
string<date-time>

License creation timestamp