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

post

Create tokens using the grant_type parameter.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
grantTypeundefined · enumOptionalPossible values:
appIDstringOptionalDeprecated
appSecretstringOptionalDeprecated
codestringOptional
redirectUristringOptional
refreshTokenstringOptional
usernamestringOptional
passwordstringOptional
clientIDstringOptional
clientSecretstringOptional
externalTokenstringOptional
Responses
200

Executed successfully.

application/json
accessTokenstringOptional
idTokenstringOptional
refreshTokenstringOptional
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"
}

Last updated