Registro dinâmico de cliente OAuth (RFC 7591)
POST/oauth/register
- Auth
- Requires a token
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.
É assim que o Claude, o ChatGPT e o Cursor se registram sozinhos, sem chave para copiar. `redirect_uris` obrigatório: `https://` qualquer, `http://` só em `localhost`. `token_endpoint_auth_method` `none` (padrão, cliente público com PKCE), `client_secret_post` ou `client_secret_basic` (o segredo volta uma única vez). Limite de 20 registros por hora por IP. Público.
Request body application/json
| Name | Type | Description |
|---|---|---|
redirect_urisrequired | string[] | |
client_nameoptional | string | |
client_urioptional | string | |
logo_urioptional | string | |
token_endpoint_auth_methodoptional | none | client_secret_post | client_secret_basic | |
grant_typesoptional | authorization_code | refresh_token[] |
Responses
| Status | Description |
|---|---|
201 | Cliente registrado (formato da RFC 7591, fora do envelope da API). |
400 | `{ error, error_description }` — `invalid_redirect_uri` ou `invalid_client_metadata`. |
429 | Limite de registros atingido. |
curl example
curl -X POST "https://api.memberfy.net/oauth/register" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"redirect_uris":["string"]}'