What Can You Do?
Manage Endpoints
Create, update, and delete endpoints. Define input and output schemas programmatically.
Manage Prompts
Create prompts, update templates, promote to Live, and manage the full prompt lifecycle.
Execute & Test
Execute endpoints with inputs and get LLM outputs — ideal for automated testing.
Monitor & Analyze
Query execution stats, browse logs, and compare prompt performance.
Two Ways to Access
The Admin API is available through two interfaces:| Interface | Best For | Protocol |
|---|---|---|
| REST API | Scripts, CI/CD, backend integrations | Standard HTTP/JSON |
| MCP Server | AI coding tools (VS Code, Claude, Cursor) | Model Context Protocol |
Quick Start
Create an Admin API Key
Go to API Keys in your dashboard and create a key with the Admin type. Learn more →
Choose Your Interface
Use the REST API for scripts and integrations, or the MCP Server to connect your AI coding tool.
Example: Create and Deploy an Endpoint
Here’s the typical workflow using the Admin API:Resources
The Admin API manages these resources:| Resource | Description |
|---|---|
| Endpoints | API paths with input/output schemas, cache and rate-limit policies |
| Prompts | Liquid templates with LLM configuration, versioning, and lifecycle |
| Prompt Versions | Immutable snapshots created automatically when templates change |
| Snippets | Reusable template fragments included via {% include 'slug' %} |
| Execution Logs | Read-only history with inputs, outputs, latency, tokens, and cost |
| Stats | Aggregated execution metrics per endpoint, prompt, or tenant |
| Models | Available LLM models with capabilities and pricing |

