Skip to main content
POST
/
v1
/
conversations
/
{id}
/
ai-suggestion
/
send
Send the pending AI suggestion to the conversation channel
curl --request POST \
  --url https://dev.flextell.ai/api/v1/conversations/{id}/ai-suggestion/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Tenant: <x-tenant>' \
  --data '
{
  "message": "<string>",
  "take_over_agent": true
}
'
{
  "success": "<string>",
  "data": {
    "status": "<string>",
    "message_id": "<string>",
    "conversation_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Path Parameters

id
integer
required

The conversation identifier

Body

application/json
send_source
enum<string>
required

The send source (suggestion_as_is or suggestion_edited).

Available options:
suggestion_as_is,
suggestion_edited
message
string | null

The message body.

Maximum string length: 4096
take_over_agent
boolean

Whether to take over the agent after sending.

Response

success
string
required
data
object
required