Matchplat API Docs

GET /license/history

Returns the user's call history to endpoints, including date, endpoint, method, parameters, and consumed credits.

Response 200

LicenseCallHistoryItem

FieldTypeDescription
timestampDateTimeCall date and time (RFC 3339, UTC)
endpointStringCalled endpoint
methodStringHTTP method
bodyObject|nullRequest body (if present)
queryParamsObject|nullQuery string parameters (if present)
responseCodeIntHTTP response code
creditsUsedInt|nullCredits 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>"