Tokens

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 a token

Create tokens using the grant_type parameter.

SecuritybearerAuth
Request
Request Body schema: application/json
grantType
any (TokenRequestGrantTypeEnum)
Enum: "app_token" "client_credentials" "refresh_token" "exchange_token" "password" "external_token_exchange"
appID
string
Deprecated
appSecret
string
Deprecated
code
string
redirectUri
string
refreshToken
string
username
string
password
string
clientID
string
clientSecret
string
externalToken
string
Responses
200

Executed successfully.

400

Bad request.

500

unexpected error

503

unexpected error

post/api/v1/token
Request samples
application/json

Obtain the clientID and the clientSecret using service accounts or access keys endpoints

{
  • "grantType": "client_credentials",
  • "clientID": "clientID",
  • "clientSecret": "clientSecret"
}
Response samples
application/json
{
  • "accessToken": "string",
  • "idToken": "string",
  • "refreshToken": "string"
}