OAuth Dynamic Client Registration API
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_name | query | string | Yes | The name of the OAuth2 client application. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
redirect_uris | array of string | Yes | The redirect URI determines where WSO2 Identity Platform will redirect users after authentication and logout. |
client_name | string | Yes | The name of the OAuth2 client application. |
ext_param_client_id | string | The public identifier of the application. | |
ext_param_client_secret | string | The secret corresponding to the | |
ext_param_client_secret_expires_at | integer (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_types | array 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_uri | string | ||
url | string | ||
contacts | array of string | ||
post_logout_redirect_uris | array of string | ||
request_uris | array of string | ||
ext_param_sp_template | string | ||
backchannel_logout_uri | string | 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_required | boolean |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_id | path | string | Yes | Unique identifier of the OAuth2 client application. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_id | path | string | Yes | Unique identifier for the OAuth2 client application. |
Request body (required): application/json
Application information to update.
Schema: updateRequest
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
redirect_uris | array of string | ||
client_name | string | The name of the OAuth2 client application. | |
client_id | string | The public identifier of the application. | |
client_secret | string | The secret corresponding to the | |
grant_types | array 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_uri | string | ||
backchannel_logout_session_required | boolean |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
client_id | path | string | Yes | Unique identifier of the OAuth2 client application. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully deleted | |
404 | Not Found | error |
500 | Server Error | error |
Schemas
registrationRequest
Type: object
14 properties
| Name | Type | Required | Description |
|---|---|---|---|
redirect_uris | array of string | Yes | The redirect URI determines where WSO2 Identity Platform will redirect users after authentication and logout. |
client_name | string | Yes | The name of the OAuth2 client application. |
ext_param_client_id | string | The public identifier of the application. | |
ext_param_client_secret | string | The secret corresponding to the | |
ext_param_client_secret_expires_at | integer (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_types | array 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_uri | string | ||
url | string | ||
contacts | array of string | ||
post_logout_redirect_uris | array of string | ||
request_uris | array of string | ||
ext_param_sp_template | string | ||
backchannel_logout_uri | string | 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_required | boolean |
updateRequest
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
redirect_uris | array of string | ||
client_name | string | The name of the OAuth2 client application. | |
client_id | string | The public identifier of the application. | |
client_secret | string | The secret corresponding to the | |
grant_types | array 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_uri | string | ||
backchannel_logout_session_required | boolean |
application
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
client_id | string | The public identifier of the application. | |
client_secret | string | The secret corresponding to the | |
client_secret_expires_at | integer (int64) | The expiration time of the client secret, expressed in Unix epoch seconds. A value of 0 indicates that the secret never expires. | |
redirect_uris | array 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_types | array 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_name | string | The name of the OAuth2 client application. |
Was this page helpful?