Authentication APIs for user login, logout, and token management
Auth API (v2)
Download OpenAPI description
Languages
Servers
Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com/
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/authapi/
Bodyapplication/x-www-form-urlencodedrequired
Supported values are client_credentials and urn:ietf:params:oauth:grant-type:token-exchange.
Identifies the API being accessed in Spotnana.
Example: "https://apis.spotnana.com/v2"
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
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/auth/oauth2-token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d grant_type=string \
-d client_id=string \
-d client_secret=string \
-d audience=https://apis.spotnana.com/v2 \
-d subject_token=string \
-d subject_token_type=string \
-d 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].
Example: "Bearer"
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.
Response
application/json
{ "access_token": "string", "expires_in": 0, "token_type": "Bearer", "refresh_token": "string", "scope": "string" }