Skip to main content
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": "<string>",
  "pluginId": "<string>",
  "maxIps": 123,
  "expiresOn": "<string>",
  "user": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mclicense.org/llms.txt

Use this file to discover all available pages before exploring further.

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
required
read-only

Unique license key (alphanumeric + hyphens, max 36 chars)

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>
read-only

License creation timestamp