Skip to main content
POST
Rewrite text with AI post-processing

Authorizations

Authorization
string
header
required

Token from the discovery file. Required on every endpoint except /health.

Body

application/json
text
string
required
mode_id
string<uuid>
preset
string

hyper | note | email | commit. Mutually exclusive with prompt.

prompt
string

Free-form system prompt. Sets preset=custom.

provider
string
model
string

Response

200 - application/json

Rewritten text or business error envelope

ok
boolean
text
string
provider
string
model
string
preset
string
latency_ms
integer
post_processed
boolean

true when an LLM actually ran and produced post-processed text; false when a failure path (bad key, model/network error, offline) returned the raw input unchanged. ok stays true for graceful degradation, so read this to know post-processing happened.