Register Oauth Client
POST /oauth/registerRFC 7591. Refused unless MCP_DYNAMIC_REGISTRATION is on — see the service.
Request body — ClientRegistrationRequest
Section titled “Request body — ClientRegistrationRequest”| Field | Type | Notes | |
|---|---|---|---|
redirect_uris | string[] | required | — |
client_name | string | null | optional | max length 200 |
token_endpoint_auth_method | string | null | optional | max length 40 |
scope | string | null | optional | max length 400 |
grant_types | string[] | null | optional | — |
response_types | string[] | null | optional | — |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
201 | Successful Response | — |
422 | Validation Error | HTTPValidationError |
Example
Section titled “Example”The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.
curl -X POST https://your-deployment.example.com/oauth/register \ -H "Content-Type: application/json" \ -d '{ "redirect_uris": [ "string" ] }'