API
This page provides a brief overview of the NVCF API. All API endpoints are served through your gateway. See gateway-routing for details on configuring your gateway domain and DNS.
OpenAPI Specification
This page does not cover all endpoints.
Please refer to the OpenAPI Spec for the latest API information.
The OpenAPI spec linked above documents the full NVCF API surface. Replace the hosted domain with your own gateway domain when making requests. See gateway-routing for your deployment’s base URL.
The NVCF API is divided into the following sets of APIs:
API Versioning
All API endpoints include versioning in the path prefix.
Authorization
Self-hosted NVCF uses three bearer credential types:
All three credential types are sent as bearer credentials:
Use the CLI for normal credential management:
nvcf-cli init calls the API Keys admin endpoint and mints the JWT used as
NVCF_TOKEN. The CLI saves the token in ~/.nvcf-cli.state for the default
configuration and reads it automatically on later commands. Export it only when
you are making direct API calls or using tooling that reads environment
variables:
The default self-hosted admin issuer role gives this token the following scopes:
register_functionlist_functionslist_functions_detailsdeploy_functionupdate_functionupdate_secretsdelete_functionmanage_telemetriesmanage_registry_credentialscluster-management
The function API key (NVCF_API_KEY) is created with these default scopes:
invoke_functionlist_functionsqueue_detailslist_functions_details
The task API key (NVCF_NVCT_API_KEY) is created with these default scopes:
launch_tasklist_taskstask_detailscancel_taskdelete_tasklist_eventslist_resultsupdate_secrets
NVCF API authorization is scope-based. For the NVCF API endpoints below, either
NVCF_TOKEN or NVCF_API_KEY can be used if that bearer includes the required
scope. The CLI prefers NVCF_API_KEY for read, invoke, and queue commands. It
prefers NVCF_TOKEN for management commands when both credentials are
configured.
Pass --scopes when you need to narrow a key or create a key with management
scopes for testing.
Scope reference
The OpenAPI spec describes the permission checked for each endpoint. “Accepted
bearer” means which saved CLI credential type can be sent as
Authorization: Bearer <credential> when it includes the listed scope.
Self-hosted cluster management uses SIS endpoints from the Spot API. In
self-hosted CLI workflows, use NVCF_TOKEN with the cluster-management scope
for these endpoints.
Task management uses NVCT endpoints served through your gateway. All task
endpoints require NVCF_NVCT_API_KEY with the listed scope.
Direct API key creation
The CLI calls the API Keys service for you. If you need to call it directly,
send NVCF_TOKEN, then set expires_at and the scopes array explicitly.