---
title: "WebSocket wire protocol proxy"
method: GET
path: "/v2"
tags: ["Gateway"]
---

# WebSocket wire protocol proxy

`GET /v2`

Upgrade to a WebSocket connection that proxies the PostgreSQL wire protocol.
The client sends and receives PostgreSQL protocol messages over binary WebSocket frames.

Authentication is handled via the PostgreSQL startup message within the wire protocol,
using the same connection-string hostname conventions as the HTTP SQL endpoint.

## Other responses

- `101` — Switching Protocols — WebSocket connection established
- `400` — Bad request — unable to upgrade connection

---

[API](https://skmtc.dev/xataio/apis/xata-api.md) · [All operations](https://skmtc.dev/xataio/apis/xata-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xataio/xata-api/revisions/09e83097cbe5/schema)
