Skip to navigation

API Authentication

View as Markdown

NVIDIA DSX Air uses NGC API keys for authenticating API requests. This page covers Air-specific authentication details. For general information about NGC API keys, see the NGC API Keys documentation.

For the full API reference, navigate the API reference.

API Key Types

NGC supports two types of API keys:

Key TypeUse CaseLifecycle
Personal KeyIndividual development, testingTied to user account
Service KeyAutomation, CI/CD pipelinesTied to NGC org (not a user)

For most Air API usage, a Personal Key is sufficient. Use Service Keys when you need automation that shouldn’t depend on an individual user’s account.

Generating API Keys

To generate an API key:

When generating a key, select NVIDIA Air from the services list to grant Air API access.

Using API Keys

Include your API key in the Authorization header:

curl -X GET "https://api.dsx-air.nvidia.com/api/v3/simulations/" \
-H "Authorization: Bearer YOUR_API_KEY"

Roles and Scopes

Air uses a role-based access control system managed through NGC. The Air API checks scopes to authorize requests. How you get scopes depends on the key type:

  • Personal API Keys: You assign roles to users in NGC. Air automatically derives scopes from those roles.
  • Service Keys: You assign scopes directly when creating the key, giving you fine-grained control.

Roles

Roles are assigned to users in your NGC organization and apply to Personal API Keys. To manage user roles, see Updating User Roles in the NGC documentation.

RoleDescription
Air UserStandard Air user with full simulation and demo marketplace access
Air Org AdministratorAll Air User permissions plus trainee simulation access
Air TraineeLimited access for training participants
Air InstructorCan create and manage training sessions
Air Image UploaderCan upload custom images
Air Image SharerCan create cross-org image sharing links
Air Image ClaimerCan claim images shared from another organization

Scopes

Scopes are the permissions that the Air API checks to authorize requests. For Personal API Keys, scopes are derived from assigned roles. For Service Keys, you select scopes directly when generating the key.

Platform scopes (included in all Air roles):

ScopeDescription
org:readRead organization information
team:readRead team information
air:accessBasic platform access (required for all Air roles)

Simulation scopes:

ScopeDescription
air:simulation_readRead simulation details, nodes, interfaces, services
air:simulation_createCreate simulations via import, clone, or UI
air:simulation_editModify simulation properties and topology
air:simulation_deleteDelete simulations
air:simulation_start_stopStart and stop simulations
air:simulation_traineeAccess simulations as a training participant

Image scopes:

ScopeDescription
air:image_readView published and org images
air:image_writeUpload and edit images
air:image_sharingCreate cross-org image share links
air:image_claimingClaim images shared from another organization

Marketplace scopes:

ScopeDescription
air:marketplace_demo_writeCreate and edit marketplace demos

Training scopes:

ScopeDescription
air:training_instructorCreate and manage training sessions

Role to Scope Mapping

Each role includes the platform scopes (org:read, team:read, air:access) plus the Air-specific scopes listed below.

Air User

ScopeDescription
air:simulation_readRead simulation details, nodes, interfaces, services
air:simulation_createCreate simulations via import, clone, or UI
air:simulation_editModify simulation properties and topology
air:simulation_deleteDelete simulations
air:simulation_start_stopStart and stop simulations
air:image_readView published and org images
air:marketplace_demo_writeCreate and edit marketplace demos

Air Org Administrator

Includes all Air User scopes, plus:

ScopeDescription
air:simulation_traineeAccess simulations as a training participant

Air Trainee

ScopeDescription
air:simulation_traineeAccess simulations as a training participant

Additional roles grant additional scopes as indicated by their names.

Air Instructor

ScopeDescription
air:training_instructorCreate and manage training sessions

Air Image Uploader

ScopeDescription
air:image_readView published and org images
air:image_writeUpload and edit images

Air Image Sharer

ScopeDescription
air:image_sharingCreate cross-org image share links

Air Image Claimer

ScopeDescription
air:image_claimingClaim images shared from another organization