Get oauth2 token using the client credentials.
Note: API calls to the /v2/auth/oauth2-token and /get-auth-token (legacy) endpoints are rate limited. We recommend reusing the existing tokens until they expire.
Supported values are client_credentials and urn:ietf:params:oauth:grant-type:token-exchange.
A security token that represents the identity of the entity on whose behalf the request is being made.
Indicates the type of the subject_token used for token exchange. This field supports the valid types as per the OAUTH 2.0 security framework.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/auth/oauth2-token
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/authapi/v2/auth/oauth2-token
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/auth/oauth2-token \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode grant_type=string \
--data-urlencode client_id=string \
--data-urlencode client_secret=string \
--data-urlencode audience=https://apis.spotnana.com/v2 \
--data-urlencode subject_token=string \
--data-urlencode subject_token_type=string \
--data-urlencode scope=stringOK
The token to be used in subsequent API calls made to the Spotnana platform.
A case-insensitive value specifying the method of using the access token issued, as specified in Section 7.1 of [RFC6749].
Used to fetch a new access token when the existing token expires. The refresh token will not be available if the grant_type is client_credentials.
{ "access_token": "string", "expires_in": 0, "token_type": "Bearer", "refresh_token": "string", "scope": "string" }