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
The NVCF API supports API key-based authorization. API keys can be generated using the CLI or directly via the API Keys service endpoint.
Generate an API Key
API keys can be generated using the CLI or directly via the API Keys service. There are two types of API keys:
Using the CLI
The simplest way to generate an API key is via the CLI:
Refer to the CLI documentation for full usage and additional token generation options.
Admin Token
An admin token provides full access to all NVCF API endpoints. This is useful for initial setup, managing functions, and administrative tasks.
Scoped API Key
A scoped API key restricts access to specific operations and resources. This is recommended for application use, such as invoking functions.
The scopes array controls which API operations the key can perform. See self-hosted-scopes for the full list. The expires_at field is required for scoped API keys.
API Key Usage
Both key types are passed in the Authorization header.
API Key Scopes
The OpenAPI Spec describes the scopes required for each endpoint.