GitHub user dosubot[bot] added a comment to the discussion: Unable to Retrieve the query_context Through API After Chart Creation Without Loading Chart in UI?
<!-- Answer --> As of now, no version of Superset—including the latest 5.0.0—officially supports programmatic generation or retrieval of `query_context` via API or backend without frontend interaction. The generation of `query_context` still relies on frontend logic when the chart is loaded in the UI, and there is no documented API or backend endpoint that exposes this functionality in any released version [[source](https://github.com/apache/superset/discussions/34312)]. If you need full automation, you would have to implement a custom backend solution or use browser automation to trigger the frontend logic. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/56496a65-1a14-4b9c-a081-d3898cec74c0?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/56496a65-1a14-4b9c-a081-d3898cec74c0?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/56496a65-1a14-4b9c-a081-d3898cec74c0?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/56496a65-1a14-4b9c-a081-d3898cec74c0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/56496a65-1a14-4b9c-a081-d3898cec74c0?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/56496a65-1a14-4b9c-a081-d3898cec74c0?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/56496a65-1a14-4b9c-a081-d3898cec74c0?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34750) GitHub link: https://github.com/apache/superset/discussions/34750#discussioncomment-14160389 ---- This is an automatically sent email for notifications@superset.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org