{
  "sql.query": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-query",
      "description": "Get SQL search results"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_sql",
          "methods": [
            "POST",
            "GET"
          ]
        }
      ]
    },
    "params": {
      "format": {
        "type": "enum",
        "description": "The format for the response.\nYou can also specify a format using the `Accept` HTTP header.\nIf you specify both this parameter and the `Accept` HTTP header, this parameter takes precedence.",
        "options": [
          "csv",
          "json",
          "tsv",
          "txt",
          "yaml",
          "cbor",
          "smile"
        ]
      }
    },
    "body": {
      "description": "Use the `query` element to start a query. Use the `cursor` element to continue a query.",
      "required": true
    }
  }
}
