Generated from the Homelab v0.49.2 release (source
2614eaba28d8). For an installed version, homelab api <command> --help is authoritative.homelab api stacks create
Create a StackKit deployment in the owner’s Homelab. Creates an internal StackKit deployment under the authenticated B2C owner’s singleton Homelab from the canonical StackKits stack-spec payload supplied asstack_spec. The legacy /stacks route and
stack_id response field identify that deployment; they do not create
or select a second Homelab product. One Homelab instance can serve
many owners, each with their own Homelab. Legacy
user_config/kombination payloads remain accepted at this compatibility
boundary. Wizard clients should send a stable X-Idempotency-Key;
retries with the same key and payload return the original deployment,
planned server, and provisioning job.
homelab api stacks deploy
Roll out one StackKit deployment (unify + IaC + tofu apply).homelab api stacks destroy
Decommission one StackKit deployment and its infrastructure. Removes the stack through its nodes: StackKits removes every applied workload on the server that runs it, then the control plane releases the stack. When a server holding the stack was deleted, the node cannot answer; the request is then refused withserver_absence_confirmation_required and the offline servers, and is sent again with offline_removal.confirm_server_ids naming exactly those servers. The control plane accepts that confirmation only for a server it can prove offline (no heartbeat for longer than the stale window), without a lease and not operated by kombify or a provider: leased and provider-operated servers are proven absent by their provider. A confirmed server is never dispatched to; its agent credential is revoked and the server is retired. A server that reported recently is removed through its node.
homelab api stacks drift check
Trigger drift check. Rate limited to once per 5 minutes (unless force=true)homelab api stacks drift details
Get detailed drift information with affected resources.homelab api stacks drift resolve
Trigger drift resolution (re-apply). Precondition — stack must have status “drifted”homelab api stacks drift status
Get current drift status.homelab api stacks export
Export stack as stack-spec.yaml. Returns StackKits stack-spec YAML or JSON depending on Accept headerhomelab api stacks identity activate-owner
Issue the activation link for the owner account of a stack’s identity service. Asks the StackKits identity runtime of the owned stack for a link that activates the owner’s own account on the stack. The body must carryowner_approved: true; any other body is 400 owner_approval_required. The response includes the activation URL, which is a one-time sign-in link: hand it to the owner and do not log it. Answers 409 when the pinned StackKits runtime cannot issue activations or issuing fails.
homelab api stacks identity invite-household
Invite one planned household member to a stack’s identity service. Invites one person of the household plan to the owned stack. The person must match the persisted Wizard intent (client_ref, e-mail and display name), the owner must already be active on the stack, and the body must carry owner_approved: true. The body is decoded strictly. The response includes the member’s activation URL when one exists.
homelab api stacks import
Import stack-spec.yaml as a StackKit deployment. Imports YAML or JSON as a deployment under the authenticated owner’s Homelab.homelab api stacks intent
Get persisted kombination.yaml (byte-exact, base64).homelab api stacks jobs abandon
Retire a rollout that is still marked running but has stopped reporting. Releases the execution claim of one stale rollout job of an owned stack so that the stack can be retried withretry-rollout. Only a job that stopped reporting can be abandoned; any other job answers 409 abandon_job_conflict with the guard that refused. The body is empty and no command is sent to a server.
homelab api stacks list
List the owner’s StackKit deployments. Returns every StackKit deployment beneath the authenticated owner’s singleton B2C Homelab.kit_deployment_id, homelab_id, and
stackkit_id are the product identities; legacy identifiers remain
compatibility aliases on this route while consumers migrate.
homelab api stacks managed-runtimes add
Add one managed Node through native provider control. Creates or resumes one deterministic Add-Server job for the exact owned StackKit deployment. The standardIdempotency-Key is mandatory.
Replaying the same key with the same canonical request returns the original
job, lease, runtime-server, resource-generation, and provider-operation
correlations; reusing it with different intent fails with 409.
The raw key is never persisted or returned. A lost response or an
uncertain native-admission outcome remains resumable only with the
same key. HTTP acceptance means native admission is durable and
provider reconciliation is pending; it never claims that the VM is
already provisioned or healthy. Fresh admission atomically reserves
the authenticated tenant/owner capacity slot with the lease generation
and provider operation. When authoritative native admission finds that
bounded capacity full, it persists a non-retryable 403 outcome and
replaying that denied job returns the same outcome. Exact replays of an
already committed admission reuse its existing reservation. This version
has no automatic reservation release: terminal or local decommission
state alone does not free a slot. Lease inventory and feature-delivery
flags never authorize or deny capacity.
Hosted fresh admission also requires the v2-signed commercial runtime
and provider entitlements plus the signed cloud.runtime.credits
managed_servers mode/limit decision; feature flags alone never grant
provider capacity. Self-host OSS uses its construction-fixed static
release-manifest policy instead of a SaaS entitlement dependency.
homelab api stacks operations
Get the post-configuration operations read model for one owned StackKit deployment. Returns the exact owner- and tenant-scoped read model used by the Homelab operations dashboard.approved_servers records operator approval; connected_servers is stricter and counts only assigned, approved Nodes with freshness-qualified canonical Guard heartbeat, connection, and health evidence. The operation is read-only and never starts rollout, provisioning, or provider work.
homelab api stacks owner-spec
Fetch the owner bootstrap spec for a StackKit deployment. StackKit admin-bootstrap endpoint for fetching local owner fields and the recovery passphrase hash. This route accepts only the short-lived bootstrap bearer token returned bycreateStack; it does not use the
normal browser/session bearer token.
homelab api stacks pipeline-status
Get complete pipeline status for all spec phases.homelab api stacks provision
Start provisioning an existing StackKit deployment.homelab api stacks prune-orphans
Review or apply owner-scoped test-residue cleanup. Two-phase cleanup for control-plane projections only. Adry_run
returns the exact authenticated-owner E2E/runtime-cloud candidates and
a stable revision-bound digest. apply recomputes the plan and accepts
only that exact digest. This route never decommissions a lease, calls a
provider, destroys infrastructure, or enqueues lifecycle work.
homelab api stacks relocations abort
Abort a workload relocation and resume the source. Stops a relocation that has not finished and resumes the workloads on the source server, whose data was kept. The body must carryowner_approved: true. A relocation that already moved cannot be aborted (409), and an abort stays fenced until the nodes verify the state.
homelab api stacks relocations resolve
Verify both nodes of an interrupted move and settle its outcome. Re-reads the transfer proof from the source and destination nodes of one relocation and records the verified outcome (moved or aborted). It is used when a move stopped between transfer and verification. The body is empty. While the nodes cannot both prove the exact transfer the answer is 409 and the relocation stays fenced.
homelab api stacks relocations start
Move installed applications or Coolify resources from one owned stack’s server to another. Starts a verified move from the source server (this stack,source_agent_id) to a destination server of another owned stack. With engine: native it moves one installed use_case or one application (workloads): the destination adds it, receives the encrypted data straight from the source and reads its health and data back before the source is retired; the source stays stopped with its data until then and runs again when the move stops. With the Coolify engine (default) select either whole projects or individual resource_uuids; the transfer secret stays in Wallet custody (wallet_item_id) and domain switches go only to test domains. Needs exactly one Idempotency-Key; a replay returns the same job. Refused with 409 when a target holds locked services or server maintenance runs.
homelab api stacks repair
Repair one degraded component of a completed rollout on its existing server. A rollout whose stack core applied completes degraded when an independent component could not finish; the component is recorded in the stack’sdegraded_components and repaired automatically. This
operation starts that repair now. public_tls installs the managed
kombify.me origin certificate (ADR-0047) on the stack’s server; its
hostnames come from the degraded rollout, never from the request.
Answers 409 component_repair_not_needed when nothing is degraded.
homelab api stacks requirements
Get requirements spec (Phase 1 output).homelab api stacks resume-enrollment
Resume one overdue managed Node wait on its exact existing VM. Authenticated, idempotent recovery for a persistedwaiting_enrollment,
waiting_provider_provision, or waiting_canonical_guard job whose
next_resume_at has been overdue beyond the bounded grace period. The
server validates the owned StackKit deployment, source job, wait reason,
exact lease, active foundation role, and canonical Node as one operation. It
atomically retires the exact source wait, creates or rehydrates one
deterministic replacement deploy bound to the same lease and Node,
and replays that job on later calls. Before handler entry,
queue workers atomically acquire the durable tenant/stack compatibility
execution claim; this serializes different jobs for the same StackKit
deployment across Homelab
replicas. The claim remains durable running until the handler exits,
including during cancellation. This endpoint never invokes provider VM
creation or selects a newer VM. A replacement found durable running
after a crash remains fail-closed, is reported as the same job, and is
never duplicated automatically; runtime-action reconciliation remains a
separate operator concern.
homelab api stacks resume-remote-enrollment
Retry SSH enrollment of a connect-remote StackKit deployment. Re-runs the Guard enrollment over the SSH connection persisted for a connect-remote deployment without rerunning the StackKit rollout. The deployment must belong to the authenticated owner and use the connect-remote transport; the credential comes from the Wallet node access item already bound to it, or fromssh_wallet_item_id when the connection should be rebound first. A plaintext password is never accepted by this contract.
homelab api stacks retry-rollout
Retry one failed StackKit deployment rollout on its exact existing managed VM. Validates the owned failed deploy, its exact active foundation lease, and canonical Node in one server-side operation. The deterministic durable replacement bypasses provider VM creation, wins a durabletenant/stack compatibility execution claim before handler entry, and is
replayed on repeated calls to this operation. The claim serializes different
jobs for the same StackKit deployment across replicas and remains
fail-closed as running after a process crash until operator reconciliation.
homelab api stacks routing ensure
Ensure the desired routing overlay for one exact StackKit deployment and Node. Atomically persists an idempotent, revisioned routing overlay without mutating the user’s immutable intent. server_id is always exact and mandatory. lease_id is mandatory for managed runtimes and omitted for a local/Basement runtime which has no lease. For a managed target, a true ensure_rollout request dispatches the existing deploy pipeline only after proving that its selected active foundation lease and canonical Node equal this exact target. The API never reports the resulting job as already applied. The overlay is consumed only while deriving StackKits artifacts and this path never creates or selects a replacement VM.homelab api stacks routing get
Read desired and observed routing state for one StackKit deployment. Returns the tenant- and owner-bound routing overlay for the exact StackKit deployment. Desired state and observed/applied state are reported separately so clients never infer a successful DNS, TLS, or StackKit rollout from persistence alone.homelab api stacks routing targets
List explicit primary routing targets for one StackKit deployment. Read-only discovery backed by active RuntimeLease authority. Returns every owner-visible foundation/control-plane target and never selects one, creates a canonical Node (ServerRuntime) projection, or mutates the StackKit deployment. Callers must send the complete server_id and lease_id tuple to a routing mutation.
homelab api stacks stackkit run
Queue an owned node’s typed Advanced or backup operation. Uses the same tenant- and owner-scoped dispatcher as the operator UI. The node executes through its authenticated channel, current release pin, native Advanced catalog and issued operation capability. Homelab never executes Terramate, apply, rollback, backup or restore itself. A mutation requires owner_approved; service locks and active server maintenance are checked before enqueue. This is the owner’s console route (operator panel, Guard update approval, acceptance journeys) with the owner’s own confirmation inowner_approved; it has no MCP tool. The agent entry for an update and a backup run is the governed action card of run_managed_service_action (update, backup), whose Decision the agent’s equipment answers. Direct backup_run and backup_configure remain Basement-only; managed kits keep their schedule and sealed target-renewal authority. backup_configure derives the node’s target and plan from existing custody and accepts no credential fields. advanced_change_set requires candidate_spec; rollback requires an exact rollback_target_ref; restore_drill may reuse a snapshot_anchor_id. ai_provider lets Private AI offer an external OpenAI-compatible provider: the kombify Wallet seals the item wallet_item_id (the provider’s API key) to the node, which must be listed as a host target of that item, the node binds it to ai_provider_base_url, and a drift reconcile applies the setting. ai_provider_disable removes it. ssh_trust_recipient and ssh_trust_apply let the server trust the owner’s kombify Wallet SSH CA: ssh_trust_recipient has the node answer the owner’s recipient_challenge with its owner-signed recipient statement and returns it with the host target the owner lists on the CA item; the owner then asks the Wallet for the ssh-ca-trust delivery and ssh_trust_apply hands its sealed_delivery to the node, which installs TrustedUserCAKeys and the principals of each local user. Restore activation requires exactly one Idempotency-Key header, while other operations have no replay guarantee. Acceptance is not execution success; read the returned job and its scoped result to observe effects.
homelab api stacks unified
Get unified spec (Phase 2 output).homelab api stacks use-cases configure
Change the configuration of one installed use-case workload. Authors a native configuration change for one installed catalog workload (compute, storage and accelerator profiles, public settings, secret references) against the baseline named byexpected_spec_hash, saves the candidate and queues the StackKit lifecycle jobs that apply it. The Idempotency-Key makes a retry replay the original acceptance. Refused with 409 while the stack is busy, a service is locked, a server is in maintenance, or the baseline changed.
homelab api stacks use-cases remove
Remove one workload or a whole use case from a StackKit deployment. Retires an installed workload, or every installed workload of a catalog use case, through the native resolver against the baseline named byexpected_spec_hash, and queues the StackKit lifecycle jobs. The workload stops running but its data is retained (data_disposition: retain). The Idempotency-Key makes a retry replay the original acceptance; refused with 409 while the stack is busy, a service is locked or a server is in maintenance.
