# CrateDB HTTP SQL Endpoint

**Canonical:** https://apis.io/apis/crate-io/cratedb-http-sql-endpoint/  
**Provider:** Crate Io — https://apis.io/providers/crate-io/  
**Base URL:** https://console.cratedb.cloud  
**Documentation:** https://cratedb.com/docs/crate/reference/en/latest/interfaces/http.html

CrateDB HTTP SQL Endpoint is one of 2 APIs that [Crate Io](https://apis.io/providers/crate-io/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include SQL, HTTP, and Database. The published artifact set on APIs.io includes API documentation.

CrateDB's native developer interface: a JSON-over-HTTP SQL endpoint. Clients POST a JSON body ({"stmt": "...", "args": [...], "bulk_args": [[...]]}) to /_sql (default port 4200) and receive cols/rows/rowcount/col_types. PostgreSQL wire protocol is also supported. Errors return a structured {"error": {"code": N, "message": "..."}} envelope with codes in the 4000-5035 range.

## Machine-readable artifacts (1)

- **Documentation** — https://cratedb.com/docs/crate/reference/en/latest/interfaces/http.html

## Other Crate Io APIs (1)

- [CrateDB Cloud API](https://apis.io/apis/crate-io/cratedb-cloud-api/)

## Tags

SQL, HTTP, Database

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/crate-io/cratedb-http-sql-endpoint/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/crate-io/.
