View logs of external API calls made. This is useful for troubleshooting and understanding how different services interact.
include_stats string required limit string required page string required start_date string required end_date string required Accept Example Content-Type Example success boolean timestamp string requestId string data object https://cloud.hostup.se/api/external-api-logs curl -X GET "https://cloud.hostup.se/api/external-api-logs?include_stats=string&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",
"service_name": "string",
"api_method": "string",
"http_method": "string",
"endpoint": "string",
"status_code": 0,
"success": true,
"response_time_ms": 0,
"error_message": "string",
"error_code": "string",
"client_id": "string",
"initiated_by": "string",
"is_admin": true,
"retry_count": 0,
"cache_hit": true,
"severity": "string",
"tags": [
"string"
],
"request_size_bytes": "string",
"response_size_bytes": "string"
}
],
"total": 0,
"page": 0,
"limit": 0,
"hasMore": true,
"stats": {
"totalEvents": 0,
"successfulCalls": 0,
"failedCalls": 0,
"avgResponseTime": 0,
"topMethods": [
{
"method": "string",
"count": 0,
"avg_time": 0,
"error_count": 0
}
],
"byService": [
{
"service_name": "string",
"count": 0,
"avg_time": 0,
"error_count": 0
}
],
"slowestCalls": [
{
"method": "string",
"max_time": 0,
"avg_time": 0,
"count": 0
}
],
"cacheHitRate": 0,
"recentActivity": [
{
"date": "string",
"count": 0
}
],
"retryStats": {
"totalRetries": 0,
"requestsWithRetries": 0
},
"dataTransfer": {
"totalRequestBytes": 0,
"totalResponseBytes": 0,
"avgRequestBytes": 0,
"avgResponseBytes": 0
}
}
}
}