Prompt check
Check a system prompt for weaknesses, offline.
POST /v1/prompt-check
Section titled “POST /v1/prompt-check”Check a system prompt. Operation id: postPromptCheck.
Finds weaknesses in a system prompt: secrets, hidden characters, injection prone wording, missing tool confirmation, unclear instruction hierarchy, a broad role, data exfiltration paths, missing scope and internal details. It runs offline in the engine: no model and no network service is called, and the prompt is never stored. Secrets found in the prompt are masked in the result.
The wording checks cover English. For prompts written mostly in another language they report
error (not assessed), wording_assessed is false and the grade is withheld. The checks
for secrets, hidden characters, links and internal hosts run on any language.
A prompt can be up to 20,000 characters. The request body is capped at 128 KB. The answer is never cached.
Request body
Section titled “Request body”Content type application/json: PromptCheckRequest.
Example:
{ "prompt": "You are the support assistant for Acme. Only answer questions about Acme orders."}Example request
Section titled “Example request”curl -X POST "https://api.kytheos.com/v1/prompt-check" \ -H "content-type: application/json" \ -d '{"prompt":"You are the support assistant for Acme. Only answer questions about Acme orders."}'Responses
Section titled “Responses”The prompt check result.
Body: PromptCheckResult.
The input is missing, malformed or not allowed. The error text says what to change.
Body: Error.
A domain check with a URL instead of a domain:
{ "error": "Enter only the domain name, without http://, paths or ports."}A body that is not the JSON the endpoint expects:
{ "error": "Send JSON like {\"prompt\": \"You are the support assistant for ...\"}."}The request body is larger than the endpoint accepts.
Body: Error.
Example:
{ "error": "That is too long to check."}The client IP address went over the rate limit for this endpoint. Wait and try again.
Body: Error.
Headers:
retry-after: Seconds to wait before trying again. Always60.
Example:
{ "error": "Too many checks from your network. Please wait a minute and try again."}