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

# Rephrase Extension

`POST /rephrase_extension`

## Request

- Base URL: `https://promptperfect.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://promptperfect.xyz/rephrase_extension`
- Auth: none declared

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