For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 application token.

post

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
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"
}
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
idstringRequired
namestringRequired
secretstringRequired
Responses
200

Executed successfully.

application/json
access_tokenstringRequired
id_tokenstringRequired
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