# PostgreSQL Wire Protocol

**Canonical:** https://apis.io/apis/postgres/wire-protocol/  
**Provider:** PostgreSQL — https://apis.io/providers/postgres/  
**Base URL:** postgresql://hostname:5432  
**Documentation:** https://www.postgresql.org/docs/current/protocol.html

PostgreSQL Wire Protocol is one of 4 APIs that [PostgreSQL](https://apis.io/providers/postgres/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Database, Wire Protocol, SQL, and Connection Protocol. The published artifact set on APIs.io includes API documentation.

The PostgreSQL frontend/backend protocol is the low-level message-based protocol used by all client drivers (libpq, JDBC, ODBC, psycopg, pgx, node-postgres, etc.) to communicate with the PostgreSQL server over TCP/IP or Unix sockets. Authentication supports password, SCRAM-SHA-256, MD5, GSSAPI, SSPI, certificate, LDAP, and other pluggable methods.

## Machine-readable artifacts (4)

- **Documentation** — https://www.postgresql.org/docs/current/protocol.html
- **Specification** — https://www.postgresql.org/docs/current/protocol-message-formats.html
- **GraphQL** — https://raw.githubusercontent.com/api-evangelist/postgres/refs/heads/main/graphql/postgres-graphql.md
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/postgres/refs/heads/main/apis.yml

## Other PostgreSQL APIs (3)

- [libpq C Client Library](https://apis.io/apis/postgres/libpq/)
- [PostgreSQL JDBC Driver](https://apis.io/apis/postgres/jdbc/)
- [PostgreSQL ODBC Driver (psqlODBC)](https://apis.io/apis/postgres/odbc/)

## Tags

Database, Wire Protocol, SQL, Connection Protocol

---

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