Getting OAuth token
Overview
This REST API is used to request access token and to receive authorization code for invoking APIs.
List of resources
POST /oauth/tokens
Requests token for the specified application using client credential grant.
GET /oauth/callback
Acts as the callback URL for receiving authorization code.
Sample cURL Command
curl --location --request POST 'developer_portal_rest_base/oauth/tokens' \
--header 'Authorization: Basic basic_auth' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "cc grant token",
"scope": "Read",
"applicationId": "application_id"
}'
The oauth.yaml file is located at SAGInstallDir\DeveloperPortal\developers\openapis.