API 参考 / admin
GET /api/v1/admin/overview · adminOverview
跨组织只读计数(用户按状态 / 近 30 天新增、组织数、项目数按开通状态、活跃会话数)+ 系统状态 (版本 / uptime / DB 连通)。全是控制面库聚合,绝不触碰业务库。要求平台超管。
本接口要求浏览器会话。Bearer API Token 无法调用——Token 的生命周期管理必须在网页端完成。
users(必填)users.total(必填)users.active(必填)users.suspended(必填)users.newLast30d(必填)orgs(必填)orgs.total(必填)orgs.newLast30d(必填)projects(必填)projects.total(必填)projects.byStatus(必填)sessions(必填)sessions.active(必填)sessions.last24h(必填)system(必填)system.version(必填)system.uptimeSeconds(必填)system.dbHealthy(必填)system.mailDeliveryMode(必填)system.mailQueueStatus(必填)support(必填)support.intakePending(必填)401:Problem 错误响应403:Problem 错误响应curl -X GET "https://你的项目.workflow.games/api/v1/admin/overview" \
-H "Authorization: Bearer wfp_…"HTTP/1.1 200
{
"users": {
"total": 1,
"active": 1,
"suspended": 1,
"newLast30d": 1
},
"orgs": {
"total": 1,
"newLast30d": 1
},
"projects": {
"total": 1,
"byStatus": {}
},
"sessions": {
"active": 1,
"last24h": 1
},
"system": {
"version": "示例文本",
"uptimeSeconds": 1,
"dbHealthy": true,
"mailDeliveryMode": "smtp",
"mailQueueStatus": "synchronous"
},
"support": {
"intakePending": 1
}
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引