API Reference
The public, API-key-authenticated /v1 surface — what a third-party integration or one of the official SDKs actually calls.
This is the reference for the API-key surface — the /v1/* endpoints a tenant-issued API key can call, meant for integrating LiyaEngine into your own backend, script, or CI pipeline. It's a different surface from the Dashboard API, which is JWT-authenticated and meant for your own admin tooling or the LiyaEngine dashboard itself.
Coverage
This section is filled in resource by resource as each one gets full spec coverage — Collections, Agents, Workflows, Evaluations, and Traces are done. Everything else (Domains, Run, Guardrail Policies, Triage) is reachable today via /v1/* and documented in openapi.yaml / Swagger UI, it just doesn't have a hand-written page here yet.
Authentication
Every /v1/* request needs your tenant's API key as a bearer token:
Authorization: Bearer liya_xxxxxxxxxxxxGet a key from the dashboard under Settings → API Keys, or via the Dashboard API.
Base URL: https://api.liyaengine.ai
Response envelope
Every response — success or failure — is JSON with a success flag:
{
"success": true,
"data": { ... }
}{
"success": false,
"error": {
"code": "SLUG_CONFLICT",
"message": "A collection named 'contracts' already exists."
}
}The official SDKs (JavaScript, Python) unwrap this automatically — data comes back as a typed value, error is raised as a real exception.
Resources
Collections
Organize documents into collections, scope retrieval, attach to domains
Agents
Create, configure, deploy, and run standalone Agents
Actions
Create and manage the HTTP calls agents and workflows can make
Workflows
Create, deploy, and run multi-step automations
Evaluations
Datasets, Suites, Runs, and Reviews — score your intents or your own outputs
Traces
Read execution traces, run traces and statistics — filter by domain, intent, issue, model and time