Agent

Sends a message and returns a credential for the turn it starts

post/api/v1/agent/conversations/{id}/messages

Request

  • Base URL
    https://api.flexiple.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

messagestring required
client_idstring

A uuid the browser gave the message before sending it. The message is stored under it, so the bubble on screen and the stored message share one id. Refused if already used.

reply_idstring

A uuid the browser gave the reply before sending, so it can draw the reply straight away. The reply is stored under it. Refused if already used, or if it is the message's own id.

replace_fromstring nullable

The id of a message to replace. That message and everything after it is removed, then this one is stored in its place. This is what Retry and Edit both send. Refused if a change below that point has already been applied, or while a turn is running.

Response

Turn ready to run

Changes

No recorded changes to this operation across all 1 revision of this API.