nilCC API Reference
The nilCC API provides comprehensive programmatic access to create and manage confidential workloads. All endpoints are documented using OpenAPI 3.0 specifications with automatic generation from the source code.
Accessing the API Documentation
Live OpenAPI Specification
The complete API documentation is available as an interactive OpenAPI specification
https://api.nilcc.nillion.network/openapi.json
Interactive Documentation
You can explore the API using any OpenAPI-compatible tool:
- Swagger Validator: Paste the OpenAPI spec URL into validator.swagger.io
- Postman: Import the OpenAPI spec to generate a collection
- curl: Use the examples provided in the specification
Authentication
All API endpoints require authentication via the x-api-key header:
curl -X POST https://api.nilcc.nillion.network/api/v1/workloads/create \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Core API Groups
The API is organized into several functional groups:
Workloads
/api/v1/workloads/*
- Create: Deploy new confidential workloads
- List: View all your workloads
- Manage: Start, stop, restart, and delete workloads
- Monitor: Access logs and system statistics