JetBrains Marketplace Help

Check License API

If you are the author of a paid plugin, you can check whether the user with the specified email address has a license or not.

You should have a Hub Permanent Token (hubPermanentToken) at JetBrains Hub with Marketplace scope.

CURL command template:

curl -H "Authorization: Bearer <hubPermanentToken>" -X GET{productCode}/license?email={email}

where productCode is the Product Code of your plugin and email is an email of the user you would like to check.

The response has the following format:

{ "licenses": [ { "type": "string", "trial": "boolean?", "period": "string?", "startFrom": "string($date)", "validTill": "string($date)?", "overuseTill": "string($date)?", "ownerCode": "integer", "ownerType": "string", "ownerEmail": "string" } ] }

The response example:

{ "licenses": [ { "type": "PERSONAL", "trial": false, "period": "Annual", "startFrom": "[2019,6,26]", "validTill": "[2020,6,25]", "overuseTill": "[2020,7,2]", "ownerCode": 1234567, "ownerType": "Personal", "ownerEmail": "" } ] }
Last modified: 23 July 2020