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 PUT https://api.wunderupdates.com/v1/plugins/my-new-plugin/license/keys \
-H "x-api-key: YOUR_API_KEY" \
Response
bash
{
"status": 200,
"keys": [
{ "key": "some-license-key", "expires": null },
{ "key": "another-license-key", "expires": "2025-12-31"},
]
}
POST
Replaces the list of license keys with a new list of keys.
Request
bash
curl -X POST https://api.wunderupdates.com/v1/plugins/my-new-plugin/license/keys \
-H "x-api-key: YOUR_API_KEY" \
-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"
}
PUT
Adds a single new license key to the list of keys.
Request
bash
curl -X PUT https://api.wunderupdates.com/v1/plugins/my-new-plugin/license/keys \
-H "x-api-key: YOUR_API_KEY" \
-d '{"key":"next-license-key","expires":"2032-12-21"}'
Response
bash
{
"status": 200,
"message": "License key next-license-key was added to plugin my-new-plugin"
}
/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-key: YOUR_API_KEY" \
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-key: YOUR_API_KEY" \
Response
bash
{
"status": 200,
"message": "License key next-license-key on plugin my-new-plugin was removed."
}