Use tokens to facilitate authentication to the NVIDIA Run:ai API. The API server must be configured to use the NVIDIA Run:ai identity service to validate authentication tokens.
Create tokens using the grant_type parameter.
Executed successfully.
Bad request.
unexpected error
unexpected error
Obtain the clientID and the clientSecret using service accounts or access keys endpoints
{- "grantType": "client_credentials",
- "clientID": "clientID",
- "clientSecret": "clientSecret"
}{- "accessToken": "string",
- "idToken": "string",
- "refreshToken": "string",
- "expiresIn": 0
}Use this endpoint to obtain an access token. Compliant with standard OAuth2 protocol and supports the common OAuth2 grant types.
Successfully issued token
Invalid request
Client authentication failed
unexpected error
unexpected error
grant_type=authorization_code&code=authorization_code_value&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&client_id=my-client-id
{- "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
- "token_type": "Bearer",
- "expires_in": 3600,
- "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
- "id_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}Retrieve access token for an application. The application token is retrieved from the authorization server. This endpoint is deprecated. Use /api/v1/token with the grantType parameter set to app_token instead, with AppID and appSecret set accordingly to get an application token
Executed successfully.
Bad request.
unexpected error
unexpected error
{- "id": "string",
- "name": "string",
- "secret": "string"
}{- "access_token": "string",
- "id_token": "string"
}