Liya Engine

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:

FieldTypeDescription
personaConfigobjectSee Persona Configuration
featureConfigobjectSee Feature Configuration
modelConfigobjectSee Model Configuration
industrystringstaffing, hr_tech, fintech, healthcare, legal, ehs, other
teamSizestring"1", "2-10", "11-50", "51-200", "201+"

On this page