---
title: "Test Prompt"
method: POST
path: "/api/admin/prompts/{prompt_id}/test"
tags: ["Prompts"]
---

# Test Prompt

`POST /api/admin/prompts/{prompt_id}/test`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/admin/prompts/{prompt_id}/test`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Test a prompt with sample input.

## Path parameters

- `prompt_id` integer, required

## Request body

- TestPromptRequest
  - `version_id` string, uuid, nullable
  - `test_input` string, required

## Response `200`

Successful Response

- TestPromptResponse
  - `success` boolean, required
  - `result` object, nullable
  - `error` string, nullable
  - `model_used` string, required
  - `prompt_version` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getplace/apis/getplace-insights-api.md) - [All operations](https://skmtc.dev/getplace/apis/getplace-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getplace/apis/getplace-insights-api/revisions/0f337387603f?raw)
