API Reference
The LVNG REST API lets you programmatically interact with every part of the platform. Manage agents, orchestrate workflows, send messages, and build intelligent applications with a consistent, well-documented interface.
Base URL
All API requests are made to the following base URL. HTTPS is required for all requests.
https:400">class="text-zinc-500">//api.lvng.ai/apiVersioning
The API is versioned via path prefix. The current stable version is v2. Version 1 endpoints are deprecated and will be removed in a future release.
Current stable version. All new features land here.
Deprecated. Will be sunset Q3 2026.
Content Type
All requests and responses use JSON. Set the Content-Type header on every request that includes a body.
Content-Type: application/jsonAuthentication
All endpoints require a Bearer token in the Authorization header. You can generate API keys from the Settings page in the LVNG dashboard.
400">curl -X 400">GET https:400">class="text-zinc-500">//api.lvng.ai/api/v2/agents \
-H 400">class="text-emerald-400">"Authorization: Bearer YOUR_API_KEY" \
-H 400">class="text-emerald-400">"Content-Type: application/json"Requests without a valid token receive a 401 Unauthorized response.
Response Format
All responses follow a consistent envelope structure. Successful responses include a data field. Error responses include an error field with a human-readable message.
Success response
{
400">class="text-emerald-400">"success": true,
400">class="text-emerald-400">"data": {
400">class="text-emerald-400">"id": 400">class="text-emerald-400">"agt_a1b2c3d4",
400">class="text-emerald-400">"name": 400">class="text-emerald-400">"Research Agent",
400">class="text-emerald-400">"status": 400">class="text-emerald-400">"active"
}
}Error response
{
400">class="text-emerald-400">"success": false,
400">class="text-emerald-400">"error": 400">class="text-emerald-400">"Agent not found"
}Rate Limiting
API requests are rate-limited per API key. Rate limit information is returned in response headers.
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 997
X-RateLimit-Reset: 1711843200If you exceed the limit, you will receive a 429 Too Many Requests response. Wait until the reset timestamp before retrying.
API Resources
Chat
2 endpointsSend messages to AI and stream responses via Server-Sent Events.
Messages
12 endpointsCreate, read, update, and delete messages within channels. Threads, reactions, file uploads, and AI summarization.
Channels
17 endpointsManage channels, members, digital twins, and pinned messages.
Workspaces
16 endpointsManage workspaces, team members, roles, permissions, and settings.
Agents
11 endpointsCreate, configure, and control AI agents with custom capabilities and tools.
Workflows
16 endpointsBuild, execute, and schedule multi-step automation workflows.
Digital Twins
5 endpointsAdd and manage AI personas (digital twins) in your workspace.
Artifacts
12 endpointsStore and manage AI-generated artifacts with versioning and review.
Knowledge
11 endpointsIngest, search, and analyze content across a unified knowledge graph.
Canvas
7 endpointsVisual canvas cards and folders for spatial organization.
Calendar
6 endpointsUnified calendar across Google and Microsoft with event CRUD and availability.
Voice Notes
7 endpointsAudio recording, transcription via Whisper, and voice note management.
Search
1 endpointsUnified semantic search across notes, channels, messages, and knowledge.
Settings
7 endpointsUser and workspace settings with import/export support.
Integrations
11 endpointsPlatform integrations for Discord, Slack, and Teams with channel sync.
Conversations
10 endpointsDirect messages, group conversations, read receipts, and member management.
HTTP Methods
The API uses standard HTTP methods for CRUD operations.
| Method | Description |
|---|---|
| GET | Retrieve a resource or list of resources |
| POST | Create a new resource or trigger an action |
| PUT | Replace a resource entirely |
| PATCH | Partially update a resource |
| DELETE | Remove a resource |
Pagination
List endpoints support cursor-based pagination using limit and before parameters. The default page size is 50 items. Maximum is 100.
400">curl -X 400">GET 400">class="text-emerald-400">"https:400">class="text-zinc-500">//api.lvng.ai/api/v2/messages?channel_id=ch_abc123&limit=25&before=2026-03-01T00:00:00Z" \
-H 400">class="text-emerald-400">"Authorization: Bearer YOUR_API_KEY"