API Call Log Endpoints
Query the API request audit log for monitoring and debugging.
Base Pathโ
/api/api-call-log
Endpointsโ
List API Callsโ
GET /api/api-call-log
Authorization: Bearer {token}
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
page | number | Page number |
limit | number | Items per page |
method | string | HTTP method (GET,POST) |
url | string | URL pattern filter |
statusCode | number | Response status code |
startDate | date | From date |
endDate | date | To date |
Response:
{
"items": [
{
"id": "uuid",
"method": "GET",
"url": "/api/employee",
"statusCode": 200,
"requestTime": 45,
"ipAddress": "192.168.1.1",
"userId": "uuid",
"createdAt": "2025-01-15T10:30:00Z"
}
],
"total": 1250
}
Get Call by IDโ
GET /api/api-call-log/:id
Authorization: Bearer {token}
Delete Old Logsโ
DELETE /api/api-call-log/older-than/:days
Authorization: Bearer {token}
Requires admin permissions.
Use Casesโ
- API performance monitoring
- Security auditing
- Debugging failed requests
- Rate limiting analysis
Related Pagesโ
- Monitoring & Observability โ monitoring setup
- Audit Logging โ audit architecture