Skip to main content
POST
Create AI suggestion

Authorizations

Authorization
string
header
required

Bearer token authentication using your API key

Path Parameters

org_id
string
required

The ID of the org

Body

Schema for creating an AI suggestion

action
enum<string>
required

Schema for the action to perform on the suggestion

Available options:
improve,
polish,
formalize,
friendly,
shorten,
reply,
note
text
string

The text to rewrite. Required for every action except reply and note

Maximum string length: 3072
chat_id
string

The chat to draft from. Required for the reply and note actions

Maximum string length: 128

Response

200 - application/json

Schema representing an AI suggestion

suggestion
string
required