---
title: "Rephrase Extension"
method: POST
path: "/rephrase_extension"
---

# Rephrase Extension

`POST /rephrase_extension`

Rephrases the user prompt and returns the rephrased text along with the user ID.

## Request body

- RephraseExtensionRequest
  - `text` string, required
  - `userId` string, required

## Response `200`

Successful Response

- RephraseExtensionResponse
  - `rephrased` object, required
  - `userId` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/promptperfect/apis/fastapi.md) · [All operations](https://skmtc.dev/promptperfect/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/promptperfect/fastapi/revisions/37d71c422aee/schema)
