GET /license/history
Returns the user's call history to endpoints, including date, endpoint, method, parameters, and consumed credits.
Response 200
LicenseCallHistoryItem
| Field | Type | Description |
|---|---|---|
timestamp | DateTime | Call date and time (RFC 3339, UTC) |
endpoint | String | Called endpoint |
method | String | HTTP method |
body | Object|null | Request body (if present) |
queryParams | Object|null | Query string parameters (if present) |
responseCode | Int | HTTP response code |
creditsUsed | Int|null | Credits consumed by the call (if any) |
Example
[
{
"timestamp": "2024-05-01T10:15:30Z",
"endpoint": "/utils/regions",
"method": "GET",
"body": null,
"queryParams": { "country": "IT" },
"responseCode": 200,
"creditsUsed": 0
},
{
"timestamp": "2024-05-01T10:16:00Z",
"endpoint": "/company/search",
"method": "POST",
"body": { "name": "Matchplat" },
"queryParams": {},
"responseCode": 200,
"creditsUsed": 2
}
]
Example curl call
curl -X GET "/license/history" \
-H "x-api-key: <API_KEY>"