Dashboard API
REST API for managing your Liya Engine account — configuration, API keys, usage, sessions, audit logs, and domain packs.
The Dashboard API provides programmatic access to your Liya Engine account. All endpoints require a dashboard JWT (Authorization: Bearer <token>) obtained from POST /auth/login.
Base URL: https://api.liyaengine.ai/dashboard
Endpoints
| 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 |
| Packs | GET /packs, PATCH /packs |
| Sessions | GET /sessions, GET /sessions/:sessionId |
| Audit | GET /audit |
| Custom Domains | CRUD for custom domain packs |
Authentication
JWTs expire after 7 days. Call GET /auth/me to get a fresh token.
Response envelope
All dashboard API responses follow this structure:
Errors: