fix_injection
paid
evm

Detect prompt injection + return sanitized prompt ($0.025 USDC)

Detect prompt injection (instruction override, role hijack, data exfiltration, delimiter attacks) and return a sanitized prompt

post/api/fix-injection

Request

  • Base URL: https://promptqualityscore.com
  • URL: https://promptqualityscore.com/api/fix-injection
  • Auth: one of:
    • API key in header X-PAYMENT
    • API key in header Authorization

Request body

promptstring required

Prompt to scan for injection attempts

Response

Scoring result

pqs_version'2.0' required
injection_detectedboolean required
injection_confidencenumber required
injection_pattern'instruction_override' | 'role_hijack' | 'data_exfiltration' | 'delimiter_attack' | 'encoding_evasion' | 'jailbreak' | 'null' nullable
matched_signalsstring[]

Short labels for the heuristics or LLM signals that fired

sanitized_promptstring required

Prompt with injection-like fragments removed; equals original when nothing was detected

detector'heuristic' | 'llm' | 'heuristic+llm'

Which detection path produced the verdict

powered_bystring

Changes

No recorded changes to this operation across all 1 revision of this API.