API Reference
Prompts
A prompt is a single question that the monitor asks each engine on every run. Each prompt belongs to exactly one monitor.
Endpoints
-
GET
/api/v1/promptsList promptsReturns every prompt belonging to the active project, optionally filtered to a single monitor. The response is paginated.
-
POST
/api/v1/promptsCreate a promptCreates a new prompt under a monitor in the active project.
-
GET
/api/v1/prompts/{prompt}Get a promptReturns a single prompt. The prompt must belong to a monitor inside the active project.
-
PUT
/api/v1/prompts/{prompt}Update a promptReplaces the text of a prompt and its active state. Both
promptandis_activemust be sent on every call. You may also passmonitor_idto move the prompt to another monitor in the same project, ortagsto replace the prompt's tag set. -
DELETE
/api/v1/prompts/{prompt}Delete a promptDeletes a prompt.