Back

POST /oauth/register

Route source: app/oauth/register/route.ts. Access: Public OAuth protocol endpoint; client and PKCE values are validated. Status codes are read from the route implementation.

POST/oauth/register

Access

Public protocol route

Request

JSON body follows validation in route source

The accepted fields and validation are implemented in app/oauth/register/route.ts; parsed by JSON.

Synthetic curl example
curl -i -X POST 'https://portal.rfi-irfos.com/oauth/register' \
  -H 'Content-Type: application/json' \
  --data '{"client_name":"Synthetic agent","redirect_uris":["http://127.0.0.1:43123/callback"],"grant_types":["authorization_code"],"response_types":["code"],"token_endpoint_auth_method":"none"}'

Response

The handler returns JSON. Response fields are defined in the linked route source.

200 201 400 429 503

The linked source file contains the authoritative field validation and response structure.

Error codes

  • 400 · Request or input validation failed
  • 429 · Request limit reached
  • 503 · Service or database is unavailable

Code evidence

app/oauth/register/route

Local index↑ ↓ · Enter · Esc