Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

OAuth Dynamic Client Registration API

Download OpenAPI (YAML)Version 1.1.0

Base URL: https:/api.asgardeo.io/t/<ORG_NAME>/api/identity/oauth2/dcr/v1.1

The WSO2 Identity Platform - OAuth2 Dynamic Client Registration API (version 1.1.0).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL https://api.asgardeo.io/t/{org-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{org-name}/oauth2/authorize

OAuth2 DCR​

Get application by name​

GET /register

"This API is used to get/retrieve an OAuth2 application by client_name. \n\n" Scope(Permission) required: internal_dcr_view

Parameters

NameInTypeRequiredDescription
client_namequerystringYes

The name of the OAuth2 client application.

Responses

CodeDescriptionSchema
200

Successfully Retrieved

application
401

Unauthorized

error
500

Server Error

error

Register an OAuth2 app​

POST /register

This API is used to create an OAuth2 application. If your want to create your application to use the implicit or authorization_code grant types, you need to provide the redirect_uri field in your request. If you are using any other grant type, such as password, you don't need to send the redirect_uri field in the request. Check the sample request given below.

Scope(Permission) required: internal_dcr_create

Request body (required): application/json

Application information to register.

Schema: registrationRequest

14 properties
NameTypeRequiredDescription
redirect_urisarray of stringYes

The redirect URI determines where WSO2 Identity Platform will redirect users after authentication and logout.

client_namestringYes

The name of the OAuth2 client application.

ext_param_client_idstring

The public identifier of the application.

ext_param_client_secretstring

The secret corresponding to the clientId of the application. This is confidential and will be used to make requests and authenticate into your application.

ext_param_client_secret_expires_atinteger (int64)

The expiration time of the client secret, expressed in Unix epoch seconds. A non-zero value must be a future time. 0 or omitted for a non-expiring secret.

grant_typesarray of string

The This will determine how the application communicates with the token service. WSO2 Identity Platform supports following grant types: authorization_code client_credentials refresh_token implicit password

jwks_uristring
urlstring
contactsarray of string
post_logout_redirect_urisarray of string
request_urisarray of string
ext_param_sp_templatestring
backchannel_logout_uristring

Represents the URL that is used for sending logout requests from the identity provider (IdP) to the application in a back-channel manner, without involving the user's browser.

backchannel_logout_session_requiredboolean

Responses

CodeDescriptionSchema
201

Created

application
400

Bad Request

error
409

Conflict

error
500

Server Error

error

Get application by ID​

GET /register/{client_id}

"This API is used to retrieve an OAuth2 application by client_id. \n\n" Scope(Permission) required: internal_dcr_view

Parameters

NameInTypeRequiredDescription
client_idpathstringYes

Unique identifier of the OAuth2 client application.

Responses

CodeDescriptionSchema
200

Successfully Retrieved

application
404

Not Found

error
500

Server Error

error

Update an OAuth2 app​

PUT /register/{client_id}

"This API is used to update an OAuth2 application.\n\n" Scope(Permission) required: internal_dcr_update

Parameters

NameInTypeRequiredDescription
client_idpathstringYes

Unique identifier for the OAuth2 client application.

Request body (required): application/json

Application information to update.

Schema: updateRequest

7 properties
NameTypeRequiredDescription
redirect_urisarray of string
client_namestring

The name of the OAuth2 client application.

client_idstring

The public identifier of the application.

client_secretstring

The secret corresponding to the clientId of the application. This is confidential and will be used to make requests and authenticate into your application.

grant_typesarray of string

The This will determine how the application communicates with the token service. WSO2 Identity Platform supports following grant types: authorization_code client_credentials refresh_token implicit password

backchannel_logout_uristring
backchannel_logout_session_requiredboolean

Responses

CodeDescriptionSchema
200

Successfully updated

application
400

Bad Request

error
409

Conflict

error
500

Server Error

error

Delete an OAuth2 app​

DEL /register/{client_id}

"This API is used to delete an OAuth2 application by client_id.\n\n" Scope(Permission) required: internal_dcr_delete

Parameters

NameInTypeRequiredDescription
client_idpathstringYes

Unique identifier of the OAuth2 client application.

Responses

CodeDescriptionSchema
204

Successfully deleted

404

Not Found

error
500

Server Error

error

Schemas​

registrationRequest​

Type: object

14 properties
NameTypeRequiredDescription
redirect_urisarray of stringYes

The redirect URI determines where WSO2 Identity Platform will redirect users after authentication and logout.

client_namestringYes

The name of the OAuth2 client application.

ext_param_client_idstring

The public identifier of the application.

ext_param_client_secretstring

The secret corresponding to the clientId of the application. This is confidential and will be used to make requests and authenticate into your application.

ext_param_client_secret_expires_atinteger (int64)

The expiration time of the client secret, expressed in Unix epoch seconds. A non-zero value must be a future time. 0 or omitted for a non-expiring secret.

grant_typesarray of string

The This will determine how the application communicates with the token service. WSO2 Identity Platform supports following grant types: authorization_code client_credentials refresh_token implicit password

jwks_uristring
urlstring
contactsarray of string
post_logout_redirect_urisarray of string
request_urisarray of string
ext_param_sp_templatestring
backchannel_logout_uristring

Represents the URL that is used for sending logout requests from the identity provider (IdP) to the application in a back-channel manner, without involving the user's browser.

backchannel_logout_session_requiredboolean

updateRequest​

Type: object

7 properties
NameTypeRequiredDescription
redirect_urisarray of string
client_namestring

The name of the OAuth2 client application.

client_idstring

The public identifier of the application.

client_secretstring

The secret corresponding to the clientId of the application. This is confidential and will be used to make requests and authenticate into your application.

grant_typesarray of string

The This will determine how the application communicates with the token service. WSO2 Identity Platform supports following grant types: authorization_code client_credentials refresh_token implicit password

backchannel_logout_uristring
backchannel_logout_session_requiredboolean

application​

Type: object

6 properties
NameTypeRequiredDescription
client_idstring

The public identifier of the application.

client_secretstring

The secret corresponding to the clientId of the application. This is confidential and will be used to make requests and authenticate into your application.

client_secret_expires_atinteger (int64)

The expiration time of the client secret, expressed in Unix epoch seconds. A value of 0 indicates that the secret never expires.

redirect_urisarray of string

The redirect URIs registered for the application. For organizations created on or after August 1, 2026, when multiple redirect URIs are registered, the response returns each URI as a separate string in an array.

grant_typesarray of string

The This will determine how the application communicates with the token service. WSO2 Identity Platform supports following grant types: authorization_code client_credentials refresh_token implicit password

client_namestring

The name of the OAuth2 client application.

error​

Type: object

2 properties
NameTypeRequiredDescription
errorstring
error_descriptionstring

Was this page helpful?