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.
Use to create application tokens. Select a token using the grant_type parameter.
Authorizations
AuthorizationstringRequired
Bearer authentication
Header parameters
User-AgentstringOptional
Body
grantTypeundefined · enumOptionalPossible values:
appIDstringOptionalDeprecated
appSecretstringOptionalDeprecated
codestringOptional
redirectUristringOptional
refreshTokenstringOptional
usernamestringOptional
passwordstringOptional
clientIDstringOptional
clientSecretstringOptional
Responses
200
Executed successfully.
application/json
accessTokenstringOptional
idTokenstringOptional
refreshTokenstringOptional
externalTokenstringOptional
400
Bad request.
application/json
500
unexpected error
application/json
503
unexpected error
application/json
post/api/v1/token
POST /api/v1/token HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 86
{
"grantType": "client_credentials",
"clientID": "clientID",
"clientSecret": "clientSecret"
}{
"accessToken": "text",
"idToken": "text",
"refreshToken": "text",
"externalToken": "text"
}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
idstringRequired
namestringRequired
secretstringRequired
Responses
200
Executed successfully.
application/json
access_tokenstringRequired
id_tokenstringRequired
400
Bad request.
application/json
500
unexpected error
application/json
503
unexpected error
application/json
post/v1/k8s/auth/oauth/apptoken
POST /v1/k8s/auth/oauth/apptoken HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"id": "text",
"name": "text",
"secret": "text"
}{
"access_token": "text",
"id_token": "text"
}Last updated