Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Generate Eino/CALM AI draft reply

POST/v1/ai/draft
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Request body
requiredapplication/json
conversation_contextstring
conversation_idstring
messagesAIDraftMessageInput[] | null
Show properties
Array of AIDraftMessageInput
contentstringrequired
Message content
rolestring
Message role (customer/agent/system)
Responses
200OK
draftstringrequired
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/ai/draft" \
  -H "Content-Type: application/json" \
  -d '{
  "conversation_context": "string",
  "conversation_id": "string",
  "messages": [
    {
      "content": "string",
      "role": "string"
    }
  ]
}'
Response
{
  "draft": "string"
}