Obtain an Authorization Code
POST {{baseUrl}}/oauth/authorize?response_type=code&state={{state}}&client_id={{client_id}}&scope={{scope}}&redirect_uri={{redirect_uri}}
The authorization code is a temporary code that the client will exchange for an access token. The code itself is obtained from the authorization server where the user gets a chance to see what the information the client is requesting, and approve or deny the request.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
response_type | string | [REQUIRED] the value of this should always be: code | |
state | string | [Optional] An opaque value, used for security purposes. If this request parameter is set in the request, then it is returned to the application as part of the redirect_uri. | |
client_id | string | [REQUIRED] | |
scope | string | [REQUIRED] Must be scope registered to your application. | |
redirect_uri | string | [REQUIRED] Must be a URL registred to you application. A successful response from this endpoint results in a redirect to this URL. |