Create VM
Create and start a new Firecracker microVM.Request Body
The ID of the image to use. If not provided, uses the default image configured via
HATCH_DEFAULT_KERNEL_PATH and HATCH_DEFAULT_ROOTFS_PATH.Optional template ID to use for default values. Template values are overridden by explicit request parameters.
Number of virtual CPUs. Defaults to
HATCH_DEFAULT_VCPU (default: 1).Memory size in MiB. Defaults to
HATCH_DEFAULT_MEM_MIB (default: 512).Kernel boot arguments. Defaults to the configured default boot args.
Whether to enable networking. Defaults to
true.Specific guest IP address to assign. If not provided, an IP is automatically allocated from the bridge CIDR.
Specific guest MAC address. If not provided, a MAC is automatically generated.
Cloud-init user data to configure the VM on first boot.
Response
Unique VM identifier (e.g.,
vm_abc123).The image ID used for this VM.
The template ID used (if any).
Current VM state. One of:
starting, running, stopping, stopped, snapshotted, error.Number of virtual CPUs.
Memory size in MiB.
The guest IP address assigned to the VM.
The guest MAC address.
The TAP network interface name.
The host port forwarded to the VM’s SSH port (22).
Path to the Firecracker API socket (used for internal VM communication).
The cloud-init user data.
Whether networking is enabled.
ISO 8601 timestamp when the VM was created.
ISO 8601 timestamp when the VM was last updated.
Example Request
Example Response
List VMs
Retrieve a list of all VMs.Response
Returns an array of VM objects. See the VM response schema above for field descriptions.Example Request
Example Response
Get VM
Retrieve details of a specific VM.Path Parameters
The VM ID.
Response
Returns a VM object. See the VM response schema in the Create VM section.Example Request
Example Response
Delete VM
Stop and delete a VM. This removes the VM, cleans up its resources, and deletes the database record.Path Parameters
The VM ID.
Response
Returns
deleted on success.Example Request
Example Response
Stop VM
Gracefully stop a running VM.Path Parameters
The VM ID.
Response
Returns the updated VM object with state set tostopped.