Dashboard API
Dashboard API
REST API for managing your LiyaEngine account — configuration, API keys, usage, sessions, audit logs, and every platform capability.
The Dashboard API provides programmatic access to your LiyaEngine account. All endpoints require a dashboard JWT (Authorization: Bearer <token>) obtained from POST /auth/login.
Base URL: https://api.liyaengine.ai/dashboard
Account & access
| Resource | Endpoints |
|---|---|
| Account | GET /account, PATCH /account, PATCH /account/config |
| API Keys | GET /api-key, POST /api-key/rotate |
| Usage | GET /usage, GET /usage/history |
| Domain Permissions | GET /packs, PATCH /packs — enable/disable intents per domain |
| Sessions | GET /sessions, GET /sessions/:sessionId |
| Audit | GET /audit |
| Custom Domains | CRUD for your custom domains and their intents |
Platform capabilities
Each of these has its full API reference on its platform page:
| Resource | Reference |
|---|---|
| Agent Runtime | Agent Orchestration |
| Workflows | Workflow Builder |
| Cost breakdown | Cost Explorer |
| Collections & documents | Knowledge Collections |
| Model providers | Models + Router |
| Intent versions | Versioning |
Authentication
# 1. Get a JWT
POST /auth/login
{ "email": "[email protected]", "password": "..." }
# 2. Use it on all /dashboard/* calls
Authorization: Bearer <jwt>JWTs expire after 7 days. Call GET /auth/me to get a fresh token.
Response envelope
All dashboard API responses follow this structure:
{
"success": true,
"data": { ... }
}Errors:
{
"success": false,
"error": {
"code": "TENANT_NOT_FOUND",
"message": "Account not found"
}
}