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

# Daemon API reference

> Local app-server endpoints used by the Minenet CLI.

The CLI talks to a local daemon bound on `127.0.0.1`.

This API is local-only and is not part of public Client API v1.

## Auth header

Most endpoints require:

```text theme={null}
x-minenet-daemon-token: <daemon-token>
```

Optional header:

```text theme={null}
x-minenet-api-base-url: https://your-domain.com
```

## Health

* `GET /v1/health`

## Auth

* `GET /v1/auth/status`
* `POST /v1/auth/logout`
* `POST /v1/auth/login/start`
* `POST /v1/auth/login/poll`
* `GET /v1/teams/current`

## Workspace

* `POST /v1/workspace/pull`
* `POST /v1/workspace/push`
* `POST /v1/workspace/deploy`
* `POST /v1/workspace/status`
* `POST /v1/workspace/versions`
* `POST /v1/workspace/diff`

## Runs

* `GET /v1/deploy/runs/{runId}`

## Status codes

* `401`: missing/invalid daemon token, or not logged in for protected actions.
* `404`: unknown endpoint.
* `409`: workspace conflict for pull/push when not forced.
