Manage Endprompt resources with standard HTTP requests
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
https://api.endprompt.app/admin/v1
All admin API routes are prefixed with /admin/v1/.
Authentication
Include your admin API key in every request:
curl -X GET https://api.endprompt.app/admin/v1/endpoints \ -H "x-api-key: epa_your_admin_key_here"
See Admin API Keys for details on creating and managing keys.
Prompts follow a status workflow: Draft → Live → Archived.
Action
Endpoint
Description
Promote
POST /admin/v1/prompts/{id}/promote
Draft → Live
Set Default
POST /admin/v1/prompts/{id}/set-default
Make this the endpoint’s default prompt
Archive
POST /admin/v1/prompts/{id}/archive
Remove from active use
Unarchive
POST /admin/v1/prompts/{id}/unarchive
Restore to Draft
Duplicate
POST /admin/v1/prompts/{id}/duplicate
Clone as a new Draft
Only Live prompts can be set as the endpoint default. Promote a Draft prompt before setting it as default.
Prompt Versions
# List all versionsGET /admin/v1/prompts/{id}/versions# Get specific versionGET /admin/v1/prompts/{id}/versions/{versionNumber}# Restore a version as a new DraftPOST /admin/v1/prompts/{id}/versions/{versionNumber}/restore
Validate Template
Check a Liquid template for syntax errors and unknown variables: