Polish a draft message in the requested tone.
Rewrites the user's draft message according to the requested tone while preserving meaning, intent, and any technical terms. In the Nurama web app this backs the chat composer's "Polish with Nu" button. Returns the rewritten text plus the credits actually billed and the workspace's balance after deduction. Caps: - `text` is capped at 4000 characters (~1000 input tokens). - Output is capped at ~600 tokens server-side. If the workspace has an `aiCustomPreprompt` configured it is prepended as additional system context (workspace-specific guidance to the model).
Rewrites the user's draft message according to the requested tone while preserving meaning, intent, and any technical terms. In the Nurama web app this backs the chat composer's "Polish with Nu" button.
Returns the rewritten text plus the credits actually billed and the workspace's balance after deduction.
Caps:
textis capped at 4000 characters (~1000 input tokens).- Output is capped at ~600 tokens server-side.
If the workspace has an aiCustomPreprompt configured it is prepended
as additional system context (workspace-specific guidance to the model).
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/ai/polish" \ -H "Content-Type: application/json" \ -d '{ "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c", "text": "string", "toneId": "professional" }'{ "polishedText": "Could you please send me the file when you have a moment? Thank you.", "billedCredits": 3, "balanceAfter": 9997, "eventId": "0193e4a1-b2c3-7000-8000-00000000abcd"}