cURL
Queries
Create Query
POST
cURL
Authorizations
API key passed as a Bearer token in the Authorization header.
Headers
ID of the workspace the request operates on.
Body
application/json
Natural-language content of the query.
Response
Successful Response
Unique identifier of the query.
Natural-language content of the query.
Status of the query: PENDING, PROCESSING, PROCESSED, or FAILED.
Result the query produced.
Ordered steps taken while working toward the final output. Each step is either an assistant text message ({"text": ...}) or a tool invocation ({"tool": ...}). Reasoning parts, tool arguments, and tool outputs are not included, and the final output is not repeated.
- QueryTextStep
- QueryToolStep