Authorization Code

GET {{SL_BASE_URL}}/oauth/authorize?response_type=code&client_id={{SL_CLIENT_ID}}&redirect_uri={{SL_REDIRECT}}&state={{STATE}}&scope=*

Once a client has been created, developers may use their client ID and secret to request an authorization code and access token from the application. First, the consuming application should make a redirect request to SellerLegend's /oauth/authorize route as below. The SellerLegend's application will open an interface allowing users to approve or deny the authorization request. If they approve the request, they will be redirected back to the redirecturi that was specified by the consuming application. The redirecturi must match the redirect URL that was specified when the client was created.

Request Params

KeyDatatypeRequiredDescription
response_typestring
client_idstring(Required) The SellerLegend provided Client ID upon adding the OAuth Client. Go to https://app.sellerlegend.com/account/developers page to add an OAuth Client.
redirect_uristring(Required) The redirect URL specified when the client was created.
statestringAny state you want to get back with the response, to match before sending the next post request
scopestring