Agent Sessions

Submit sends the next message in the open chat. It posts only "Ask about a company, a promise, or the next step." The opening message already took sequence 0, so this turn is accepted as sequence 1.

post/v1/agent-sessions/{id}/turns

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /v1/agent-sessions/{id}/turns
  • Auth: HTTP bearer

Path parameters

idstring required

Session id.

Example:session_abc123

Stable session id.

Request body

inputstring required

Message text.

Example request

{
  "input": "Ask about a company, a promise, or the next step."
}

Response

Turn accepted.

acceptedboolean required

The turn was queued.

turnSeqinteger required

Sequence of the accepted turn.

Example response

{
  "accepted": true,
  "turnSeq": 1
}

Changes