Skip to Content
Docs

POST /api/check_prompt

POST
/api/check_prompt

Check a prompt's text without a model: blanks left in, lines DocsGPT already adds to a persona, and a template that doesn't parse, runs tool variables, or lacks the Boundaries section or citation rules. Each check is a code the client words; works with the drafter off.

Personal access token scope: prompts:read.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
content*string

The prompt's text as the editor holds it, at most 100,000 characters

Response Body

checks: at most 20 of {code, ...}: placeholder {text, line}, repeats_builtin {topic, line}, template_invalid, tool_variables {variables}, boundaries_missing, citations_missing

Example Request
curl -X POST 'http://localhost:7091/api/check_prompt' \  -H 'Content-Type: application/json' \  -d '{  "content": "string"}'
Example Response
Empty