Przejdź do głównej zawartości

Answer the pending question and resume the same turn

POST 

/api/v2/chat-sessions/:session_id/turns/:turn_id/questions/:message_id/answers

Persists answers before resuming the same turn. There must be one answer array per prompt. The turn stays paused until all pending deferred questions are resolved. Matching replay of an already-resolved question returns the current session; a different action or answer returns 409. If-Match guards the pending question.

Request​

Responses​

Answer persisted and generation resumed

Response Headers
    X-Contract-Version

    Version of the gaius-api-contracts release the backend runs (legalgpt-contracts), sent on every response. Clients compare it with the @legalgpt/contracts version they were built with; both packages share one version per contract.

    Cache-Control

    Prevents storage of sensitive authenticated chat data.

    ETag

    Strong session revision tag. Polish has no suffix; other supported languages append the language code. Use the same Accept-Language on reads and conditional mutations.

    Content-Language

    Language selected for outgoing generic tool-status labels and known HTTP/timeline error text. HTTP reason-phrase titles remain language-neutral.