API DCR auth0

DCR with Auth0 API

1.0.0OAS 3.1

API demonstrating Dynamic Client Registration with Auth0

API Base URL
  • Server 1:https://api.example.com

    Main server

Security
bearerAuth (http)

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Register a new client application

Registers a new client application with Auth0 using DCR.

post
https://api.example.com/register

Body

application/json

ClientRegistrationRequest

client_namestringrequired

Name of the client application

redirect_urisarray[string](uri)required

List of allowed redirect URIs

Response

application/json

Successful client registration

ClientRegistrationResponse

client_idstring

The client ID assigned by Auth0

client_secretstring

The client secret (if applicable)

client_namestring

Name of the client application

post/register

Body

{ "client_name": "My App", "redirect_uris": [ "https://myapp.example.com/callback" ] }
 
application/json

Retrieve a list of resources

Retrieves a list of resources. Requires a valid access token.

get
https://api.example.com/resources

Query Parameters

limitinteger(int32)

Maximum number of items to return

Default:20

>= 1<= 100

offsetinteger(int32)

Number of items to skip for pagination

Default:0

>= 0

Response

application/json

Successful operation

ResourceList

dataarray[object]

Example:{"id":"123e4567-e89b-12d3-a456-426614174000","name":"Sample Resource"}

Show Child Parameters
metaobject
Show Child Parameters
get/resources
 
application/json

ClientRegistrationRequest

object
client_namestringrequired

Name of the client application

redirect_urisarray[string](uri)required

List of allowed redirect URIs

Example

ClientRegistrationResponse

object
client_idstring

The client ID assigned by Auth0

client_secretstring

The client secret (if applicable)

client_namestring

Name of the client application

Example