Skip to content

License keys ​

For plugins that use the static keys license provider, you can manage the license keys associated with the plugin using the /plugins/$slug/license/ endpoints.

/plugins/$slug/license/keys ​

GET ​

List all license keys associated with the plugin.

Request ​

bash
curl -X GET https://api.wunderupdates.com/v1/plugins/my-new-plugin/license/keys \
  -H "x-api-token: YOUR_API_TOKEN" \

Response ​

bash
{
  "status": 200,
  "keys": [
    { "key": "some-license-key", "expires": null },
    { "key": "another-license-key", "expires": "2025-12-31"},
  ]
}

POST ​

Adds one license key, or a list of them. A key that already exists is updated.

Request ​

bash
curl -X POST https://api.wunderupdates.com/v1/plugins/my-new-plugin/license/keys \
  -H "x-api-token: YOUR_API_TOKEN" \
  -d '[{"key":"some-license-key"},{"key":"another-license-key","expires":"2029-12-21"}]'

Response ​

bash
{
  "status": 200,
  "message": "License on plugin my-new-plugin were updated"
}

/plugins/$slug/license/keys/$key ​

GET ​

Show a single static license key.

Request ​

bash
curl -X GET https://api.wunderupdates.com/v1/plugins/my-new-plugin/license/keys/next-license-key \
  -H "x-api-token: YOUR_API_TOKEN" \

Response ​

bash
{
  "status": 200,
  "license-key": {
    "key": "next-license-key",
    "expires": "2032-12-21"
  }
}

DELETE ​

Delete a single static license key.

Request ​

bash
curl -X DELETE https://api.wunderupdates.com/v1/plugins/my-new-plugin/license/keys/next-license-key \
  -H "x-api-token: YOUR_API_TOKEN" \

Response ​

bash
{
  "status": 200,
  "message": "License key next-license-key on plugin my-new-plugin was removed."
}