Intro Quickstart Auth Errors Rate Limits Endpoint Examples
Endpoints
Search Dataset

Lyralink API

Base URL: https://lyralinkai.com/api/public_api.php

The Lyralink API gives operators and developers a documented, lower-risk way to access searchable knowledge and operational endpoints in a production-friendly workflow.

All requests require an API key. Keys are generated from your account dashboard and can be rotated at any time. Rate limits and usage behavior are tied to the plan you choose.

Production note Prefer header-based authentication and keep keys out of client-side JavaScript. Query-string keys are intentionally restricted to reduce accidental leakage in shared or public environments.

Operator Quickstart

Beginner-friendly path from first launch to scaled operations

Use this sequence to turn Lyralink into a business-ready operator workflow. It is designed to work for solo founders, agencies, and larger organizations.

  • Create your operator account and configure branding in the operator dashboard.
  • Generate API keys in API Keys and keep them server-side only.
  • Embed referral widget snippet to capture attributed signups.
  • Use usage-aware pricing and monitor billing status to protect margins.
  • Expand into team workflows through organization membership and role controls.
Recommended launch stack Pair one embed channel (website widget), one programmatic channel (API key integration), and one acquisition channel (invite link) before adding advanced automations.
Workflow
1) Apply and activate operator account
2) Configure branding + acquisition link
3) Deploy widget and onboard first clients
4) Issue API key for technical integration
5) Track usage, credits, and payout cycles

Authentication

All requests must include a valid API key

Pass your API key in headers. For production clients, use X-API-Key right now.

Option 1 — X-API-Key header (recommended)

HTTP
X-API-Key: lyr_your_key_here

Option 2 — Authorization Bearer header

HTTP
Authorization: Bearer lyr_your_key_here
Auth transport note Query-string keys (?key=...) are disabled by default for security. Use headers. If Bearer auth is blocked by an intermediate proxy in your environment, use X-API-Key.
Keep your key secret Never expose your API key in client-side JavaScript or public repositories. If compromised, revoke it immediately from your dashboard and generate a new one.

Errors

All errors return JSON with a consistent structure
JSON
{
  "error": {
    "code":    "INVALID_KEY",
    "message": "Invalid API key."
  }
}
HTTP StatusError CodeMeaning
400MISSING_QUERYThe ?q= parameter is missing
400QUERY_TOO_LONGQuery exceeds 500 characters
401MISSING_KEYNo API key provided
401INVALID_KEYKey not found or incorrect
403KEY_DISABLEDKey has been revoked
429RATE_LIMITEDDaily request limit reached
503DB_ERRORService temporarily unavailable

Rate Limits

Limits reset daily at midnight UTC

Your rate limit is determined by your Lyralink account plan. Rate limit headers are included on every response:

Response Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: 1740873600
PlanRequests / DayNotes
Free100Default for all accounts
Basic500$5/mo
Pro2,000$15/mo
Enterprise10,000$30/mo — LLaMA 70b access + recommended for production operator deployments

View operator tiers →

Examples

Copy-paste ready code samples

cURL

bash
curl -G https://lyralinkai.com/api/public_api.php \
  --data-urlencode "q=how does AI work" \
  -H "X-API-Key: lyr_your_key_here" \
  -d "limit=3"

JavaScript (fetch)

javascript
const response = await fetch(
    'https://lyralinkai.com/api/public_api.php?q=how+does+AI+work&limit=3',
  { headers: { 'X-API-Key': 'lyr_your_key_here' } }
);

const data = await response.json();

data.results.forEach(result => {
  console.log(result.question);
  console.log(result.answer);
  console.log(`Score: ${result.score} via ${result.method}`);
});

Python (requests)

python
import requests

response = requests.get(
    "https://lyralinkai.com/api/public_api.php",
    params={"q": "how does AI work", "limit": 3},
    headers={"X-API-Key": "lyr_your_key_here"}
)

data = response.json()
for result in data["results"]:
    print(result["question"])
    print(result["answer"])
    print(f"Score: {result['score']} via {result['method']}")

Ready to build?

Generate your API key and integrate into your operator stack in minutes.

Get your API key →