AnalyticsGet Analytics Metrics
Analytics

GET /analytics/metrics

Retrieve various analytics metrics for the specified time period

curl -X GET "https://api.example.com/v2/analytics/metrics?start_date=2024-01-01&end_date=2024-12-31&metrics=users,projects,storage" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "period": {
    "start_date": "2024-01-01",
    "end_date": "2024-12-31"
  },
  "metrics": {
    "users": {
      "total": 1250,
      "new_this_period": 150,
      "active_this_period": 800
    },
    "projects": {
      "total": 456,
      "active": 320
    },
    "storage": {
      "total_bytes": 1073741824,
      "files_count": 2500
    }
  }
}
GET
/analytics/metrics
GET
Security Scheme
OAuth 2.0
OAuth 2.0 Tokenstring
Required

OAuth 2.0 authentication flow

OAuth 2.0 authentication flow
query
metricsstring

Comma-separated list of metrics to include

Request Preview
Response

Response will appear here after sending the request

Authentication

OAuth2
header
Authorizationstring
Required

OAuth 2.0 access token. OAuth 2.0 authentication flow

Available Flowsinfo

Supported OAuth 2.0 flows: authorizationCode

Query Parameters

metricsstring

Comma-separated list of metrics to include

Responses

periodobject
metricsobject