Skip to main content
GET
/
api
/
v1
/
projects
/
stats
curl -X GET "https://api.devkit4ai.com/api/v1/projects/stats" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "projects": {
    "total": 5,
    "active": 4
  },
  "users": {
    "total": 150,
    "active": 120
  },
  "api_keys": {
    "total": 10,
    "active": 8
  }
}
Retrieve global statistics across all projects belonging to the authenticated developer. This endpoint provides aggregate counts for projects, users, and API keys.

Headers

Authorization
string
required
Bearer token for authentication

Query Parameters

Optional search term to filter statistics
is_active
boolean
Filter by active status
project_id
string
Filter statistics for a specific project (UUID format)

Response

projects
object
required
Project statistics
users
object
required
User statistics across all projects
api_keys
object
required
API key statistics
curl -X GET "https://api.devkit4ai.com/api/v1/projects/stats" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "projects": {
    "total": 5,
    "active": 4
  },
  "users": {
    "total": 150,
    "active": 120
  },
  "api_keys": {
    "total": 10,
    "active": 8
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

search
string | null
is_active
boolean | null
project_id
string<uuid> | null

Response

Successful Response

Global statistics for all developer's projects

projects
CountStats · object
required

Nested count statistics

users
CountStats · object
required

Nested count statistics

api_keys
CountStats · object
required

Nested count statistics