Dashboard API
Account
Retrieve and update your tenant account details, quotas, and configuration.
GET /dashboard/account
Returns the full account profile including tenant details, current quota usage, rate limits, and active configuration.
GET https://api.liyaengine.ai/dashboard/account
Authorization: Bearer <jwt>Response:
{
"success": true,
"data": {
"tenant": {
"tenantId": "acme-corp",
"tenantName": "Acme Corp",
"plan": "starter",
"billingEmail": "[email protected]",
"enabledDomains": ["hiring"],
"isActive": true,
"createdAt": "2026-01-15T08:00:00Z",
"industry": "staffing",
"teamSize": "11-50"
},
"quotas": {
"monthlyRequests": 10000,
"monthlyTokens": "50000000",
"requestsUsed": 1240,
"tokensUsed": "6200000",
"resetAt": "2026-04-01T00:00:00Z"
},
"rateLimits": {
"requestsPerMinute": 60
},
"config": {
"personaConfig": { ... },
"featureConfig": { ... },
"modelConfig": { ... }
}
}
}PATCH /dashboard/account
Update tenant name and billing email.
PATCH https://api.liyaengine.ai/dashboard/account
Authorization: Bearer <jwt>
Content-Type: application/json
{
"tenantName": "Acme Technologies",
"billingEmail": "[email protected]"
}PATCH /dashboard/account/config
Update one or more configuration blocks. Omitted blocks are unchanged.
PATCH https://api.liyaengine.ai/dashboard/account/config
Authorization: Bearer <jwt>
Content-Type: application/json
{
"personaConfig": {
"name": "Aria",
"tone": "friendly"
},
"featureConfig": {
"enable_rag": true
},
"modelConfig": {
"strategy": "all-mini"
}
}Accepted fields:
| Field | Type | Description |
|---|---|---|
personaConfig | object | See Persona Configuration |
featureConfig | object | See Feature Configuration |
modelConfig | object | See Model Configuration |
industry | string | staffing, hr_tech, fintech, healthcare, legal, ehs, other |
teamSize | string | "1", "2-10", "11-50", "51-200", "201+" |