Delete License Key
Added in v1.0
DEL
https://api.example.com/api/keys/{key}Requires authentication: x-api-key: YOUR_API_KEY
Deletes the desired license key and its logs. Returns the last license object before deletion.
Headers
x-api-keystringrequiredYour API key.
Path parameters
keystringrequiredThe license key to delete as presented on the website.
Responses
- 200OK
- 404Not Found
Request
curl -X DELETE 'https://api.example.com/api/keys/{key}' \
-H 'x-api-key: YOUR_API_KEY'
const res = await fetch('https://api.example.com/api/keys/{key}', {
method: 'DELETE',
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const key = await res.json();
import requests
res = requests.delete('https://api.example.com/api/keys/{key}', headers={'x-api-key': 'YOUR_API_KEY'})
key = res.json()
$ch = curl_init('https://api.example.com/api/keys/{key}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-api-key: YOUR_API_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$key = json_decode(curl_exec($ch), true);
200 OK
{
"id": 1,
"uuid": "123",
"product": 456,
"key": "0190a5f3-7c1e-7b2a-9d4e-3f8a6c1b2d90",
"ip": "203.0.113.10",
"status": true,
"disabled": false,
"locked": true,
"lastSeen": 1790000000000
}
404 Not Found
{
"msg": "The specified license key was not found."
}
Discussion 0
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.
No comments yet. Sign in with Discord to start the conversation.
Sign in required
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.