v2

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-2663154130.1 KB
Agent Configuration

Create Prompt

Create a new prompt version.

First write for a given promptId is version 1. Subsequent POSTs with the same promptId allocate the next version. The whole SELECT MAX + INSERT runs under _reload_mutex so concurrent admin POSTs serialize.

post/admin/api/v1/prompts

Request body

promptIdstring required
contentstring required
tagsstring[]

Response

Successful Response