Skip to main content
The Admin REST API provides full CRUD access to endpoints, prompts, and execution data. It follows standard REST conventions with JSON request/response bodies.

Base URL

All admin API routes are prefixed with /admin/v1/.

Authentication

Include your admin API key in every request:
See Admin API Keys for details on creating and managing keys.

Response Format

All responses use a consistent wrapper:

Endpoints

List Endpoints

Optional query parameters:

Get Endpoint

Returns full endpoint details including input and output field definitions.

Create Endpoint

Update Endpoint

Supports partial updates — only include the fields you want to change:

Delete Endpoint

Soft-deletes the endpoint. It can be restored later.

Add Input Field

For image inputs:

Add Output Field

For image outputs (signals image generation):
The exampleValue on image output fields stores default generation config as JSON. These defaults can be overridden per-prompt via Custom Parameters.

Prompts

List Prompts

Get Prompt

Returns full prompt details including the Liquid template content.

Create Prompt

New prompts are created in Draft status.

Update Prompt

Supports partial updates. If the template changes, a new version is created automatically:

Prompt Lifecycle

Prompts follow a status workflow: Draft → Live → Archived.
Only Live prompts can be set as the endpoint default. Promote a Draft prompt before setting it as default.

Prompt Versions

Validate Template

Check a Liquid template for syntax errors and unknown variables:

List Available Models

Returns all LLM models with capabilities (reasoning, streaming, tools, JSON mode), context windows, and pricing.

Execution

Execute Endpoint

Admin keys (epa_) can execute endpoints, so you can use a single key for both management and testing.

Logs & Stats

List Execution Logs

Get Execution Log

Returns full execution details including rendered prompt, raw LLM response, and parsed output.