# Get daily usage Retrieve day-by-day usage breakdown for operational monitoring. #### Path Parameters **`org_id`** string required The organization ID. #### Returns Returns daily usage analytics with requests, costs, and metrics. ```bash curl "https://api.aitronos.com/v1/analytics/usage/daily/org_abc123?year=2025&month=11" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python import os import requests api_key = os.environ["FREDDY_API_KEY"] org_id = "org_abc123" response = requests.get( f"https://api.aitronos.com/v1/analytics/usage/daily/{org_id}", params={"year": 2025, "month": 11}, headers={"X-API-Key": api_key} ) data = response.json() print(f"Peak day: {data['summary']['peak_day']}") ``` ```javascript const response = await fetch( "https://api.aitronos.com/v1/analytics/usage/daily/org_abc123?year=2025&month=11", { headers: { "X-API-Key": process.env.FREDDY_API_KEY } } ); const data = await response.json(); console.log(`Peak day: ${data.summary.peak_day}`); ``` **Response:** 200 OK ```json { "organization_id": "org_abc123", "period": "daily", "data": [ { "date": "2025-11-01", "day_of_week": "Friday", "day_of_month": 1, "total_requests": 1250, "total_cost_chf": 312.50, "total_synapses": 625000.0, "total_neurons": 12500.0, "has_data": true }, { "date": "2025-11-02", "day_of_week": "Saturday", "day_of_month": 2, "total_requests": 850, "total_cost_chf": 212.50, "total_synapses": 425000.0, "total_neurons": 8500.0, "has_data": true } ], "totalRequests": 2100, "totalCost": 525.00, "summary": { "month": 11, "year": 2025, "total_days": 30, "average_cost_per_day": 17.50, "peak_day": "2025-11-15", "currency": "CHF" } } ``` 401 Unauthorized ```json { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Authentication required", "system_message": "No API key provided", "type": "client_error", "status": 401, "trace_id": "abc-123-def", "timestamp": "2025-11-15T10:30:00Z" } } ``` 400 Bad Request ```json { "success": false, "error": { "code": "INVALID_REQUEST", "message": "Invalid query parameters", "system_message": "year and month are required", "type": "validation_error", "status": 400, "trace_id": "ghi-789-jkl", "timestamp": "2025-11-15T10:30:00Z" } } ``` 500 Server Error ```json { "success": false, "error": { "code": "INTERNAL_ERROR", "message": "An unexpected error occurred", "system_message": "Database query failed", "type": "server_error", "status": 500, "trace_id": "jkl-012-mno", "timestamp": "2025-11-15T10:30:00Z" } } ```