> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kombify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# homelab api registry

> Generated reference for the homelab api registry commands

> [!NOTE]
>
> Generated from the Homelab v0.49.2 release (source `2614eaba28d8`). For an installed version, `homelab api <command> --help` is authoritative.

## homelab api registry services delete

Delete an archived service copy from the Registry.

Removes the registry row of a service copy that a finished move left in the archived state. Any other status is refused with 409; no workload or server is touched. The canonical inventory store currently answers 503 `service_control_server_fence_unavailable`.

```bash theme={null}
homelab api registry services delete <service-id> [flags]
```

> [!WARNING]
>
> Requires confirmation: This operation removes the archived service copy from the Registry; the record cannot be restored. Pass `--yes` or answer the prompt; a non-interactive run without `--yes` stops before any request with exit code 9.

| | |
| - | - |
| HTTP | `DELETE /api/v1/registry/services/{id}` |
| Changes state | Yes |
| MCP tool | `delete_registry_service` |

| Argument | Type | Description |
| - | - | - |
| `<service-id>` | string | **Required.** Canonical service runtime ID. |

## homelab api registry services import

Record an unmanaged service that already runs on an owned server.

Adds an observed (unmanaged) service row for a server of an owned stack. The row is keyed by stack, server and service name, so repeating the call updates the same row. Nothing is deployed or probed. Either `name` or `service_id` is required and is normalized to a lower-case key. A stack the caller does not own is refused with 403 and an unknown stack or server with 404.

```bash theme={null}
homelab api registry services import [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/registry/services/import` |
| Changes state | Yes |
| MCP tool | `import_registry_service` |

| Argument | Type | Description |
| - | - | - |
| `--display-name` | string | — |
| `--name` | string | Service name; used when `service_id` is not set. |
| `--port` | integer | — |
| `--server-id` | string | **Required.** Registry server (node) id of the stack. |
| `--service-id` | string | Service key; used only when `name` is not set. |
| `--stack-id` | string | **Required.** |
| `--type` | string | Service type, for example `media`; defaults to `custom`. |
| `--url` | string | — |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api registry services import-home-assistant

Link an existing Home Assistant instance read-only.

Probes a Home Assistant instance from a local executor with the long-lived access token held in the Wallet item `token_wallet_item_id` (a kombify Wallet item assigned to Homelab, or a built-in wallet API key or OAuth token item whose URL names this instance; resolved inside Homelab, never answered) and records a read-only observed service. This contract accepts no token. The token is used for this probe only and is never stored in the registry row. Self-hosted installs only (503 `lan_executor_unavailable` otherwise). The call is idempotent: an already linked instance returns `existing: true` without a new probe.

```bash theme={null}
homelab api registry services import-home-assistant [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/registry/services/home-assistant/import` |
| Changes state | Yes |
| MCP tool | `import_home_assistant_service` |

| Argument | Type | Description |
| - | - | - |
| `--installation-method` | string | **Required.** One of `haos`, `container`. |
| `--server-id` | string | **Required.** |
| `--stack-id` | string | **Required.** |
| `--token-wallet-item-id` | string | **Required.** Wallet item holding the Home Assistant long-lived access token. |
| `--url` | string | **Required.** Local Home Assistant endpoint. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api registry services list

List owned services with their catalog and canonical placement.

Runtime records use the same state, capabilities, version and owner lock projection as service detail. Historical records remain readable with unknown observed state and no unmeasured action capabilities.

```bash theme={null}
homelab api registry services list [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/registry/services` |
| Changes state | No |
| MCP tool | `list_registry_services` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.