Access a detailed log of all API calls made within your account, including timestamp, call type, and status. This information can be used for troubleshooting, reviewing security events, or understanding service interactions. The endpoint also returns a requestId for tracking specific operations.
include_stats string · enum required false true limit string required page string required start_date string required end_date string required hide_get string Accept Example Content-Type Example success boolean timestamp string requestId string data object meta object https://cloud.hostup.se/api/audit-log curl -X GET "https://cloud.hostup.se/api/audit-log?include_stats=false&limit=string&page=string&start_date=string&end_date=string" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"logs": [
{
"id": "string",
"timestamp": "string",
"method": "string",
"endpoint": "string",
"path": "string",
"client_id": "string",
"ip_address": "string",
"user_agent": "string",
"status_code": 0,
"success": true,
"duration_ms": 0,
"error_message": "string",
"auth_method": "string",
"resources_accessed": [
"string"
],
"severity": "string",
"tags": [
"string"
]
}
],
"total": 0,
"stats": {
"totalEvents": 0,
"loginCount": 0,
"failedLogins": 0,
"apiCalls": 0,
"securityEvents": 0,
"avgResponseTime": 0,
"topEndpoints": [
{
"endpoint": "string",
"count": 0
}
],
"recentActivity": [
{
"date": "string",
"count": 0
}
]
},
"page": 0,
"limit": 0,
"hasMore": true
},
"meta": {
"headers": {
"X-Cache": "string"
}
}
}