---
title: "Test Prompt"
method: POST
path: "/api/v1/intelligence/prompts/{prompt_id}/tests"
tags: ["prompts-ddd", "Admin - Prompts"]
---

# Test Prompt

`POST /api/v1/intelligence/prompts/{prompt_id}/tests`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/intelligence/prompts/{prompt_id}/tests`
- Auth: none declared

Test a prompt with sample inputs.

## Path parameters

- `prompt_id` string, required

## Headers

- `Authorization` string

## Request body

- PromptTest: Model for testing a prompt.
  - `test_inputs` object, required: Input variables for testing
  - `model` string, nullable: Model to use for testing

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
