Get the Initial access token which can be used for registration of OAuth client using DCR flow

get

/oauth2/rest/dcr/token

Token can be acquired in either JSON response format or QR Code depending on the

Request

Supported Media Types
Query Parameters
  • Domain name under which you want to register the client
  • This is an alternate to 'domain' query parameter. If this is provided domain is not required.
  • Output format of access token which will be generated, two formats are supported currently, 'image/png' and 'application/json'. Default is application/json
  • Template id of OAuth client template registered by Admin for auto configration generation of actual client
Back to Top

Response

Supported Media Types

200 Response

Initial access token
Body ()
Root Schema : accesstoken
Type: object
Show Source

403 Response

If either OAuth Service is not enabled or DCR is not enabled for current domain
Body ()
Root Schema : errorresponse
Type: object
Show Source

404 Response

Error
Body ()
Root Schema : errorresponse
Type: object
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : errorresponse
Type: object
Show Source
Back to Top