# Get a saved AI query
Source: https://docs.file.ai/api-reference/query-workflows/get-a-saved-ai-query

> Returns one saved AI Query with its conversation. Each message that produced a query version carries that version as queryConfig, and isSelected marks the version currently selected in the app.

get /prod/v1/query/sessions/{sessionId}

Returns one saved AI Query with its conversation. Each message that produced a query version carries that version as queryConfig, and isSelected marks the version currently selected in the app.

queryConfig is returned exactly as POST /v1/query/execute accepts it,
so to run the selected version, send its queryConfig to that endpoint
unchanged.
