Rewrites free text into a chosen tone/length. Technician identity comes from the authenticated request (user_id header handled by /), not from the request body.

Request Information

URI Parameters :

None.

Body Parameters :

JSON body with text, optional tone and optional length.

RewriteTextRequest
NameDescriptionTypeAdditional information
text

The free text to rewrite.

string
tone

Desired tone: "professional" (default) or "customer_friendly".

string
length

Desired length: "concise" (default) or "detailed".

string

Response Information

Resource Description :

200 OK with rewritten_text; 400 Bad Request with a plain-text body for invalid input or a request Claude rejects outright; 503 Service Unavailable with a plain-text body when the AI service could not be reached; 500 Internal Server Error, same plain-text convention, for anything else unexpected.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.