# Statement Execution

Statement Execution (Lakehouse//RT) is version 2 of the Statement Execution API. It is optimized for
 Lakehouse//RT warehouses, with lower latency and higher concurrency, and takes `warehouse_id` as a path
 parameter on every call. It currently supports Lakehouse//RT warehouses only. The Statement Execution API
 (version 1) works with all SQL warehouse types, including Lakehouse//RT.

## The StatementResponse object

- [statement-execution/object.md](statement-execution/object.md)

## Endpoints

### Execute a SQL statement

- [POST /api/2.0/sql/warehouses/{warehouse_id}/statements](execute-statement.md)

### Get status, manifest, and result first chunk

- [GET /api/2.0/sql/warehouses/{warehouse_id}/statements/{statement_id}](get-statement-result.md)

### Cancel statement execution

- [POST /api/2.0/sql/warehouses/{warehouse_id}/statements/{statement_id}/cancel](cancel-statement.md)

### Get result chunk by index

- [GET /api/2.0/sql/warehouses/{warehouse_id}/statements/{statement_id}/result/chunks/{chunk_index}](get-result-data.md)

