The LiteLLM Agent Platform (LAP) REST API lets you create and configure agents, open isolated sandbox sessions, send messages, and manage skills and memories — all from your own scripts or services.Documentation Index
Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All endpoints are relative to your platform’s deployment URL:Authentication
Every request must carry aBearer token in the Authorization header. The token is the MASTER_KEY value set in your platform’s environment configuration.
401 Unauthorized.
Example request
Response format
All successful responses return JSON. Error responses have this shape:| Status | Meaning |
|---|---|
200 | Success |
201 | Resource created |
204 | Success, no body |
400 | Validation error in request body |
401 | Missing or invalid Authorization header |
404 | Resource not found |
500 | Internal server error |
502 | Harness unreachable (sandbox-side failure) |
Pagination
List endpoints acceptlimit and offset query parameters and return a paginated envelope:
The page of results.
Total number of records matching the query.
The effective page size used for this response.
The offset used for this response.
| Parameter | Type | Default | Max |
|---|---|---|---|
limit | integer | 50 | 200 |
offset | integer | 0 | — |
Sections
Agents
Create, read, update, and delete agent configurations.
Sessions
Spawn sandbox pods, send messages, and stop sessions.
Skills
Build reusable instruction sets and attach them to agents.
Memory
Store and retrieve per-agent memory entries.