Skip to main content
GET
/
api
/
v1
/
projects
/
{project_id}
/
stats
curl -X GET "https://api.devkit4ai.com/api/v1/projects/123e4567-e89b-12d3-a456-426614174000/stats" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "users": {
    "total": 45,
    "active": 38
  },
  "api_keys": {
    "total": 3,
    "active": 2
  }
}
Retrieve statistics for a specific project. This endpoint provides counts for users and API keys within the specified project.

Headers

Authorization
string
required
Bearer token for authentication

Path Parameters

project_id
string
required
Project unique identifier (UUID format)

Query Parameters

Optional search term to filter statistics
is_active
boolean
Filter by active status

Response

users
object
required
User statistics for the project
api_keys
object
required
API key statistics for the project
curl -X GET "https://api.devkit4ai.com/api/v1/projects/123e4567-e89b-12d3-a456-426614174000/stats" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "users": {
    "total": 45,
    "active": 38
  },
  "api_keys": {
    "total": 3,
    "active": 2
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string<uuid>
required

Query Parameters

search
string | null
is_active
boolean | null

Response

Successful Response

Statistics for a specific project

users
CountStats · object
required

Nested count statistics

api_keys
CountStats · object
required

Nested count statistics