Get a list of the available queries
get/query
Returns a list of all the queries for a given session ID.
1{2 "count": 1,3 "items": [4 {5 "content": "What is the weather today?",6 "errorCode": 0,7 "errorText": "",8 "id": "079b46b9-fbc4-44ce-8cb1-163330e4d812",9 "origin": "user",10 "parentQueryId": "",11 "querySessionId": "4fd000e3-5945-40cf-83ef-0c7fc19fcde1",12 "response": {13 "answer": "The weather today is sunny with a high of 75°F.",14 "context": [],15 "toolCalls": [],16 "usageMetadata": {17 "llmCompletionCost": 0.00024,18 "llmCompletionTokens": 12,19 "llmPromptCost": 0.00016,20 "llmPromptTokens": 8,21 "llmTotalCost": 0.0004,22 "llmTotalTokens": 2023 }24 },25 "target": "collection",26 "targetId": {27 "configuration_ids": [28 "86cc0aae-04ed-4e0f-97d2-53e8b7dc9881"29 ]30 }31 }32 ],33 "limit": 50,34 "name": "queries",35 "start": 036}| Name | Type | Required | Description |
|---|---|---|---|
filter | string or null | false | The criteria for filtering. Supported attributes include id, querySessionId, and parentQueryId. Additional attributes might be added in future releases. |
limit | integer | false | The maximum number of records to be returned. Default: 50 |
start | integer | false | The zero-based offset of the first record to be returned. Default: 0 |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | The request succeeded. | Headers | Schema |
| 400 | Bad Request | The request was invalid. | Schema | |
| 401 | Unauthorized | The user was not authenticated. | Schema | |
| 422 | Unprocessable Entity | The server understands the request but was unable to process the contained instructions. | Schema |