---
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`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/prompt_enhancer/enhance-prompt`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

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.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
