Project Phil Documentation
Sign in

Get Single License Key Logs

Added in v1.0

GEThttps://api.example.com/api/keys/{key}/logs

Requires authentication: x-api-key: YOUR_API_KEY

Returns all license logs in an array.

Headers

  • x-api-keystringrequired

Path parameters

  • keystringrequired
    The license key, as shown on the license page on the website.

Responses

  • 200OK
  • 201No Logs
  • 404Not Found

Request

curl -X GET 'https://api.example.com/api/keys/{key}/logs' \
  -H 'x-api-key: YOUR_API_KEY'
const res = await fetch('https://api.example.com/api/keys/{key}/logs', {
  headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const logs = await res.json();
import requests

res = requests.get('https://api.example.com/api/keys/{key}/logs', headers={'x-api-key': 'YOUR_API_KEY'})
logs = res.json()
$ch = curl_init('https://api.example.com/api/keys/{key}/logs');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-api-key: YOUR_API_KEY']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$logs = json_decode(curl_exec($ch), true);

200 OK

[
  {
    "id": 1,
    "key": "0190a5f3-7c1e-7b2a-9d4e-3f8a6c1b2d90",
    "timeAt": 1788648761000,
    "ip": "192.168.1.10",
    "details": "",
    "status": "success"
  }
]

201 No Logs

{
  "msg": "No license logs were found for the specified license key."
}

404 Not Found

{
  "msg": "The specified license key was not found."
}
Written by !RAB Last updated 1 Dec 2026

Discussion 0

No comments yet. Sign in with Discord to start the conversation.