---
title: "Register an OAuth client"
method: POST
path: "/oauth/register"
tags: ["OAuth"]
---

# Register an OAuth client

`POST /oauth/register`

## Request

- The document declares no server URL.
- Auth: none declared

Implements RFC 7591 dynamic client registration for public clients (no client secret). Disabled, returning 404, when dynamic registration is switched off in configuration. No authentication is required.

## Request body

- object
  - `redirect_uris` string[], required

## Response `201`

The registered client.

- object
  - `client_id` string
  - `redirect_uris` string[]

## Other responses

- `400`: Malformed registration request.

## Changes

- **2026-09-28** `d47e9fb78ad0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api/changes/oauth/register/post.md)

---

[API](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api.md) - [All operations](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pgedge/apis/pgedge-postgres-mcp-server-api/revisions/d47e9fb78ad0?raw)
