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 an access token v1

post

Create tokens using the grant_type parameter.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
grantTypeundefined · enumOptionalPossible values:
appIDstring · max: 255OptionalDeprecated
appSecretstring · max: 500OptionalDeprecated
codestring · max: 2048Optional
redirectUristring · max: 2048Optional
refreshTokenstring · max: 4096Optional
usernamestring · max: 255Optional
passwordstring · max: 255Optional
clientIDstring · max: 255Optional
clientSecretstring · max: 500Optional
externalTokenstring · max: 4096Optional
Responses
chevron-right
200

Executed successfully.

application/json
post
/api/v1/token

Create an access token v2

post

Use this endpoint to obtain an access token. Compliant with standard OAuth2 protocol and supports the common OAuth2 grant types.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
grant_typestring · enumRequired

The OAuth2 grant type that determines how the token will be issued.

Possible values:
client_idstringOptional

OAuth2 client identifier

client_secretstring · passwordOptional

OAuth2 client secret

usernamestringOptional

Resource owner username (for password grant)

passwordstring · passwordOptional

The password of the resource owner. Required only when using the password grant type.

refresh_tokenstringOptional

The refresh token used to obtain a new access token. Required only when using the refresh_token grant type.

codestringOptional

Authorization code issued by the authorization server. Used in the authorization_code grant to exchange the code for an access token.

redirect_uristringOptional

The redirect URI used during the authorization request. Required for the authorization_code grant to validate the redirect destination.

Responses
chevron-right
200

Successfully issued token

application/json
post
/api/v2/token
Deprecated

get application token

post

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

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
idstring · max: 64Required
namestring · max: 255Required
secretstring · max: 500Required
Responses
chevron-right
200

Executed successfully.

application/json
post
/v1/k8s/auth/oauth/apptoken

Last updated