Liya Engine

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

ResourceEndpoints
AccountGET /account, PATCH /account, PATCH /account/config
API KeysGET /api-key, POST /api-key/rotate
UsageGET /usage, GET /usage/history
PacksGET /packs, PATCH /packs
SessionsGET /sessions, GET /sessions/:sessionId
AuditGET /audit
Custom DomainsCRUD for custom domain packs

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"
  }
}

On this page