Firecracker Enclave API

The Enclave API from Firecracker — 1 operation(s) for enclave.

GitHub OpenAPI

Operations 2

GET /enclave Gets the Nitro Enclave VM configuration #
PUT /enclave Configures the Nitro Enclave options. Pre-boot only #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/firecracker:firecracker-enclave-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

firecracker-enclave-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Firecracker Enclave API
  description: RESTful public-facing API. The API is accessible through HTTP calls on specific URLs carrying JSON modeled data. The transport medium is a Unix Domain Socket.
  version: 1.19.0-dev
  termsOfService: ''
  contact:
    email: firecracker-maintainers@amazon.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: http://localhost/
tags:
- name: Enclave
paths:
  /enclave:
    get:
      summary: Gets the Nitro Enclave VM configuration
      description: Returns the VM's enclave-specific configuration options.
      operationId: getEnclaveConfiguration
      responses:
        200:
          description: Nitro Enclave configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnclaveConfig'
        400:
          description: No enclave was configured, or this is not a Nitro Enclave VM
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Enclave
    put:
      summary: Configures the Nitro Enclave options. Pre-boot only
      description: Configures Firecracker to launch a Nitro Enclave backed guest. Omitted properties use their documented defaults. This operation fails after the guest has started or when the configuration is invalid.
      operationId: putEnclaveConfiguration
      responses:
        204:
          description: Nitro Enclave configuration created/updated
        400:
          description: Nitro Enclave configuration cannot be updated due to bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnclaveConfig'
        description: Nitro Enclave configuration
        required: true
      tags:
      - Enclave
components:
  schemas:
    EnclaveConfig:
      type: object
      description: Describes the set of enclave-specific configuration options. Boot arguments, vCPU count, and memory size come from the boot source and machine configuration APIs.
      properties:
        cpu_ids:
          type: array
          minItems: 1
          maxItems: 1024
          description: Specific CPU IDs from the Nitro Enclaves CPU pool. When omitted, the kernel selects CPUs from the dynamic pool. When present, the number of IDs must equal the machine vCPU count.
          items:
            type: integer
            minimum: 0
        debug_mode:
          type: boolean
          default: false
          description: Whether to enable enclave debug mode, which exposes guest serial output through the configured serial output sink.
        direct_mode:
          type: boolean
          default: false
          description: Whether to run in direct, non-confidential mode. The default is confidential mode, which uses per-device data memory buffers (DMBs) sized by each device's `dmb_size_mib`.
        cpu_overcommit:
          type: boolean
          default: false
          description: Whether to use host-scheduled floating vCPUs from the parent's overcommit pool instead of dedicated pinned cores from the Nitro Enclaves CPU pool.
        cpu_accounting:
          type: boolean
          default: false
          description: Whether to attribute each enclave vCPU's guest time to a parent-side thread. Spawns an additional host thread per vCPU, mirroring the vCPU's CPU time, therefore making it host-visible.
        hotplug_mode:
          type: boolean
          default: false
          description: Whether PCIe devices can be attached after the enclave starts.
        numa_nodes:
          type: array
          minItems: 1
          maxItems: 1024
          description: Per-parent-NUMA-node placement of vCPUs and memory. When omitted, all vCPUs and memory are placed on parent NUMA node 0. The vCPU and memory totals must equal the machine configuration, and parent NUMA node IDs must be unique.
          items:
            $ref: '#/components/schemas/EnclaveNumaNode'
    EnclaveNumaNode:
      type: object
      required:
      - parent_numa
      - vcpu_count
      - mem_size_mib
      description: Placement of a slice of enclave vCPUs and memory on a parent NUMA node.
      properties:
        parent_numa:
          type: integer
          minimum: 0
          maximum: 4096
          description: Parent NUMA node ID.
        vcpu_count:
          type: integer
          minimum: 1
          maximum: 1024
          description: Number of enclave vCPUs to place on this parent NUMA node. The total across all nodes must equal the machine vCPU count.
        mem_size_mib:
          type: integer
          minimum: 1
          description: Enclave memory in MiB to place on this parent NUMA node. Every entry except the last, after sorting by parent_numa, must be a multiple of 128 MiB.
    Error:
      type: object
      properties:
        fault_message:
          type: string
          description: A description of the error condition
          readOnly: true