X

Xata SQL Gateway API

REST discovered

Details
URL
https://{branch}.{region}.xata.tech
Docs
https://xata.io/docs/api-reference/gateway/execute-sql-query
Authentication
Branch PostgreSQL connection string compound discovered Get key ↗
Connection-String: <credential>

Get the branch connection string from the branch overview in the Xata console as described in Branches under Connect, or retrieve branch details/credentials via the control-plane API documented in Get branch details and related branch credential endpoints listed in docs index. This credential is a full PostgreSQL URI like postgres://user:pass@{branch}.{region}.xata.tech/db and is sent as the Connection-String header to the SQL gateway.