# Register an OAuth client

Source: https://immiscible.fly.dev/docs/api/post-oauth-register

`POST /oauth/register`

Dynamic client registration (RFC 7591) for MCP clients. Redirect URIs must be HTTPS or loopback.

## Authentication

OAuth client. Part of the OAuth 2.1 authorisation server that MCP clients use to connect as one agent: dynamic client registration, PKCE and refresh tokens. Called by the MCP client itself, not by your code.

## Request

curl:

```bash
curl -X POST "https://immiscible.fly.dev/oauth/register"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/oauth/register', {
  method: 'POST',
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import requests

res = requests.post(
    "https://immiscible.fly.dev/oauth/register",
)
print(res.status_code, res.json())
```
