Pular para o conteúdo

POST /v1/copilot/rewrite

POST
/v1/copilot/rewrite
curl --request POST \
--url https://seu-endereco-da-api/v1/copilot/rewrite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "mode": "shorten", "text": "example", "conversationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Permissão que a Chave de acesso precisa: Enviar mensagem e atender (conversations:write).

Media typeapplication/json
object
mode
required
string
Allowed values: shorten kinder formal
text
required
string
<= 4000 characters
conversationId
string format: uuid
Media typeapplication/json
object
text
required
string
blocked
required
string
nullable
Allowed values: disabled daily_cap no_credit

Example

{
"blocked": "disabled"
}