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.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
content*stringThe prompt's text as the editor holds it, at most 100,000 characters
checks: at most 20 of {code, ...}: placeholder {text, line}, repeats_builtin {topic, line}, template_invalid, tool_variables {variables}, boundaries_missing, citations_missing
curl -X POST 'http://localhost:7091/api/check_prompt' \ -H 'Content-Type: application/json' \ -d '{ "content": "string"}'Get a single prompt by ID GET
Get a single prompt by ID. [Personal access token](/API/personal-access-tokens) scope: `prompts:read`.
POST /api/create_prompt POST
Create a new prompt in the workspace the request names (header X-DocsGPT-Workspace, default Personal); in a team it needs the Editor role and the team owns it. [Personal access token](/API/personal-access-tokens) scope: `prompts:write`.