Rewrite text
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)
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
text
The text to rewrite: typed, dictated, or pasted.
effort
How much effort goes into the rewrite. Higher is slower and more careful.
Allowed values:
length
How long the rewrite is, relative to the text.
Allowed values:
tone
Allowed values:
user_prompt
Freeform instructions for this rewrite, such as who it's for. They take precedence over tone and length.
Response
Successful Response
rewritten_text
Errors
422
Unprocessable Entity Error