Want to give a Craft CMS plugin you developed away?


« Back to overview

If you want to give away a license for your self developed Craft CMS plugin, you can create a license through the api.

Here is an example of a post request (use PostMan or the likes):



Json body, specify email: whom you want to give the plugin to, plugin: the canonical name of the plugin.


POST https://api.craftcms.com/v1/plugin-licenses
Authorization: Basic .....


{
          "edition": "standard",
          "plugin": "plugin-name",
          "email": "[email protected]"
}

In the response there is the license key:

{
  "license": {
    "id": 99999,
    "pluginId": 999999,
    "editionId": 99999,
    "ownerId": null,
    "cmsLicenseId": null,
    "pluginHandle": "plugin-handle",
    "edition": "standard",
    "expirable": false,
    "expired": false,
    "autoRenew": false,
    "reminded": false,
    "renewalPrice": null,
    "email": "the-email",
    "key": "LICENSEKEY",
    "notes": null,
    "lastVersion": null,
    "lastAllowedVersion": null,
    "lastActivityOn": null,
    "lastRenewedOn": null,
    "expiresOn": null,
    "dateCreated": null,
    "dateUpdated": null,
    "uid": null
  }
}

You can then attach the license in id.craftcms.com to an account, and enter it in the license field in your Craft CMS installation.