Skip to content
Last updated

Daily breakdown of API key usage patterns.

GEThttps://api.aitronos.com/v1/analytics/api-keys/daily/{org_id}

Path Parameters

org_id string required

The organization ID.

Query Parameters

year integer optional

Year (2020-2030). Defaults to current year.

month integer optional

Month (1-12). Defaults to current month.

Returns

Returns daily API key usage breakdown with period information, daily usage data, and monthly summary.

Bash
curl "https://api.aitronos.com/v1/analytics/api-keys/daily/org_abc123?year=2025&month=11" \
  -H "X-API-Key: $FREDDY_API_KEY"

Response:

{
  "organization_id": "org_abc123",
  "period": {
    "year": 2025,
    "month": 11,
    "startDate": "2025-11-01",
    "endDate": "2025-11-30",
    "daysInMonth": 30,
    "daysWithApiUsage": 28
  },
  "dailyUsage": [
    {
      "date": "2025-11-15",
      "requests": 850,
      "cost": 212.5,
      "synapses": 425000.0,
      "neurons": 8500.0
    },
    {
      "date": "2025-11-14",
      "requests": 820,
      "cost": 205.0,
      "synapses": 410000.0,
      "neurons": 8200.0
    }
  ],
  "summary": {
    "organization_id": "org_abc123",
    "month": 11,
    "year": 2025,
    "totalApiKeyRequests": 25000,
    "totalApiKeyCost": 6250.0,
    "averageCostPerRequest": 0.25,
    "total_synapses": 12500000.0,
    "totalNeurons": 250000.0,
    "generatedAt": "2025-11-15T10:30:00Z"
  }
}