/ai

Drafts a rewrite of the caller's text in the requested tone and length, for them to review. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (AIRewriteReq) -> (AIRewriteRes)

post/ai/rewrite/v1

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/ai/rewrite/v1
  • Auth
    HTTP bearer

Request body

textstring required

The text to rewrite: typed, dictated, or pasted.

user_promptstring nullable

Freeform instructions for this rewrite, such as who it's for. They take precedence over tone and length.

effort'low' | 'medium' | 'high'
tone'casual' | 'neutral' | 'formal'
length'shorter' | 'same' | 'longer'

Response

Successful Response

rewritten_textstring required

Changes