Pistis
API referenceM C P

Register a client dynamically (RFC 7591)

POST
/oauth/register

A public client with its redirect URIs, good for thirty days of use. Clients with a metadata document need no registration.

Request Body

application/json
  1. body
client_name?string
redirect_uris*array<string>

Response Body

Registered

application/json
  1. response
client_id*string
client_name*string
redirect_uris*array<string>
token_endpoint_auth_method*unknown
grant_types*array<string>
response_types*array<string>
Example Request
curl -X POST 'http://127.0.0.1:7777/oauth/register' \  -H 'Content-Type: application/json' \  -d '{  "client_name": "My MCP client",  "redirect_uris": [    "http://localhost:8765/callback"  ]}'
Example Response
{  "client_id": "string",  "client_name": "string",  "redirect_uris": [    "string"  ],  "token_endpoint_auth_method": "none",  "grant_types": [    "string"  ],  "response_types": [    "string"  ]}