Public developer API for AI apps with memory, tools, documents, automation, and business intelligence.

AI API for Developers with Chat + Always-On Memory

Lyren API helps developers build AI product features with chat that remembers user context, text and web tools, document-grounded answers, workflow definitions, scheduled jobs, calendar-ready flows, connectors, and business intelligence.
Developer Chat uses x-api-key and requires x-user-id because Memory is always included. Call Lyren from your backend and keep your API key private.
How Lyren API works
backend developer flow
1) Sign up and choose Starter, Growth, or Pro
2) Generate your API key in the dashboard
3) Store the API key server-side
4) Send x-api-key with protected requests
5) Send x-user-id for Developer Chat and user-scoped modules
6) Build chat, tools, memory, knowledge, business, automation, scheduling, and connectors
Chat with memory Tools utilities Memory context Knowledge docs Business APIs Workflows definitions Scheduler jobs Calendar flows Connectors configs
Chat with always-on Memory Developer Chat requires x-user-id so memory and task context stay scoped to the correct user.
Production API modules Use public /v1/* endpoints with validation, limits, and standardized responses.
Separate from Lyren Chat product Code generation, code preview, Meet, and Agent are internal product features, not this public API offering.
Plan-based access Starter, Growth, and Pro control feature access, daily caps, monthly quotas, and rate limits.
Built for developers who want AI features inside real products, not just one-off prompts.
What developers can build
Product features powered by public Lyren API modules.
app-ready
Chat /v1/chat/completions
always-on memory
Your backend sends:
• x-api-key
• x-user-id
• user message
• optional app context

Lyren uses:
• ranked memory
• task context
• chat mode

Lyren returns:
• user-aware response
• metadata
• daily cap details
Knowledge /v1/knowledge/ask
documents
Upload:
• PDFs
• policies
• notes
• docs

Ask:
"What does this policy say?"

Lyren returns:
• grounded answer
• doc_id
• source_name
• chunk_index
• score
Scheduler /v1/schedule/create
automation
Create jobs that run later:
• reminder
• follow-up
• webhook action
• workflow trigger

Worker executes at run_at.

Why Lyren is different from a basic chat API

Most AI APIs answer the current prompt. Lyren is designed as a developer platform with memory, tools, documents, jobs, connectors, and business modules.
Always-on Memory in Chat
x-user-id required

Developer Chat automatically attempts to use ranked user memory and task context. Memory is part of the chat experience, not a separate toggle.

Tools + Documents
utility + RAG

Developers can summarize, translate, rewrite, extract, fetch web text, upload documents, and ask grounded questions with source metadata.

Automation + Business
product-ready

Workflows, scheduler jobs, calendar-ready flows, connectors, lead scoring, churn risk, and revenue leak analysis help power real dashboards and apps.

A public API for developers, separate from internal Lyren products

This page is for the public developer API. Lyren Chat, Lyren Meet, Lyren Agent, and internal code tools are separate product systems.
Developer API
x-api-key

External developers call public /v1/* endpoints from their backend using an API key generated in the dashboard.

User identity
x-user-id

Developer Chat, Memory, Knowledge Base, Business, Workflows, Scheduler, Calendar, and Connectors should be tied to a stable user ID from the developer's app.

Plan enforcement
Starter / Growth / Pro

Plans control available modules, usage, daily caps, monthly quotas, and rate limits across developer scopes.

Authentication pattern
backend only
Required for protected routes:
x-api-key: YOUR_API_KEY

Required for Developer Chat and user-scoped modules:
x-user-id: user_123

Never expose your API key in:
• browser JavaScript
• mobile apps without a backend proxy
• public GitHub repositories
• screenshots
• support tickets

Chat: AI conversations with always-on user memory

Use POST /v1/chat/completions to power support assistants, onboarding assistants, sales assistants, writing helpers, and internal product workflows.
Chat is memory-aware by default
required memory
Required request pattern
developer chat
POST /v1/chat/completions

Headers:
x-api-key: YOUR_API_KEY
x-user-id: user_123
Content-Type: application/json

Body:
{
  "model": "lyren-dev-standard",
  "messages": [
    { "role": "user", "content": "Continue from my saved context." }
  ],
  "memory_limit": 8,
  "task_limit": 5,
  "redact_output": true
}
Support assistant
SaaS
Input:
• user question
• x-user-id
• optional app context

Output:
• explanation
• next steps
• escalation summary
Sales assistant
CRM
Input:
• demo notes
• customer pain points
• remembered preferences

Output:
• follow-up email
• short version
• next action list
Developer Chat always includes memory. Legacy use_memory fields may be accepted for compatibility, but memory remains active.
Developer Chat access
Always-on Memory x-user-id
Public chat modes:
lyren-dev-fast
lyren-dev-standard
lyren-dev-deep
Chat behavior:
• Memory always enabled
• Task context included with memory
• x-user-id required
• daily caps by plan
• response includes meta + daily_caps
Use lyren-dev-standard for most production developer integrations.

Tools: focused AI utility endpoints

Tools are utility endpoints for summarizing, translating, rewriting, extracting structured information, fetching URLs, and fetching plus summarizing webpages.
Available tools
utilities
Summarize
notes
POST /v1/tools/summarize

Use for:
• meeting notes
• reports
• support tickets
• long messages
Translate
language
POST /v1/tools/translate

Use for:
• customer messages
• support replies
• FAQs
• internal notes
Rewrite
tone
POST /v1/tools/rewrite

Use for:
• professional tone
• clearer copy
• shorter replies
• product text
Extract
structured
POST /v1/tools/extract

Use for:
• action items
• invoice fields
• support issue fields
• CRM notes
Fetch URL
webpage
POST /v1/tools/fetch

Use for:
• readable webpage text
• documentation pages
• source extraction
Fetch + summarize
research
POST /v1/tools/fetch_and_summarize

Use for:
• article summaries
• documentation summaries
• quick research
Upgraded Tools support validation, optional redact_output, safer URL handling, max_chars, metadata, and daily cap details.
Tools response shape
standardized
Common response fields:
{
  "ok": true,
  "result": {},
  "meta": {},
  "daily_caps": {}
}
Common controls:
• redact_output
• max_chars
• text length guards
• safe style cleanup
• safe language cleanup

Memory: persistent context per app user

Memory lets developers save preferences, facts, project context, and task context under a stable x-user-id. Developer Chat automatically uses ranked Memory and task context.
Memory examples
user-scoped
User preferences
personalization
Save:
"User prefers short answers and implementation steps."

Later:
Developer Chat can use ranked memory
for the same x-user-id.
Project facts
continuity
Save:
"Customer ACME is on Growth plan and uses Shopify."

Later:
support, dashboards, and chat can stay aligned
with saved account context.
Task memory
follow-up
Save:
"Finish onboarding checklist by Friday."

Search later:
"open onboarding tasks"
Ranked context
retrieval
Ask for relevant context.

Lyren returns matching memory
instead of sending every saved item.
Developers should provide user-facing controls for viewing or deleting saved memory where appropriate.
Memory API routes
user-scoped
POST /v1/memory/save
POST /v1/memory/search
POST /v1/memory/forget
POST /v1/memory/task/save
POST /v1/memory/task/search
POST /v1/memory/ranked-context
Developer Chat memory is always on. Memory API access and storage controls are plan-based.

Knowledge Base: document-grounded answers with sources

Knowledge Base lets developers upload user-scoped files and ask questions grounded in stored document content with source metadata.
Knowledge examples
documents
Support knowledge base
support
Upload:
• manuals
• policies
• troubleshooting docs

Ask:
"How do I fix this error?"
"What is the cancellation policy?"

Lyren returns:
• answer
• doc_id
• source_name
• mime
• chunk_index
• score
Agency documents
client work
Upload:
• strategy notes
• reports
• brand docs

Ask:
"What are the campaign priorities?"
Internal operations
company docs
Upload:
• SOPs
• handbook
• onboarding docs

Ask:
"What are the onboarding steps?"
Use API Reference for exact upload, ask, source, and response shapes.
Knowledge routes
Growth+
POST /v1/knowledge/upload
POST /v1/knowledge/ask
Best for:
• product docs
• policies
• reports
• support docs
• internal notes

Workflows and Scheduler: definitions and jobs that run later

Workflows save reusable definitions. Scheduler creates jobs that run later, such as reminders, follow-ups, and webhook actions.
Workflows
saved definitions
Workflows are reusable definitions.

Examples:
• sales_followup
• meeting_notes
• support_ticket_triage
• client_report_summary

Routes:
POST /v1/workflows/save
GET  /v1/workflows/list
Your application decides how to execute, display, or combine workflows with other Lyren endpoints.
Scheduler
delayed jobs
Scheduler creates jobs that run later.

Examples:
• reminder
• follow-up
• webhook action
• status check

Routes:
POST /v1/schedule/create
GET  /v1/schedule/list
GET  /v1/schedule/status/{job_id}
POST /v1/schedule/cancel/{job_id}
For notifications, your app can receive webhooks and send email or SMS through its own messaging provider.

Calendar-ready scheduling flows

Calendar routes are available when enabled in your Lyren deployment. Use them for provider listing, free/busy checks, event creation, and booking flows.
Calendar flow example
scheduling
Example flow:
1) Your app collects booking details
2) Your backend calls a calendar endpoint
3) Booking is created when enabled
4) Scheduler creates reminder/follow-up jobs
5) Worker triggers webhook
6) Your app sends email, SMS, or CRM updates
Keep this section aligned with the calendar endpoints actually exposed in production.
Calendar routes
when enabled
GET  /v1/calendar/providers
POST /v1/calendar/freebusy
POST /v1/calendar/create-event
POST /v1/calendar/book
Calendar actions are user-scoped and should use x-user-id.

Connectors: user-scoped source configuration

Connectors let developers save source configurations such as sitemap, website, RSS, docs, API, webhook, and custom configs.
Connector examples
source configs
Allowed connector kinds:
• sitemap
• website
• rss
• docs
• api
• webhook
• custom

Routes:
POST /v1/connectors/create
GET  /v1/connectors/list
Connectors store source configuration. If you run ingestion syncs, document worker behavior separately.
Connector use cases
Pro-ready
Use connectors for:
• website source configs
• sitemap configs
• RSS source configs
• docs source configs
• API source configs
• webhook configs
• custom ingestion configs
Connector access is plan-based. Keep pricing and docs aligned with the deployed backend.

Business APIs: structured intelligence for dashboards

Business endpoints help developers power CRM views, customer health dashboards, sales prioritization, churn analysis, and revenue leak reports.
Business endpoint examples
dashboards
Lead Score
CRM
POST /v1/business/lead-score

Use for:
• lead score 0–100
• close probability
• drivers
• next actions
Churn Risk
retention
POST /v1/business/churn-risk

Use for:
• churn probability
• risk level
• drivers
• recommended actions
Revenue Leaks
finance
POST /v1/business/revenue-leaks

Use for:
• refund analysis
• failed payment review
• chargeback analysis
• cancellation impact
• downgrade impact
Business endpoints provide structured outputs designed for dashboards. Exact scoring behavior depends on your deployed backend logic.
Business routes
Growth+
POST /v1/business/lead-score
POST /v1/business/churn-risk
POST /v1/business/revenue-leaks
GET  /v1/business/history
Use x-user-id so business history stays associated with the correct app user.

Pricing

Choose the plan based on the modules and limits your product needs. Plans control feature access, daily caps, monthly quotas, and rate limits.
Starter
$19 / month basic chat + tools
Best for
starting
  • Basic developer chat integrations
  • Text utility tools
  • Early product testing
  • Backend-only API usage
Included
core
  • Chat: starter usage limits
  • Tools: starter tool limits
  • Developer Chat: uses x-user-id
  • Rate limit: starter scope limits
Upgrade for
Growth+
  • Memory API controls
  • Knowledge Base
  • Workflows
  • Scheduler
  • Calendar-ready flows
  • Business APIs
  • Connectors
Growth
$49 / month memory + docs + automation
Best for
real apps
  • Apps that need user memory
  • Document-grounded answers
  • Workflow definitions
  • Scheduled jobs and follow-ups
  • Business dashboard features
Included
features
  • Chat: memory-aware developer chat
  • Tools: text and URL utilities
  • Memory API: save, search, forget, task context
  • Knowledge Base: upload and ask documents
  • Workflows: reusable definitions
  • Scheduler: jobs that run later
  • Calendar: calendar-ready flows when enabled
  • Business: lead, churn, revenue analysis
Upgrade for
Pro
  • Connectors
  • Expanded usage limits
  • Scale-ready capacity
Pro
$99 / month full platform access
Best for
scale
  • Full developer platform access
  • Connector-powered source configs
  • Higher daily caps
  • Expanded rate limits
  • Production apps with heavier usage
Included
complete
  • Chat: expanded usage
  • Tools: expanded usage
  • Memory: expanded storage behavior
  • Knowledge: expanded docs behavior
  • Workflows: expanded workflow behavior
  • Scheduler: high daily caps
  • Calendar: high daily caps when enabled
  • Business: high daily caps
  • Connectors: included

Start with the module you need. Upgrade when your product grows.

Starter is for basic chat and tools. Growth adds memory API, documents, automation, calendar-ready flows, and business APIs. Pro adds connectors and expanded limits.

Frequently Asked Questions

Common questions about Lyren API, Developer Chat memory, plans, tools, documents, automation, and public modules.

What is Lyren API?

Lyren API is a developer-facing AI platform that helps developers add chat with always-on memory, tools, memory, knowledge base, workflows, scheduler jobs, calendar-ready flows, connectors, and business APIs into their own applications.

Is Lyren API the same as Lyren Chat?

No. Lyren API is the public developer API. Lyren Chat is a separate user-facing product. Internal Lyren Chat features such as code generation, code preview, Meet, and Agent are not part of this developer API page.

Does Developer Chat always include Memory?

Yes. Developer Chat always includes Lyren Memory. The chat endpoint requires x-user-id so user memory and task context stay scoped to the correct app user.

Why does Developer Chat require x-user-id?

Developer Chat requires x-user-id because memory is always enabled. The user ID keeps memory isolated by API key and user.

Can developers disable memory in chat completions?

No. Developer Chat keeps memory enabled. Legacy use_memory fields may be accepted for compatibility, but memory remains active.

What tools are included?

Lyren Tools include summarize, translate, rewrite, extract, fetch URL text, and fetch plus summarize.

What is the Knowledge Base API?

The Knowledge Base API lets developers upload user-scoped documents and ask grounded questions with source metadata.

What is the Business API?

The Business API helps developers power dashboards for lead scoring, churn risk, revenue leak analysis, and user-scoped business history.

What are Workflows and Scheduler?

Workflows save reusable automation definitions. Scheduler creates jobs that run later, such as reminders, follow-ups, and webhook actions.

What are Connectors?

Connectors store user-scoped source configurations such as sitemap, website, RSS, docs, API, webhook, and custom connector configs.

Which plan should I choose?

Starter is best for basic chat and tools. Growth is best for apps that need memory API controls, documents, workflows, scheduler, calendar-ready flows, and business APIs. Pro is best for full platform access, connectors, and expanded limits.

Should developers call Lyren from browser JavaScript?

No. Developers should call Lyren API from their backend so the API key stays private.

Where do developers manage API keys?

Developers manage their account and API keys from the Lyren dashboard after signup and billing.