Register an OAuth client
POST
/api/v1/oauth/register
const url = 'http://localhost:3000/api/v1/oauth/register';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"client_name":"example","redirect_uris":["example"],"grant_types":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/oauth/register \ --header 'Content-Type: application/json' \ --data '{ "client_name": "example", "redirect_uris": [ "example" ], "grant_types": [ "example" ] }'RFC 7591 dynamic registration. Public clients: no secret, PKCE (S256) instead. Redirects: https, http to loopback, or an app scheme.
No key needed.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
client_name
string
redirect_uris
Array<string>
grant_types
Array<string>
Examplegenerated
{ "client_name": "example", "redirect_uris": [ "example" ], "grant_types": [ "example" ]}Responses
Section titled “Responses”The client
Media typeapplication/json
object
client_id
required
string
client_name
required
string
redirect_uris
required
Array<string>
Examplegenerated
{ "client_id": "example", "client_name": "example", "redirect_uris": [ "example" ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}