Subscriptions endpoints
| Method | Path (example) | Description |
|---|---|---|
| GET | /subscriptions | Plan list |
| POST | /subscriptions | Create plan (SUPERADMIN) |
| PATCH/DELETE | /subscriptions/:id | Update / delete |
| POST | /subscriptions/:id/assign | Assign to organization |
Plan body (conceptual)
json
{
"name": "Pro",
"features": {
"analytics_bots": true,
"data_sources": true,
"workflows": false,
"live_chat": true
},
"limits": {
"projects": 50,
"agents": 200,
"knowledgeBases": 20,
"knowledge_files": 5000,
"storage_mb": 10240,
"integrations": 100
}
}Field names must match the backend schema exactly.