> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tastelabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt enhancement

> Rewrite a prompt grounded in a brand profile

[`POST /design/prompts/enhance`](/api-reference/endpoint/enhance-prompt) rewrites a free-form prompt so it's grounded in the brand profile of an existing **completed** submission. Unlike submissions, this call is **synchronous**: you get the rewritten prompt back in the response.

Use it to steer downstream generation toward a specific brand's look and feel.

## Request

```json theme={null}
{
  "submission_id": "sub_2f9a1c7b",
  "prompt": "Design a pricing page"
}
```

* `submission_id`: a completed submission whose brand profile grounds the rewrite.
* `prompt`: the free-form prompt to enhance.

## Response

```json theme={null}
{
  "enhanced_prompt": "Design a pricing page ...",
  "brand_name": "Stripe",
  "source_url": "https://stripe.com",
  "model_used": "..."
}
```

The response returns the `enhanced_prompt` along with the brand context used: `brand_name`, `source_url`, and `model_used`.

<Note>
  The referenced submission must have completed extraction. See [Extract a brand](/concepts/submissions) for how to get there.
</Note>
