{
 "openapi": "3.1.0",
 "info": {
  "title": "Novi UDM Data (v4) API",
  "version": "SQL API v2",
  "summary": "SQL over HTTPS against Novi's views in Snowflake.",
  "description": "Run SQL against Novi's views over HTTPS and get the rows back as JSON. The Novi UDM Data (v4) API is Snowflake's SQL API, version 2, called on your Snowflake account URL with a programmatic access token. Queries read the same views as every other way of receiving Novi UDM Data, in the database `NOVI_DATA_ACCESS`.\n\n- [All views](/data/tables/): every view and column you can query.\n- [Delivery options](/data/delivery/): getting an account, your account URL and a token.\n- [Data model](/data/model/): what one row means in each view and how the views join.\n\nThis reference covers what you need to query Novi UDM Data. For the rest of the SQL API, see [Snowflake's SQL API documentation](https://docs.snowflake.com/en/developer-guide/sql-api/index).",
  "contact": {
   "name": "Novi support",
   "email": "support@novilabs.com"
  }
 },
 "externalDocs": {
  "description": "Snowflake SQL API documentation",
  "url": "https://docs.snowflake.com/en/developer-guide/sql-api/index"
 },
 "servers": [
  {
   "url": "{account_url}",
   "description": "Your Snowflake account URL, shown in your welcome email",
   "variables": {
    "account_url": {
     "default": "https://myorganization-myaccount.snowflakecomputing.com",
     "description": "Your Snowflake account URL from your welcome email, with no trailing slash"
    }
   }
  }
 ],
 "security": [
  {
   "programmaticAccessToken": []
  }
 ],
 "tags": [
  {
   "name": "Statements",
   "description": "Run a query, read its results and cancel it."
  }
 ],
 "paths": {
  "/api/v2/statements": {
   "post": {
    "tags": [
     "Statements"
    ],
    "operationId": "SubmitStatement",
    "summary": "Run a query",
    "description": "Send a SQL statement and get the first part of the results back as JSON. Snowflake waits up to 45 seconds for the query to finish. If it is still running, the answer is `202` with a `statementHandle`: poll Get results with it.\n\n**Reader account.** Use warehouse `NOVI_WH`, database `NOVI_DATA_ACCESS` and role `DATA_READER`.\n\n**Your own Snowflake account.** Use database `NOVI_DATA_ACCESS` with the warehouse and role from your setup script.\n\n**Headers.** Send `Authorization: Bearer <token>`, `Content-Type: application/json`, `Accept: application/json` and a `User-Agent` that names your application.\n\n**Long queries.** Set `async=true` to get the handle at once. Handle `202` either way: without `async=true`, Snowflake does not guarantee a synchronous answer.\n\n**Context.** Set `database`, `schema`, `warehouse` and `role` in the body. `USE` and `ALTER SESSION` work only inside a [multi-statement request](https://docs.snowflake.com/en/developer-guide/sql-api/submitting-multiple-statements).\n\n**Reading values.** Every value in `data` is a JSON string, whatever the column type, or `null` for SQL NULL. Convert them yourself. DATE values come back as a count of days since the epoch and timestamps as epoch numbers, unless you set an output format in `parameters`, for example `\"date_output_format\": \"YYYY-MM-DD\"`.\n\n**Large results.** Snowflake splits results into partitions and sizes them itself. This response holds partition 0. `resultSetMetaData.partitionInfo` lists every partition: fetch the others with Get results and `partition=1`, `partition=2` and so on.",
    "parameters": [
     {
      "$ref": "#/components/parameters/async"
     },
     {
      "$ref": "#/components/parameters/userAgent"
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StatementRequest"
       },
       "examples": {
        "starter": {
         "summary": "First 100 wells (reader account)",
         "value": {
          "statement": "SELECT WELL_KEY, WELL_NAME, BASIN, STATE, COUNTY, STATUS FROM NOVI_WELLS.WELL LIMIT 100",
          "warehouse": "NOVI_WH",
          "database": "NOVI_DATA_ACCESS",
          "role": "DATA_READER"
         }
        },
        "filtered": {
         "summary": "Wells in one state, with a bind variable",
         "value": {
          "statement": "SELECT WELL_KEY, WELL_NAME, STATE FROM NOVI_WELLS.WELL WHERE STATE = ? LIMIT 100",
          "warehouse": "NOVI_WH",
          "database": "NOVI_DATA_ACCESS",
          "role": "DATA_READER",
          "bindings": {
           "1": {
            "type": "TEXT",
            "value": "TX"
           }
          }
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The query finished. The body holds partition 0 of the results and metadata for every partition.",
      "headers": {
       "Link": {
        "$ref": "#/components/headers/Link"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ResultSet"
        },
        "examples": {
         "filtered": {
          "summary": "Answer to the bind-variable example (synthetic values)",
          "value": {
           "resultSetMetaData": {
            "numRows": 1,
            "format": "jsonv2",
            "rowType": [
             {
              "name": "WELL_KEY",
              "type": "text"
             },
             {
              "name": "WELL_NAME",
              "type": "text"
             },
             {
              "name": "STATE",
              "type": "text"
             }
            ],
            "partitionInfo": [
             {
              "rowCount": 1,
              "uncompressedSize": 52
             }
            ]
           },
           "data": [
            [
             "US:API10:4212340567",
             "Hawk 14-2H",
             "TX"
            ]
           ],
           "code": "090001",
           "statementStatusUrl": "/api/v2/statements/536fad38-b564-4dc5-9892-a4543504df6c",
           "sqlState": "00000",
           "statementHandle": "536fad38-b564-4dc5-9892-a4543504df6c",
           "message": "Statement executed successfully.",
           "createdOn": 1597090533987
          }
         }
        }
       }
      }
     },
     "202": {
      "description": "Still running after 45 seconds, or you set `async=true`. Poll Get results with the `statementHandle`.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/QueryStatus"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "408": {
      "description": "The query ran longer than `timeout`, and Snowflake cancelled it.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/QueryStatus"
        }
       }
      }
     },
     "422": {
      "description": "The statement failed, for example with a SQL compilation error. `code` and `message` say why.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/QueryFailureStatus"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     },
     "500": {
      "$ref": "#/components/responses/InternalServerError"
     },
     "503": {
      "$ref": "#/components/responses/ServiceUnavailable"
     },
     "504": {
      "$ref": "#/components/responses/GatewayTimeout"
     }
    }
   }
  },
  "/api/v2/statements/{statementHandle}": {
   "get": {
    "tags": [
     "Statements"
    ],
    "operationId": "GetStatementStatus",
    "summary": "Get results",
    "description": "Check a query you ran and read its results. `200` means it finished and the body holds the partition you asked for. `202` means it is still running: ask again.\n\n**Partitions.** Partition 0 comes in the first answer that holds results, from Run a query or from this call. Ask for `partition=1` up to the number of entries in `partitionInfo` minus one. These answers are gzip-compressed (`Content-Encoding: gzip`) and carry no metadata, so keep `resultSetMetaData` from the first answer.\n\n**Link header.** `Link` holds URLs for the `first`, `next`, `prev` and `last` partitions.\n\n**Retries.** While a query runs, Snowflake can also answer `429`. Retry with backoff.",
    "parameters": [
     {
      "$ref": "#/components/parameters/statementHandle"
     },
     {
      "$ref": "#/components/parameters/partition"
     },
     {
      "$ref": "#/components/parameters/userAgent"
     }
    ],
    "responses": {
     "200": {
      "description": "The query finished. The body holds the requested partition of the results.",
      "headers": {
       "Link": {
        "$ref": "#/components/headers/Link"
       },
       "Content-Encoding": {
        "description": "`gzip` on answers for a partition after the first.",
        "schema": {
         "type": "string"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ResultSet"
        }
       }
      }
     },
     "202": {
      "description": "Still running. Ask again.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/QueryStatus"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "The statement failed. `code` and `message` say why.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/QueryFailureStatus"
        }
       }
      }
     },
     "429": {
      "$ref": "#/components/responses/TooManyRequests"
     },
     "500": {
      "$ref": "#/components/responses/InternalServerError"
     },
     "503": {
      "$ref": "#/components/responses/ServiceUnavailable"
     },
     "504": {
      "$ref": "#/components/responses/GatewayTimeout"
     }
    }
   }
  },
  "/api/v2/statements/{statementHandle}/cancel": {
   "post": {
    "tags": [
     "Statements"
    ],
    "operationId": "CancelStatement",
    "summary": "Cancel a query",
    "description": "Stop a running query, using the `statementHandle` from Run a query.",
    "parameters": [
     {
      "$ref": "#/components/parameters/statementHandle"
     },
     {
      "$ref": "#/components/parameters/userAgent"
     }
    ],
    "responses": {
     "200": {
      "description": "Snowflake cancelled the query.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CancelStatus"
        },
        "example": {
         "code": "000604",
         "sqlState": "57014",
         "message": "SQL execution canceled",
         "statementHandle": "019c07bc-0000-df4f-0000-001000067c3e",
         "statementStatusUrl": "/api/v2/statements/019c07bc-0000-df4f-0000-001000067c3e"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/BadRequest"
     },
     "401": {
      "$ref": "#/components/responses/Unauthorized"
     },
     "403": {
      "$ref": "#/components/responses/Forbidden"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     },
     "422": {
      "description": "Snowflake could not cancel it, for example because no statement has that handle. `message` says why.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/QueryFailureStatus"
        },
        "example": {
         "code": "000709",
         "message": "Statement 019c07bc-0000-df4f-0000-001000067c3e not found",
         "sqlState": "02000",
         "statementHandle": "019c07bc-0000-df4f-0000-001000067c3e"
        }
       }
      }
     },
     "500": {
      "$ref": "#/components/responses/InternalServerError"
     },
     "503": {
      "$ref": "#/components/responses/ServiceUnavailable"
     },
     "504": {
      "$ref": "#/components/responses/GatewayTimeout"
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "programmaticAccessToken": {
    "type": "http",
    "scheme": "bearer",
    "description": "A Snowflake programmatic access token, sent as `Authorization: Bearer <token>`. A reader account's welcome email holds a starter token, which is short-lived: [replace it with a one-year token](/data/delivery/#replace-the-starter-token). On your own Snowflake account, Step 5b of your setup script creates one. Save a new token at once: it cannot be shown again."
   }
  },
  "parameters": {
   "statementHandle": {
    "name": "statementHandle",
    "in": "path",
    "required": true,
    "description": "The `statementHandle` from Run a query.",
    "schema": {
     "type": "string",
     "format": "uuid",
     "example": "e4ce975e-f7ff-4b5e-b15e-bf25f59371ae"
    }
   },
   "async": {
    "name": "async",
    "in": "query",
    "required": false,
    "description": "Set to `true` to return the statement handle at once. Otherwise Snowflake returns the results if the query finishes within 45 seconds, and the handle if it does not.",
    "schema": {
     "type": "boolean",
     "example": true
    }
   },
   "partition": {
    "name": "partition",
    "in": "query",
    "required": false,
    "description": "The partition of results to return, from 0 to the number of partitions minus one.",
    "schema": {
     "type": "integer",
     "format": "int64",
     "minimum": 0,
     "example": 1
    }
   },
   "userAgent": {
    "name": "User-Agent",
    "in": "header",
    "required": true,
    "description": "Your application's name and version, for example `myApplication/1.0`. Snowflake requires a value that complies with RFC 7231.",
    "schema": {
     "type": "string",
     "example": "myApplication/1.0"
    }
   }
  },
  "headers": {
   "Link": {
    "description": "URLs for other partitions of the results, each with a `rel` of `first`, `next`, `prev` or `last`.",
    "schema": {
     "type": "string"
    }
   }
  },
  "schemas": {
   "StatementRequest": {
    "type": "object",
    "description": "The statement to run and where to run it.",
    "properties": {
     "statement": {
      "type": "string",
      "description": "The SQL to run. Name views with their schema, for example `NOVI_WELLS.WELL`, or set `schema`.",
      "example": "SELECT WELL_KEY, WELL_NAME, BASIN, STATE, COUNTY, STATUS FROM NOVI_WELLS.WELL LIMIT 100"
     },
     "timeout": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Seconds before Snowflake cancels the statement. `0` sets the maximum, 604800 seconds (7 days). If you leave it out, the account's `STATEMENT_TIMEOUT_IN_SECONDS` applies.",
      "example": 60
     },
     "database": {
      "type": "string",
      "description": "Database to run in: `NOVI_DATA_ACCESS`. Case-sensitive. If you leave it out, your user's default namespace applies.",
      "example": "NOVI_DATA_ACCESS"
     },
     "schema": {
      "type": "string",
      "description": "Schema to run in, for example `NOVI_WELLS`. Case-sensitive. If you leave it out, your user's default namespace applies.",
      "example": "NOVI_WELLS"
     },
     "warehouse": {
      "type": "string",
      "description": "Warehouse that runs the query: `NOVI_WH` on a reader account, or the warehouse from your setup script on your own Snowflake account. Case-sensitive. If you leave it out, your user's default warehouse applies.",
      "example": "NOVI_WH"
     },
     "role": {
      "type": "string",
      "description": "Role to run as: `DATA_READER` on a reader account, or the role from your setup script on your own Snowflake account. Case-sensitive. If you leave it out, your user's default role applies.",
      "example": "DATA_READER"
     },
     "bindings": {
      "type": "object",
      "description": "Values for `?` placeholders in `statement`, keyed by position from `\"1\"`. Each value is a string, with a Snowflake binding `type` such as `TEXT` or `FIXED`. See [bind variables](https://docs.snowflake.com/en/developer-guide/sql-api/submitting-requests#label-sql-api-bind-variables) for every type.",
      "additionalProperties": {
       "type": "object",
       "properties": {
        "type": {
         "type": "string",
         "example": "TEXT"
        },
        "value": {
         "type": "string",
         "example": "TX"
        }
       }
      },
      "example": {
       "1": {
        "type": "TEXT",
        "value": "TX"
       }
      }
     },
     "parameters": {
      "$ref": "#/components/schemas/StatementParameters"
     }
    }
   },
   "StatementParameters": {
    "type": "object",
    "description": "Session parameters for this request. Snowflake ignores account and user settings for the output formats, so set them here. Snowflake's reference lists [every parameter the SQL API accepts](https://docs.snowflake.com/en/developer-guide/sql-api/reference#label-sql-api-reference-statements-parameters).",
    "properties": {
     "date_output_format": {
      "type": "string",
      "description": "Format for DATE values.",
      "example": "YYYY-MM-DD"
     },
     "time_output_format": {
      "type": "string",
      "description": "Format for TIME values.",
      "example": "HH24:MI:SS"
     },
     "timestamp_output_format": {
      "type": "string",
      "description": "Format for the TIMESTAMP data type alias.",
      "example": "YYYY-MM-DD HH24:MI:SS.FF3 TZHTZM"
     },
     "timestamp_ltz_output_format": {
      "type": "string",
      "description": "Format for TIMESTAMP_LTZ values.",
      "example": "YYYY-MM-DD HH24:MI:SS.FF3"
     },
     "timestamp_ntz_output_format": {
      "type": "string",
      "description": "Format for TIMESTAMP_NTZ values.",
      "example": "YYYY-MM-DD HH24:MI:SS.FF3"
     },
     "timestamp_tz_output_format": {
      "type": "string",
      "description": "Format for TIMESTAMP_TZ values.",
      "example": "YYYY-MM-DD HH24:MI:SS.FF3"
     },
     "timezone": {
      "type": "string",
      "description": "Time zone for the statement.",
      "example": "america/los_angeles"
     },
     "query_tag": {
      "type": "string",
      "description": "A query tag to attach to the statement.",
      "example": "tag-1234"
     }
    }
   },
   "ResultSet": {
    "type": "object",
    "description": "A finished query: status, result metadata and one partition of rows.",
    "properties": {
     "code": {
      "type": "string",
      "description": "Snowflake status code. `090001` means the statement ran successfully.",
      "example": "090001"
     },
     "sqlState": {
      "type": "string",
      "example": "00000"
     },
     "message": {
      "type": "string",
      "example": "Statement executed successfully."
     },
     "statementHandle": {
      "type": "string",
      "format": "uuid",
      "description": "The statement's ID. Use it with Get results and Cancel a query.",
      "example": "536fad38-b564-4dc5-9892-a4543504df6c"
     },
     "createdOn": {
      "type": "integer",
      "format": "int64",
      "description": "When the statement started, in milliseconds since the epoch.",
      "example": 1597090533987
     },
     "statementStatusUrl": {
      "type": "string",
      "format": "uri-reference",
      "description": "Path to the statement's status and results.",
      "example": "/api/v2/statements/536fad38-b564-4dc5-9892-a4543504df6c"
     },
     "resultSetMetaData": {
      "$ref": "#/components/schemas/ResultSetMetaData"
     },
     "data": {
      "type": "array",
      "description": "Rows of this partition. Each row is an array of column values in `rowType` order, each a JSON string or `null`.",
      "items": {
       "type": "array",
       "items": {
        "type": [
         "string",
         "null"
        ]
       }
      }
     }
    }
   },
   "ResultSetMetaData": {
    "type": "object",
    "description": "Columns, row count and partitions of the whole result. Sent with the first partition only.",
    "properties": {
     "numRows": {
      "type": "integer",
      "format": "int64",
      "description": "Total rows across all partitions.",
      "example": 100
     },
     "format": {
      "type": "string",
      "enum": [
       "jsonv2"
      ],
      "description": "Format of `data`. Always `jsonv2`."
     },
     "rowType": {
      "type": "array",
      "description": "One entry per column, in column order.",
      "items": {
       "$ref": "#/components/schemas/RowType"
      }
     },
     "partitionInfo": {
      "type": "array",
      "description": "One entry per partition. The first describes the rows in this response.",
      "items": {
       "$ref": "#/components/schemas/PartitionInfo"
      }
     }
    }
   },
   "RowType": {
    "type": "object",
    "description": "One column of the result.",
    "properties": {
     "name": {
      "type": "string",
      "description": "Column name.",
      "example": "WELL_KEY"
     },
     "type": {
      "type": "string",
      "description": "Snowflake data type of the column.",
      "example": "text"
     },
     "length": {
      "type": [
       "integer",
       "null"
      ],
      "format": "int64",
      "description": "Length of the column."
     },
     "precision": {
      "type": [
       "integer",
       "null"
      ],
      "format": "int64",
      "description": "Precision of the column."
     },
     "scale": {
      "type": [
       "integer",
       "null"
      ],
      "format": "int64",
      "description": "Scale of the column."
     },
     "nullable": {
      "type": "boolean",
      "description": "Whether the column can hold NULL."
     }
    }
   },
   "PartitionInfo": {
    "type": "object",
    "description": "Size of one partition.",
    "properties": {
     "rowCount": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Rows in the partition.",
      "example": 12288
     },
     "uncompressedSize": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Partition size in bytes, uncompressed.",
      "example": 124067
     },
     "compressedSize": {
      "type": "integer",
      "format": "int64",
      "minimum": 0,
      "description": "Partition size in bytes, compressed. Not always present.",
      "example": 29591
     }
    }
   },
   "QueryStatus": {
    "type": "object",
    "description": "A query that is still running or was cancelled.",
    "required": [
     "statementHandle"
    ],
    "properties": {
     "code": {
      "type": "string",
      "description": "Snowflake status code. `333334` means the query is still running.",
      "example": "333334"
     },
     "sqlState": {
      "type": "string"
     },
     "message": {
      "type": "string",
      "example": "Asynchronous execution in progress. Use provided query id to perform query monitoring and management."
     },
     "statementHandle": {
      "type": "string",
      "format": "uuid",
      "description": "The statement's ID. Use it with Get results and Cancel a query.",
      "example": "019c06a4-0000-df4f-0000-00100006589e"
     },
     "createdOn": {
      "type": "integer",
      "format": "int64",
      "description": "When the statement started, in milliseconds since the epoch.",
      "example": 1597090533987
     },
     "statementStatusUrl": {
      "type": "string",
      "format": "uri-reference",
      "description": "Path to the statement's status and results.",
      "example": "/api/v2/statements/019c06a4-0000-df4f-0000-00100006589e"
     }
    }
   },
   "QueryFailureStatus": {
    "type": "object",
    "description": "A statement that failed.",
    "required": [
     "message",
     "statementHandle"
    ],
    "properties": {
     "code": {
      "type": "string",
      "description": "Snowflake error code. `message` describes the error.",
      "example": "000904"
     },
     "sqlState": {
      "type": "string",
      "example": "42000"
     },
     "message": {
      "type": "string",
      "example": "SQL compilation error: error line 1 at position 7\ninvalid identifier 'AFAF'"
     },
     "statementHandle": {
      "type": "string",
      "format": "uuid",
      "example": "019c0728-0000-df4f-0000-00100006606e"
     },
     "createdOn": {
      "type": "integer",
      "format": "int64",
      "description": "When the statement started, in milliseconds since the epoch.",
      "example": 1597090533987
     },
     "statementStatusUrl": {
      "type": "string",
      "format": "uri-reference",
      "description": "Path to the statement's status."
     }
    }
   },
   "CancelStatus": {
    "type": "object",
    "description": "The outcome of a cancel request.",
    "required": [
     "statementHandle"
    ],
    "properties": {
     "code": {
      "type": "string",
      "description": "Snowflake status code. Read it with `message`."
     },
     "sqlState": {
      "type": "string"
     },
     "message": {
      "type": "string"
     },
     "statementHandle": {
      "type": "string",
      "format": "uuid"
     },
     "statementStatusUrl": {
      "type": "string",
      "format": "uri-reference",
      "description": "Path to the statement's status."
     }
    }
   },
   "Error": {
    "type": "object",
    "description": "A request Snowflake rejected. The body may include a code and message.",
    "properties": {
     "code": {
      "type": "string",
      "description": "Snowflake error code."
     },
     "message": {
      "type": "string"
     }
    }
   }
  },
  "responses": {
   "BadRequest": {
    "description": "The request body is invalid or malformed. Fix it before you retry.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "code": "390142",
       "message": "Incoming request does not contain a valid payload."
      }
     }
    }
   },
   "Unauthorized": {
    "description": "The token is missing, invalid or expired. Use a valid token to retry.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      }
     }
    }
   },
   "Forbidden": {
    "description": "Forbidden. Snowflake returns this when the SQL API is not enabled."
   },
   "NotFound": {
    "description": "The URL is not a SQL API endpoint. Check your account URL and the path."
   },
   "TooManyRequests": {
    "description": "Too many requests, or too many at once. Retry with exponential backoff and jitter.",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/Error"
      },
      "example": {
       "code": "390505",
       "message": "Too many requests."
      }
     }
    }
   },
   "InternalServerError": {
    "description": "Snowflake hit an unrecoverable error. The body can include a code and message."
   },
   "ServiceUnavailable": {
    "description": "Snowflake timed out before processing the request. Retry with exponential backoff and jitter."
   },
   "GatewayTimeout": {
    "description": "Snowflake timed out before processing the request. Retry with exponential backoff and jitter."
   }
  }
 }
}
