# Rewrite a rough prompt into a better one

> POST /agents/enhance. HeyRik API parameters and documented request and response examples.

Source: https://www.heyrik.com/docs/api-reference/agent-settings/post-agents-enhance-rewrite-a-rough-prompt-into-a-better-one

POST https://server.heyrik.com/api/v1/agents/enhance

## Headers

Authorization: Bearer $HEYRIK_API_KEY (required). Keep your key on your server.

## Parameters

- description (string, required): The rough prompt or description to improve.

## Notes

Returns improved text only — it saves nothing. PATCH the agent with the result if you like it.

## Request example

```sh
curl -X POST https://server.heyrik.com/api/v1/agents/enhance \
  -H "Authorization: Bearer $HEYRIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "description": "answer questions about orders" }'
```
