---
title: "Submit Analyze Prompt"
method: POST
path: "/analyze/prompt"
tags: ["Analyze"]
---

# Submit Analyze Prompt

`POST /analyze/prompt`

Analyze a prompt and return the sanitized prompt and the results of the scanners

## Request body

- AnalyzePromptRequest
  - `prompt` string, required
  - `scanners_suppress` string[]

## Response `200`

Successful Response

- AnalyzePromptResponse
  - `is_valid` boolean, required
  - `scanners` object, required
  - `sanitized_prompt` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-17** `b8a920de13b4` — 1 info
  - the endpoint scheme security `HTTPBearer` was added to the API
- **2024-06-17** `b0c4be7063ec` — 1 info
  - added the new optional request property `scanners_suppress`
- **2024-04-16** `e3fbe394a2e7` — 2 info
  - api operation id `analyze_prompt_analyze_prompt_post` removed and replaced with `submit_analyze_prompt_analyze_prompt_post`
  - the endpoint scheme security `HTTPBearer` was removed from the API
- **2024-02-08** `010f3a1d576f` — 1 warning, 1 info
  - removed the optional property `is_cached` from the response with the `200` status
  - the endpoint scheme security `HTTPBearer` was added to the API
- **2023-11-09** `02b06bb8df9c` — 1 warning, 3 info
  - removed the request property `scanners_suppress`
  - api operation id `submit_analyze_prompt_analyze_prompt_post` removed and replaced with `analyze_prompt_analyze_prompt_post`
  - the endpoint scheme security `HTTPBearer` was removed from the API
  - added the optional property `is_cached` to the response with the `200` status

[Change history](https://skmtc.dev/protectai/apis/llm-guard-api/changes/analyze/prompt/post.md)

---

[API](https://skmtc.dev/protectai/apis/llm-guard-api.md) · [All operations](https://skmtc.dev/protectai/apis/llm-guard-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/protectai/llm-guard-api/revisions/b8a920de13b4/schema)
