---
id: execute-a-sql-query
title: "Execute a SQL query"
description: "Execute a SQL query"
sidebar_label: "Execute a SQL query"
hide_title: true
hide_table_of_contents: true
api: eJztWVFv2zYQ/isEMaAJptRJ1wGFij6kWYqmzdq0drENceDS0sVmQ5EKeXLiGfrvw5GSLDty67YYigJ5skzeHXnf3X06Ugtu4boAh89NOufxgidGI2ikR5HnSiYCpdG9T85oGnPJFDJBT7k1OViU4LyaQKHMhB51oZQYK+Ax2gIijvMceMwdWqknvIx4oiRoHMl0O2kUbpQBTs128qlAMRYOKvvVvNQIE7AkALe50OmI5D5jcGyMAqFJofb9y5LXBdj5qcwkfka+tRVb6EM318l21pfYfxEEBwoSHAk3Srb10l2rFl4tU9dqBKlEY7eNGIrxdnKQ5UognAkrMredSpaPkCRGWmSwhQqBDNeFtJDy+HwlOYLLF42KGX+CBHnEUSLZ48e3kBS0vbkyIu0H9H0CiSxXsJL29YIr2d0abCfxcnglVw/WUjP4E5IvPLfT66CdPWG6zo+l/bU0qMQo0C2Z1fguJ3wYW3/XotWaWQvKEnwqR3CJlTmRCI95/90p814woVOWB1PtENEWfcxcbrQL3PJof/97mMmoItP+USKEPFuNeNmkgLBWzGsS+TqNEDpIR9+0nsekY+9ToSeQjoKHl8ZmAnlMu4M9lBnwDXzZWrNV4em4s8DT8ckmptTpH4hZa1IX2bias9bYP8E5MdmmDgkgX01pfwPPwC1a0QnWCpEvFVTNs3c37qeknrwQCRrbqZ1bM7HgXLcBH49NsFhwhUL3Guadlq252WB1maIdhG1nYDet+BluPvale9INkUNhcWMIHQqETr2KwTsZu7/9W4jEB0FiG2krkiupJx+s2kq+cNAdWproRrLcTPbvKOLvfWSbBNjYQgRe/dZiJ9wL17H1L20vvJCk0e8reux+J9V7Ol+UFzWVhee7JBXGa/pZcfygy88gX3vwGab3G2ZQ75jZBtpH+4/u6fyezu/p/J7O7+n856bzqGrmHUqlmC20rmL2+Lta9mzJQ1+CdBWrRpE/FymrbjZidqJnQsnqvAEI1rHcmplMIe3yt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8Z9zkUta8CDAoMSYN1cIPOJULaEczvliQXH6YFVZ8uVZ5vxiWZG+XYh44FzPGld0dl9hT1/AqvAHtfWeieghaBwmCfiXx2bZixahEeXziI+rT6WZSUnHihv6hCFueMx5xI3HxReUHwuvsCI0VMEmZTp15u17nboiqgfyqj5o6nlrh4tFkAgvD6Kx4Ip/2/LyoizL/wCq9VFC
sidebar_class_name: "post api-method"
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Execute a SQL query"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/api/v1/sqllab/execute/"}
  context={"endpoint"}
>

</MethodEndpoint>



Execute a SQL query

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails
  parameters={undefined}
>

</ParamsDetails>

<RequestSchema
  {...require("./execute-a-sql-query.RequestSchema.json")}
>

</RequestSchema>

<StatusCodes
  {...require("./execute-a-sql-query.StatusCodes.json")}
>

</StatusCodes>
