---
title: "Enhance a user prompt with agent context"
method: POST
path: "/prompt_enhancer/enhance-prompt"
tags: ["PROMPT_ENHANCER"]
---

# Enhance a user prompt with agent context

`POST /prompt_enhancer/enhance-prompt`

Takes a user question and agent name, returns an enhanced prompt with agent-specific context for preview.

## Request body

- EnhancePromptRequest — Request schema for enhancing a prompt.
  - `user_prompt` string, required — The original user question to enhance
  - `agent_name` string, required — Type of the agent for enhancement

## Response `200`

Successful Response

- EnhancePromptResponse — Response schema for enhanced prompt.
  - `enhanced_prompt` string, required — The enhanced/clarified question

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/revisions/aab3fe5c9f05/schema)
