Create a conversation turn in a thread
Threads
Create a conversation turn in a thread
Ask a query to the agent.
Behaviour:
- Returns 200 with the final answer when the task completes quickly within the request.
- Returns 202 Accepted with the current answer payload when processing continues in the background; clients should poll the turn status or subscribe to updates until completion.
- If
stream=true, the endpoint responds with Server-Sent Events (SSE) and streams tokens/events until completion (content-type: text/event-stream). - If
background=true, the endpoint enqueues processing and returns the created answer immediately.
POST
Create a conversation turn in a thread
Documentation Index
Fetch the complete documentation index at: https://docs.lighton.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Maximum string length:
5000Required range:
1 <= x <= 20Response
Final answer returned synchronously.
running- runningcompleted- completedfailed- failedcancelled- cancelledcancelling- cancelling
Available options:
running, completed, failed, cancelled, cancelling