> **Synced from Hive.** This page is pulled from [hivecommons/hive@v5](https://github.com/hivecommons/hive/blob/v5/src/docs/api-reference/configuration.md) during the docs build. Edit the canonical source in the Hive repository.

# Dashboard REST API reference — Configuration

Part of the [Dashboard REST API reference](https://github.com/hivecommons/hive/blob/v5/src/docs/api-reference.md); see that page for how auth levels and `pkg/<file>:<line>` source citations are read and checked. Edit this file for routes in this area and run `src/scripts/check-api-reference-citations.sh --fix` to resync citations.

For dashboard instructions and the difference between raw YAML and effective
JSON, see [Editing `hive.yaml`](/docs/hive/editing-hive-yaml#view-yaml-or-export-effective-config).


| Method | Path | Auth | Purpose | Source |
|---|---|---|---|---|
| `GET` | `/api/themes` | Dashboard auth/session | Embedded dashboard/contributor theme catalog with swatches for Settings → Appearance; `?scope=contributor` filters profile themes | `pkg/dashboard/api.go:51` |
| `GET` | `/api/theme.css` | Dashboard auth/session | Effective dashboard theme stylesheet with strong ETag / 304 support; `?theme=<id>` previews an embedded preset; `?scope=contributor` emits contributor token aliases and layers hive custom CSS | `pkg/dashboard/api.go:52` |
| `GET` | `/api/config` | Dashboard auth/session | Config | `pkg/dashboard/api.go:53` |
| `GET` | `/api/config/triggers` | Verified owner only | Ordered Event triggers, opaque `version`/ETag, existing agents and managed repository values/labels; applies on next evaluation without restart | `pkg/dashboard/api_event_triggers.go` |
| `PUT` | `/api/config/triggers` | Verified owner only | Compile-to-bool and durably compare-and-save `{rules:[{name,agent,expr,priority}],preset?:{index,kind,repo}}`; exact `If-Match` required (428 missing, 412 stale), validation 400, persistence failure 500 leaves live rules unchanged. No enabled field or source/webhook installation | `pkg/dashboard/api_event_triggers.go` |
| `GET` | `/api/config/dashboard` | Owner only | Dashboard runtime settings (`dashboard.*`): port, agent poll interval, `experiment_lab`, `subscription_gauge_header`, hub-proxied auth, whether an auth token is configured (never the token), access allowlist, issue bands and stage-tracker toast timings | `pkg/dashboard/api.go:204` |
| `PUT` | `/api/config/dashboard` | Owner only | Update any subset of those fields (an absent field is unchanged), including `subscription_gauge_header` (adds the owner-only usage gauge chip to the header, covering every plan the agents spend: Claude, Copilot and others); validated, saved and audit-logged as `config_dashboard_settings` | `pkg/dashboard/api.go:205` |
| `GET` | `/api/config/dashboard/theme` | Owner only | Dashboard theme selection, overrides, effective theme, and built-in catalog | `pkg/dashboard/api.go:62` |
| `PUT` | `/api/config/dashboard/theme` | Owner only | Persist `dashboard.theme` and `dashboard.theme_overrides` with validation, CSS/background guardrails, and audit logging | `pkg/dashboard/api.go:63` |
| `GET` | `/api/config/download` | Owner only | Config Download | `pkg/dashboard/api.go:54` |
| `GET` | `/api/config/sla` | Owner only | Delivery SLA targets: `{targets:{start_to_pr_h,pr_to_merge_h,open_to_merge_h}, effective_targets:{...}, defaults:{...}}`, hours, from `sla.targets` in `hive.yaml` with defaults 4/24/72 | `pkg/dashboard/api.go:253` |
| `PUT` | `/api/config/sla` | Owner only | Replace `sla.targets` (`{targets:{start_to_pr_h,pr_to_merge_h,open_to_merge_h}}`; each 0 (default) to 8760, validated before anything is persisted); the Throughput Delivery SLA panel recolours on the next status poll | `pkg/dashboard/api.go:254` |
| `GET` | `/api/config/export` | Owner only | Redacted JSON export of the effective config, layer files, side files, and provenance | `pkg/dashboard/api_config_export.go` |
| `GET` | `/api/config/provenance` | Owner only | Config Provenance | `pkg/dashboard/api.go:57` |
| `GET` | `/api/config/variables` | Dashboard auth/session | Variables List | `pkg/dashboard/api.go:58` |
| `GET` | `/api/config/authorized-users` | Dashboard auth/session | Authorized Users List | `pkg/dashboard/api.go:61` |
| `PUT` | `/api/config/variables/{name}` | Owner only | Variable Upsert | `pkg/dashboard/api.go:64` |
| `DELETE` | `/api/config/variables/{name}` | Owner only | Variable Delete | `pkg/dashboard/api.go:65` |

| `GET` | `/api/config/agent/{name}` | Dashboard auth/session | Agent Config Get | `pkg/dashboard/api.go:186` |
| `PUT` | `/api/config/agent/{name}/general` | Owner only | Agent Config General | `pkg/dashboard/api.go:187` |
| `PUT` | `/api/config/agent/{name}/cadences` | Owner only | Agent Config Cadences | `pkg/dashboard/api.go:188` |
| `PUT` | `/api/config/agent/{name}/models` | Owner only | Agent Config Models | `pkg/dashboard/api.go:189` |
| `PUT` | `/api/config/agent/{name}/pipeline` | Owner only | Agent Config Pipeline | `pkg/dashboard/api.go:190` |
| `PUT` | `/api/config/agent/{name}/hooks` | Owner only | Agent Config Hooks | `pkg/dashboard/api.go:191` |
| `PUT` | `/api/config/agent/{name}/restrictions` | Owner only | Agent Config Restrictions | `pkg/dashboard/api.go:192` |
| `PUT` | `/api/config/agent/{name}/stats` | Owner only | Agent Config Stats | `pkg/dashboard/api.go:193` |
| `GET` | `/api/config/agent/{name}/prompt` | Dashboard auth/session | Agent Prompt | `pkg/dashboard/api.go:194` |
| `PUT` | `/api/config/agent/{name}/prompt` | Owner only | Agent Prompt Save | `pkg/dashboard/api.go:195` |
| `GET` | `/api/config/agent/{name}/export` | Dashboard auth/session | Agent Export | `pkg/dashboard/api.go:196` |
| `PUT` | `/api/config/agent/{name}/channels` | Owner only | Agent Config Channels | `pkg/dashboard/api.go:197` |
| `PUT` | `/api/config/agent/{name}/tools` | Owner only | Agent Config Tools | `pkg/dashboard/api.go:198` |
| `PUT` | `/api/config/agent/{name}/connections` | Owner only | Agent Config Connections | `pkg/dashboard/api.go:199` |
| `GET` | `/api/config/agent/{name}/variables` | Dashboard auth/session | Per-agent Variables tab: the agent's own `${VAR}` definitions plus the hive-level ones it inherits (each flagged `overridden` when the agent redefines it) and the seed-only exec/http gate flags. Never returns values — only name, type, scope and a non-secret source hint | `pkg/dashboard/api_variables.go:298` |
| `PUT` | `/api/config/agent/{name}/variables/{var}` | Owner only | Create or update one per-agent variable (`static`/`env` only; `script`/`http` are 403 and seed-only; scope `template` or `both`; secret-looking static values rejected). Persisted on the agent entry; overrides a same-named hive-level variable in this agent's kick prompt | `pkg/dashboard/api_variables.go:299` |
| `DELETE` | `/api/config/agent/{name}/variables/{var}` | Owner only | Delete one per-agent variable (404 for inherited hive-level variables — delete those via `/api/config/variables/{name}`) | `pkg/dashboard/api_variables.go:300` |
| `GET` | `/api/config/stat-sources` | Dashboard auth/session | Stat Sources | `pkg/dashboard/api.go:200` |
| `GET` | `/api/config/governor` | Dashboard auth/session | Governor Config Get | `pkg/dashboard/api.go:202` |
| `PATCH` | `/api/config/governor` | Owner only | Update `merge_train_stall_warn_s`; omitted values stay unchanged, 0 disables warnings; returns the effective interval | `pkg/dashboard/api_governor_merge_train.go` |
| `PUT` | `/api/config/governor/sensing` | Owner only | Governor Sensing | `pkg/dashboard/api.go:206` |
| `PUT` | `/api/config/governor/thresholds` | Owner only | Governor Thresholds | `pkg/dashboard/api.go:207` |
| `PUT` | `/api/config/governor/labels` | Owner only | Governor Labels | `pkg/dashboard/api.go:214` |
| `PUT` | `/api/config/governor/budget` | Owner only | Governor Budget | `pkg/dashboard/api.go:215` |
| `PUT` | `/api/config/governor/notifications` | Owner only | Governor Notifications | `pkg/dashboard/api.go:219` |
| `PUT` | `/api/config/governor/health` | Owner only | Governor Health | `pkg/dashboard/api.go:220` |
| `PUT` | `/api/config/governor/logging` | Owner only | Governor Logging | `pkg/dashboard/api.go:232` |
| `PUT` | `/api/config/governor/attribution` | Owner only | Governor Attribution | `pkg/dashboard/api.go:233` |
| `PUT` | `/api/config/governor/hub` | Owner only | Governor Hub | `pkg/dashboard/api.go:234` |
| `PUT` | `/api/config/governor/litellm` | Owner only | Governor Lite LLM | `pkg/dashboard/api.go:235` |
| `PUT` | `/api/config/governor/trajectory` | Owner only | Governor Trajectory | `pkg/dashboard/api.go:236` |
| `GET` | `/api/config/governor/backup` | Owner only | Backup Key Status (presence + safe source label; never the key value) | `pkg/dashboard/backup_key.go` |
| `PUT` | `/api/config/governor/backup` | Owner only | Backup Key Set (64-hex AES-256 key; stored 0600, path-only in `hive.yaml`) | `pkg/dashboard/backup_key.go` |
| `DELETE` | `/api/config/governor/backup` | Owner only | Backup Key Clear (backups are refused again) | `pkg/dashboard/backup_key.go` |
| `GET` | `/api/config/governor/bob` | Dashboard auth/session | Governor Bob Status | `pkg/dashboard/api.go:282` |
| `PUT` | `/api/config/governor/bob` | Owner only | Governor Bob Key | `pkg/dashboard/api.go:283` |
| `DELETE` | `/api/config/governor/bob` | Owner only | Governor Bob Key Clear | `pkg/dashboard/api.go:284` |

| `GET` | `/api/config/governor/cadence-scope` | Owner only | Governor Cadence Scope Get (`aggregate` or `per_repo`) | `pkg/dashboard/api.go:208` |
| `PUT` | `/api/config/governor/cadence-scope` | Owner only | Governor Cadence Scope Set (`cadenceScope`/`cadence_scope`: `aggregate`, `per_repo`, or empty for default) | `pkg/dashboard/api.go:209` |
| `POST` | `/api/config/governor/bob/test` | Dashboard auth/session | Governor Bob Key Test | `pkg/dashboard/api.go:286` |
| `POST` | `/api/config/governor/litellm/test` | Dashboard auth/session | Governor Lite LLMTest | `pkg/dashboard/api.go:287` |
| `GET` | `/api/config/governor/gateways` | Dashboard auth/session | Governor Gateways List | `pkg/dashboard/api.go:290` |
| `PUT` | `/api/config/governor/gateways` | Owner only | Governor Gateways Upsert | `pkg/dashboard/api.go:291` |
| `DELETE` | `/api/config/governor/gateways/{name}` | Owner only | Governor Gateways Delete | `pkg/dashboard/api.go:292` |
| `POST` | `/api/config/governor/gateways/{name}/test` | Dashboard auth/session | Governor Gateways Test | `pkg/dashboard/api.go:293` |
| `POST` | `/api/config/governor/gateways/discover` | Owner only | Governor Gateways Discover | `pkg/dashboard/api.go:294` |
| `POST` | `/api/config/governor/agents` | Owner only | Governor Add Agent | `pkg/dashboard/api.go:300` |
| `DELETE` | `/api/config/governor/agents/{name}` | Owner only | Governor Remove Agent | `pkg/dashboard/api.go:301` |
| `PUT` | `/api/config/governor/repos` | Owner only | Governor Repos | `pkg/dashboard/api.go:302` |
| `POST` | `/api/config/governor/repos/check-access` | Dashboard auth/session | Governor Repo Check Access | `pkg/dashboard/api.go:306` |
| `PUT` | `/api/config/github` | Owner only | Config GitHub | `pkg/dashboard/api.go:307` |
| `GET` | `/api/config/github/forge-apps` | Dashboard auth/session | Config GitHub Forge Apps | `pkg/dashboard/api.go:310` |
| `GET` | `/api/config/github/webhooks` | Owner only | Config GitHub Webhooks (payload URL, events, secret source, receiver health, App hook permissions) | `pkg/dashboard/api_github_webhook_setup.go:88` |
| `POST` | `/api/config/github/webhooks/secret` | Owner only | Config GitHub Webhooks Generate Secret (returned once) | `pkg/dashboard/api_github_webhook_setup.go:89` |
| `POST` | `/api/config/github/webhooks/create` | Owner only | Config GitHub Webhooks Create Hook (through the App installation) | `pkg/dashboard/api_github_webhook_setup.go:90` |
| `GET` | `/api/config/sidebar` | Dashboard auth/session | Sidebar Get | `pkg/dashboard/api.go:370` |
| `PUT` | `/api/config/sidebar` | Dashboard auth/session | Sidebar Set | `pkg/dashboard/api.go:371` |
| `GET` | `/api/config/backends` | Dashboard auth/session | Backends | `pkg/dashboard/api.go:372` |
| `GET` | `/api/compliance/status` | Merger or owner | Evaluated compliance controls for the frameworks in `compliance.frameworks` (`compliance.Report`, JSON): per control `meets`/`deviates`/`off`/`not_covered` with current vs recommended value per mapped setting, a summary, and the non-certification disclaimer — see [Compliance](/docs/hive/security/compliance-controls) ([#11078](https://github.com/hivecommons/hive/issues/11078)) | `pkg/dashboard/api.go:362` |
| `GET` | `/api/compliance/posture` | Merger or owner | Posture-check catalogue, effective interval / window / history retention, and the latest run (`compliance.PostureRun`: schedule/manual trigger, `triggered_by` identity, and per-check `pass`/`fail`/`skip`/`error`, detail, control ids, evidence refs); `?since=` (RFC 3339, `YYYY-MM-DD` or a look-back such as `168h`) adds every run since then, oldest first, capped at 1000 — see [Compliance](/docs/hive/security/compliance-controls#posture-checks-catalogue) ([#11079](https://github.com/hivecommons/hive/issues/11079)) | `pkg/dashboard/api.go:363` |
| `POST` | `/api/compliance/posture/run` | Merger or owner | Run the posture checks now, attributed to the authenticated user, and record the pass in the history; audited as `compliance_posture_run`; `409` when no framework is selected or a pass is already running ([#11079](https://github.com/hivecommons/hive/issues/11079)) | `pkg/dashboard/api.go:364` |
| `GET` | `/api/compliance/posture/history` | Owner only | Posture history for `?since=`/`?until=` (default the last 30 days) as one series per check: points (`at`, `status`), status counts, `last_fail_at` and the latest result with detail and evidence refs; at most the 1000 most recent runs — see [Compliance](/docs/hive/security/compliance-controls#evidence-exports-and-attestations) ([#11081](https://github.com/hivecommons/hive/issues/11081)) | `pkg/dashboard/api.go:365` |
| `GET` | `/api/compliance/export` | Owner only | Evidence download for `?since=`/`?until=`: `kind=controls` (`json`/`md`), `posture` (`json`/`csv`), `audit` (`json`), `config` (redacted effective config + sha256, `json`), `attestations` (`json`/`csv`) or `bundle` (`json`). Every format includes source, period, generator, selected profile versions, attesters, retention and a per-section SHA-256 manifest; audited as `compliance_export` with the SHA-256 of the delivered bytes ([#11081](https://github.com/hivecommons/hive/issues/11081), [#13582](https://github.com/hivecommons/hive/issues/13582)) | `pkg/dashboard/api.go:366` |
| `GET` | `/api/compliance/attestations` | Owner only | Owner attestations, newest first (`?framework=` filters) ([#11081](https://github.com/hivecommons/hive/issues/11081)) | `pkg/dashboard/api.go:367` |
| `POST` | `/api/compliance/attestations` | Owner only | Record `{"framework", "reviewed_on", "note"}` for the signed-in owner; audited as `compliance_attestation`; `201` with the attestation, `400` for an unknown framework, a bad or future date, or a note over 2000 characters ([#11081](https://github.com/hivecommons/hive/issues/11081)) | `pkg/dashboard/api.go:368` |
| `PUT` | `/api/config/governor/compliance` | Owner only | Settings → Compliance framework picker: `{"frameworks": [...]}` sets `compliance.frameworks` (empty list deselects all, absent key leaves it unchanged; unknown/duplicate ids are a `400` before any change); audited as `config_compliance`; returns the re-evaluated `compliance.Report` ([#11080](https://github.com/hivecommons/hive/issues/11080)) | `pkg/dashboard/api.go:542` |
| `GET`/`PUT` | `/api/config/chat/config-assist` | Owner only | Settings → Features → Chat → Config assist panel: GET returns `enabled`, `model`, `fallback_model` (`chat.grounded_answers.model`) and `runner_attached`; PUT `{"enabled": bool, "model": string}` sets `chat.config_assist.enabled` (default off) and `chat.config_assist.model` (empty clears it, falling back to `chat.grounded_answers.model`, then the reviewer model; [#20092](https://github.com/hivecommons/hive/issues/20092)); an absent key leaves it unchanged; `400` for a model id with whitespace or over 200 characters; audited as `config_chat_assist` with before/after values; `409` when the hive has no config source path to persist it ([#19979](https://github.com/hivecommons/hive/issues/19979), [RFC #19788](https://github.com/hivecommons/hive/blob/v5/docs/rfc-19788-hive-chat-config-assist.md)) | `pkg/dashboard/api.go:543` |
| `POST` | `/api/chat/config-proposals/{id}/decline` | Owner only | Dismiss on a Hive Chat config assist proposal card: removes the pending proposal (only the owner who requested it can) and audits `chat_config_declined`; `404` when it is unknown, expired or another user's. With `chat.config_assist.enabled` on, a verified owner's config-shaped chat message gets at most one checked proposal (`config_proposal` on the `/api/chat` reply) whose card opens the agent config dialog pre-filled; that dialog's Save adds `?via=chat&proposal=<id>` to the section PUT, and the server records `via=chat` only for a stored, unexpired proposal of the same user, agent and section ([#19978](https://github.com/hivecommons/hive/issues/19978), [RFC #19788](https://github.com/hivecommons/hive/blob/v5/docs/rfc-19788-hive-chat-config-assist.md)) | `pkg/dashboard/api.go:547` |
| `POST` | `/api/chat/config-proposals/{id}/undo` | Owner only | Undo on an applied Hive Chat config assist card ([#19985](https://github.com/hivecommons/hive/issues/19985)): returns a reverse proposal (`config_proposal` with `reverses`) built from the applied proposal's before value, or from its `chat_config_proposed` audit line after a restart, bound to the section as it is now; nothing is written until the card applies it. `403` with `chat.config_assist.enabled` off, `404` when there is no applied, not yet undone proposal of this user with that id, `409` when the section changed since the Apply. The card's **Apply** (and the Undo it builds) sends the stored body to `PUT /api/config/agent/{name}/{section}` with an `X-Hive-Chat-Proposal: <id>` header; under the config lock the proposal must be this user's, unexpired, not already in flight or applied, for that agent and section, with the same body and an unchanged section hash, or the PUT answers `409` and changes nothing. A seed-owned key (`github`, `hub`, `variables`, `acmm_level`, `hive_id`), a secret field or anything off the chat allowlist is refused with `403`. A 2xx consumes it and audits `chat_config_applied`; any other status returns it to pending and audits `chat_config_apply_failed`; an applied Undo audits `chat_config_undo`. The applied and undo lines carry value fingerprints (`before_fp`, `after_fp`), never the values | `pkg/dashboard/api.go:550` |

| `GET` | `/api/config/governor/threshold-scaling` | Owner only | Governor Threshold Scaling Get | `pkg/dashboard/api.go:211` |
| `PUT` | `/api/config/governor/threshold-scaling` | Owner only | Governor Threshold Scaling Set | `pkg/dashboard/api.go:212` |
| `PUT` | `/api/config/governor/coverage-target` | Owner only | Governor Coverage Target | `pkg/dashboard/api.go:213` |
| `POST` | `/api/config/governor/budget/reset` | Owner only | Governor Budget Reset | `pkg/dashboard/api.go:216` |
| `PUT` | `/api/config/governor/watchdog` | Owner only | Governor Watchdog | `pkg/dashboard/api.go:221` |
| `GET` | `/api/config/escalation` | Owner only | Escalation Config Get | `pkg/dashboard/api.go:224` |
| `PUT` | `/api/config/escalation` | Owner only | Escalation Config Set | `pkg/dashboard/api.go:225` |
| `GET` | `/api/config/write-surface` | Owner only | Lane write allowlist (`write_surface.allowlist`, [#9587](https://github.com/hivecommons/hive/issues/9587)): `allowlist`, `ops`, `warnings` | `pkg/dashboard/api.go:538` |
| `PUT` | `/api/config/write-surface` | Owner only | Replace the lane write allowlist; `{"allowlist": {}}` clears it; unknown operation or bad lane name is a 400 with nothing changed | `pkg/dashboard/api.go:539` |
| `GET` | `/api/config/reference-repos` | Owner only | `project.reference_repos` ([#18136](https://github.com/hivecommons/hive/issues/18136)): `reference_repos` (`{repo, write, write_token_file}` plus `derived_from` on a derived entry and, on every write entry, `credential_state`, `credential_reason` and `credential_login`, the GitHub account the writes appear under ([#18197](https://github.com/hivecommons/hive/issues/18197)), plus `credential_identity` (`bot`, `owner` or `token_file`) and `credential_note`, the one-line why ([#18516](https://github.com/hivecommons/hive/issues/18516)); always an array), `write_kinds`, `write_identity` (`project.remote_write_identity` with the default applied), `write_identities` and `bot_login` (the App bot login, when known) | `pkg/dashboard/api.go:577` |
| `PUT` | `/api/config/reference-repos` | Owner only | Replace `project.reference_repos`; `{"reference_repos": []}` clears it. Refused with a 400 and nothing changed when the config loader would reject the list (bare name, repo also in `project.repos`, duplicate, unknown write kind, token file without write) or when a write entry has no credential boot would accept — the same message boot exits 22 with — or when an entry carries a `write_token_file` the config file does not already hold for that repo (the path is operator-only; a dashboard write opt-in writes as the hive owner's connected GitHub account). Entries with `derived_from` ([#18139](https://github.com/hivecommons/hive/issues/18139)) are the request issue's grant: echo them back as served; changing one's write set, leaving one out, sending one the hive did not derive or adding a hand-written entry for the same repo is a 409 naming the issue to change instead ([#18161](https://github.com/hivecommons/hive/issues/18161)). They are never stored: the saved list holds the hand-written entries and the derived set is merged back in memory after the save. 500 when the file could not be written (proxy restored, nothing changed). On success the GitHub proxy's reference policies are replaced without a restart; audited as `config_reference_repos` | `pkg/dashboard/api.go:578` |
| `PUT` | `/api/config/reference-repos/write-identity` | Owner only | Set `project.remote_write_identity` ([#18516](https://github.com/hivecommons/hive/issues/18516)): body `{"write_identity": "bot"}`, one of `bot`, `bot_only`, `owner`. 400 on an unknown value, or when a hand-written write entry would have no credential under the new value (the message boot exits 22 with); nothing is stored then. 500 when the file could not be written. On success the reference repos are re-resolved before the response, which is the same body as `GET /api/config/reference-repos`; audited as `config_remote_write_identity` with `previous` and `write_identity` | `pkg/dashboard/api.go:588` |
| `GET` | `/api/config/repos/parent-autoclose` | Owner only | `repos.<repo>.parent_autoclose` for every monitored repo: the effective value (`true`, `epics_too`, `trackers_too` or `false`), whether the repo carries its own, the default and the four options the Settings editor offers ([#19070](https://github.com/hivecommons/hive/issues/19070)) | `pkg/dashboard/api.go:580` |
| `PUT` | `/api/config/repos/parent-autoclose` | Owner only | Set one monitored repo's parent auto-close policy: `{"repo": "owner/name", "value": "true" \| "epics_too" \| "trackers_too" \| "false"}`. `true` is the default and clears the override. 400 for a missing repo or an invalid value, 404 for a repo that is not monitored, 500 when the file could not be written (previous value restored). Applies without a restart; audited as `config_repo_parent_autoclose`. Parents a person reopened and tracking issues are never auto-closed under any value | `pkg/dashboard/api.go:581` |
| `GET` | `/api/config/review-feedback/rules` | Owner only | Reviewer-stated rule capture settings ([#19135](https://github.com/hivecommons/hive/issues/19135)): `enabled`, `trusted_associations`, `extra_phrases` and `disabled_signals`, each with `saved`, `effective`, `source` (`settings`, `env` or `default`), `default`, `env_var` and `yaml_key`; plus `associations`, `signals` (built-in signal names with examples) and `max_phrases` | `pkg/dashboard/api.go:583` |
| `PUT` | `/api/config/review-feedback/rules` | Owner only | Replace `review_feedback.rules.*`: `{"enabled": bool, "trusted_associations": [], "extra_phrases": [], "disabled_signals": []}`; an absent or null field clears that saved value (back to its env var, then the default). 400 with nothing changed for an unknown association or signal, a phrase under 3 or over 80 characters, or more than 20 phrases; 500 when the file could not be written (previous values restored). Applies on the review-feedback sweep's next pass without a restart; audited as `config_review_feedback_rules` | `pkg/dashboard/api.go:584` |
| `GET` | `/api/config/review-feedback/retry` | Owner only | Stranded review-feedback retry settings ([#19320](https://github.com/hivecommons/hive/issues/19320)): `max_retries` and `backoff`, each with `saved`, `effective`, `source` (`settings`, `env` or `default`), `default`, `env_var` and `yaml_key`; plus `max_max_retries` and `min_backoff` | `pkg/dashboard/api.go:585` |
| `PUT` | `/api/config/review-feedback/retry` | Owner only | Replace `review_feedback.retry.*`: `{"max_retries": 2, "backoff": "1h"}`; an absent or null field clears that saved value (back to its env var, then the default). 400 with nothing changed for `max_retries` outside 0..10 or a `backoff` that is not a duration of at least 10m; 500 when the file could not be written (previous values restored). Applies on the review-feedback sweep's next pass; audited as `config_review_feedback_retry` | `pkg/dashboard/api.go:586` |
| `GET` | `/api/config/prompt-sources` | Owner only | Repo-sourced prompt and definition gate ([#18490](https://github.com/hivecommons/hive/issues/18490)): `repos` (one row per managed repo, then any owner approval whose repo is no longer managed, each `{repo, managed, owner_approved, seed_allowed, allowed, approved_by, approved_at}`), `seed_enabled`, `seed_allowlist`, `trust_notice`, `seed_only_note` | `pkg/dashboard/api.go:601` |
| `PUT` | `/api/config/prompt-sources/owner-repos` | Owner only | `{"repo": "org/name", "allowed": true, "acknowledge_trust": true}` approves one of the hive's managed repos as a `prompt_source` / `definition_source` repo; `"allowed": false` revokes. 400 with nothing changed for a repo outside `project.repos` (still needs the seed edit), a malformed slug, or an approval without `acknowledge_trust: true`. Persisted to `variables.security.owner_github_prompt_repos` in the running config; audited as `config_prompt_source_repo`. Responds with the GET body | `pkg/dashboard/api.go:602` |
| `GET` | `/api/config/review` | Dashboard auth/session | Review Config Get | `pkg/dashboard/api.go:228` |
| `PUT` | `/api/config/review` | Owner only | Review Config Set | `pkg/dashboard/api.go:231` |
| `PUT` | `/api/config/governor/features` | Owner only | Governor Features | `pkg/dashboard/api.go:237` |
| `GET` | `/api/config/governor/general-advanced` | Owner only | Governor General Advanced Get | `pkg/dashboard/api.go:238` |
| `PUT` | `/api/config/governor/general-advanced` | Owner only | Governor General Advanced Set | `pkg/dashboard/api.go:239` |
| `GET` | `/api/config/auto-merge` | Owner only | Auto-Merge Config Get | `pkg/dashboard/api.go:243` |
| `PUT` | `/api/config/auto-merge` | Owner only | Auto-Merge Config Set | `pkg/dashboard/api.go:244` |
| `PATCH` | `/api/config/auto-merge` | Owner only | Partially update auto-merge settings, including nested `merge_train`; omitted fields stay unchanged; returns effective settings and bot-author metadata | `pkg/dashboard/api_config_automerge.go` |
| `GET` | `/api/config/convergence` | Owner only | Convergence Config Get | `pkg/dashboard/api.go:250` |
| `PUT` | `/api/config/convergence` | Owner only | Convergence Config Set | `pkg/dashboard/api.go:252` |
| `GET` | `/api/config/governor/advisory` | Owner only | Governor Advisory Get | `pkg/dashboard/api.go:256` |
| `PUT` | `/api/config/governor/advisory` | Owner only | Governor Advisory Set | `pkg/dashboard/api.go:257` |
| `GET` | `/api/config/governor/replan` | Owner only | Governor Replan Get | `pkg/dashboard/api.go:258` |
| `PUT` | `/api/config/governor/replan` | Owner only | Governor Replan Set | `pkg/dashboard/api.go:259` |
| `GET` | `/api/config/governor/work-source` | Owner only | Governor Work Source Get (Jira secrets/TLS fields reported as set/unset only) | `pkg/dashboard/api.go:269` |
| `PUT` | `/api/config/governor/work-source` | Owner only | Governor Work Source Set (including Jira Data Center TLS settings) | `pkg/dashboard/api.go:270` |
| `PUT` | `/api/config/governor/security` | Owner only | Governor Security | `pkg/dashboard/api.go:271` |
| `GET` | `/api/config/governor/project-observability` | Owner only | Governor Project Observability Get | `pkg/dashboard/api.go:272` |
| `PUT` | `/api/config/governor/project-observability` | Owner only | Governor Project Observability Set | `pkg/dashboard/api.go:273` |
| `GET` | `/api/config/governor/inference-auth` | Owner only | Governor Inference Auth Get | `pkg/dashboard/api.go:288` |
| `PUT` | `/api/config/governor/inference-auth` | Owner only | Governor Inference Auth Set | `pkg/dashboard/api.go:289` |

## Workflow models

Workflow-model library, bindings, ingest, editor and marketplace routes ([#17620](https://github.com/hivecommons/hive/issues/17620)); see [Workflow models](/docs/hive/design/workflow-models) for the model itself. Reads are open to any dashboard user; writes and every ingest route need the owner role. Routes that read or write the library answer `503` when no workflow store is configured. Model and store-entry fields are the JSON tags in `pkg/workflowmodel` and `pkg/workflowmodel/store`.

| Method | Path | Auth | Purpose | Source |
|---|---|---|---|---|
| `GET` | `/api/workflows` | Dashboard auth/session | List the workflow-model library. No body. Returns `{workflows[], bindings[], enabled, dispatch[], agents[]}`: `workflows` are store entries `{name, version, hash, description?, author?, source?, provenance?, compiled, diagnostics?[], states, columns, savedAt?, savedBy?, readOnly?}` (the built-in `hive-default` is listed read-only), `bindings` are `{repo, name, version}`, `enabled` is `workflow.enabled`, and `dispatch` and `agents` are the profile hand-off status described under `PUT /api/workflows/dispatch/profiles` | `pkg/dashboard/api_workflows.go:23` |
| `POST` | `/api/workflows` | Owner only | Save a model to the library. Body is a `workflow.hivecommons.dev/v1alpha1` model; an empty `spec.meta.version` saves at the next free integer version. Drafts that do not compile are stored with their diagnostics. Returns `201 {entry}`. Audited `workflow_save`; `400` bad name or version, `403` on `hive-default`, `409` when versions are exhausted | `pkg/dashboard/api_workflows.go:24` |
| `POST` | `/api/workflows/compile` | Dashboard auth/session | Compile a model without saving it, so the editor can show diagnostics while the operator types. Body is a model. Returns `{compiled, diagnostics[], profile?}`; needs no store | `pkg/dashboard/api_workflows.go:25` |
| `POST` | `/api/workflows/ingest` | Owner only | Derive a draft lifecycle model from a repository's GitHub Actions and Tekton definitions. Body `{repo}` (reads the default branch through the forge) or `{files: {path: contents}}` (pasted definitions), exactly one, plus optional `save` and `name`. Returns `{model, compiled, diagnostics[], profile?, ref, files, pipelines}`, where `ref` is the commit read, `files` the number of pipeline files and `pipelines` the number of pipelines in `model.spec.pipelines` (a count, not a list). With `save: true` the model is stored at the next free version and the response is `201` with `entry` added; audited `workflow_ingest`. `400` bad body, `502` forge read failed, `503` without a forge client | `pkg/dashboard/api_workflows.go:26` |
| `GET` | `/api/workflows/bindings` | Dashboard auth/session | Which repositories follow which model. No body. Returns `{bindings: [{repo, name, version}], enabled}`; `503` without config | `pkg/dashboard/api_workflows.go:27` |
| `PUT` | `/api/workflows/bindings` | Owner only | Bind or unbind a repository. Body `{repo, name, version}`; an empty `name` unbinds. The model must exist and compile. Persists `project.workflow_bindings` in `hive.yaml`. Returns `{changed, bindings[], dispatch[], agents[], checks?, warnings?[]}`; on a bind it also proposes the model's declared checks to the repository as `.hive/workflows/checks.yml` (`checks` is `{outcome, pr?}`, a failure is a `warnings` entry, never a failed bind). Audited `workflow_bind` / `workflow_unbind` when it changed something | `pkg/dashboard/api_workflows.go:28` |
| `PUT` | `/api/workflows/enabled` | Owner only | Turn model-based stage derivation (`workflow.enabled`, [#17620](https://github.com/hivecommons/hive/issues/17620)) on or off from the dashboard, for hosted hives with no `hive.yaml` access. Body `{enabled: bool}`; persists `hive.yaml`; the stage engine and tracker read the live flag so it applies on the next derivation pass without a restart. Turning on also provisions every bound repository's model labels now (`warnings[]` lists repositories that could not be provisioned; the next sweep retries). Returns `{enabled, changed, bindings[], warnings?[]}`. Audited `workflow_enabled` / `workflow_disabled`; `400` on a non-boolean body | `pkg/dashboard/api_workflows.go:29` |
| `POST` | `/api/workflows/dispatch` | Owner only | Send a model-owned item to its agent profile: the stage tracker's **Send to *profile*** on a row whose bound model hands its current state to a profile ([cncf/techdocs#395](https://github.com/cncf/techdocs/issues/395): Accepted → `techdocs-drafter`, Drafting → `techdocs-verifier`). Body `{repo, number}`. Reads the item fresh, resolves the agent (`workflow.dispatch.profiles.<profile>.agent`, then the default order ending at the hive's issue worker or reviewer, at every step only an agent whose mode lets it do what the profile needs, [#18749](https://github.com/hivecommons/hive/issues/18749); a profile disabled for automatic dispatch still resolves), takes the agent claim on an issue first, kicks the agent, and records the hand-off as pending once the kick lands so the automatic pass does not repeat it; a later pass marks it not started if the agent declines or ends its turn without the deliverable. Returns `{status: "sent", ref, model, state, profile, agent, result}`. Audited `workflow_dispatch`; `404` when the model does not hand the state to a profile, `409` when no agent fills it (the message gives the reason, for example that no agent on the hive may open pull requests in the repository, and names the Settings → Repos picker), someone else holds the claim, or the agent is busy | `pkg/dashboard/api_workflows.go:30` |
| `PUT` | `/api/workflows/dispatch/profiles` | Owner only | Pick the hive agent a bound model's profile is handed to ([#18690](https://github.com/hivecommons/hive/issues/18690)): the agent picker on a repository's workflow row in Settings → Repos. Body `{profile, agent}`; an empty `agent` clears the pin so the profile resolves by default again. Persists `workflow.dispatch.profiles.<profile>.agent` in `hive.yaml` (the profile's `prompt_template` and `disabled` are kept); the next scheduler pass reads the live config, so no restart is needed. `agent` must be an enabled agent that is not a replica (`400` otherwise). Returns `{changed, profile, agent, dispatch, agents}`, where `dispatch` lists every bound repository's profiles as `{repo, profile, agent, source, mode, needs, pinned, disabled, problem, states, candidates, not_started}` (`problem` is why nothing fills the profile, including a pin to an agent whose mode does not let it do the profile's work; `candidates` lists each pinnable agent as `{agent, mode, qualifies, reason}`; `not_started` lists the hand-offs an agent declined or did not act on while their item still waits, as `{ref, repo, number, profile, state, agent, reason, at, attempts, retrying, next, reason_at, reason_age, reason_session, stale}` (`reason_at`, `reason_age` and `reason_session` say when and in which hand-off session the reason was decided, and `stale` is true once a newer hand-off of the item exists, so the reason is history and not the item's state now, [#18916](https://github.com/hivecommons/hive/issues/18916)), [#18749](https://github.com/hivecommons/hive/issues/18749)) and `agents` the agents that can be picked; `GET /api/workflows` and `PUT /api/workflows/bindings` carry the same two fields. Audited `workflow_dispatch_agent` | `pkg/dashboard/api_workflows.go:31` |
| `GET` | `/api/workflows/{name}/{version}` | Dashboard auth/session | One stored model. No body. Returns `{entry, model, profile?}`; `profile` is present when the model compiles. `404` unknown model or version | `pkg/dashboard/api_workflows.go:32` |
| `PUT` | `/api/workflows/{name}/{version}` | Owner only | Save a model at an exact version. Body is a model whose `metadata.name` and `spec.meta.version` must match the path (`400` otherwise). Returns `201 {entry}`. Audited `workflow_save`; `403` on `hive-default` | `pkg/dashboard/api_workflows.go:33` |
| `DELETE` | `/api/workflows/{name}/{version}` | Owner only | Delete a stored model version. No body. Returns `{ok: true}`. Audited `workflow_delete`; `409` while a repository is bound to it, `403` on `hive-default`, `404` unknown | `pkg/dashboard/api_workflows.go:34` |
| `GET` | `/api/workflows/{name}/versions` | Dashboard auth/session | Every saved version of a model, newest save first; `hive-default` answers its single virtual entry. No body. Returns `{versions: [entry]}` | `pkg/dashboard/api_workflows_versions.go:19` |
| `GET` | `/api/workflows/{name}/diff` | Dashboard auth/session | Compare two saved versions. Query `from` and `to` (required) are versions of `{name}`; `fromName` and `toName` compare against another model, for example `hive-default`. Returns `{from: entry, to: entry, diff}`, where `diff` is `{columns, states, transitions, labels, rules, meta?[], summary, empty}` and each change set is `{added?[], removed?[], changed?: [{key, fields: [{field, from, to}]}]}`. `400` without `from` or `to` | `pkg/dashboard/api_workflows_versions.go:20` |
| `POST` | `/api/workflows/{name}/{version}/confirm` | Owner only | Confirm every inferred element: saves a copy with provenance `local` as the next free version. No body. Returns `201 {entry, confirmed, from}`, where `confirmed` is the number of inferred elements and `from` is the source `name@version`. Audited `workflow_confirm`; `409` on `hive-default` | `pkg/dashboard/api_workflows_versions.go:21` |
| `GET` | `/api/workflows/{name}/{version}/labels` | Dashboard auth/session | Preview what binding this model reconciles into a repository. No body. Returns `{name, version, hash, prefix, labels: [{name, color, description?, state?}], commands: [{state, verbs[]}], stages: [{state, number, label}]}`; a draft that does not compile answers `400 {error, diagnostics}` | `pkg/dashboard/api_workflows_versions.go:22` |
| `POST` | `/api/workflows/{name}/{version}/simulate` | Dashboard auth/session | Show which state a stored model puts an issue or PR in, and why. Body `{kind: "issue"|"pr", facts?}` or `{repo, number}` to read the item from the forge (`facts` wins when both are set). For a merged PR read from the forge, `pr.pipeline` is filled from the GitHub Actions post-merge run observer. Returns `{decision: {state, column, stage, label, reason, abstain, covered, terminal}, trace[], facts, filled[], unknown[], notes?[]}`. `422` when the model does not compile or no forge client is available, `502` forge read failed | `pkg/dashboard/api_workflows.go:36` |
| `POST` | `/api/workflows/yaml` | Dashboard auth/session | Convert between a model's JSON and YAML forms for the editor. Body `{model}` returns `{yaml}`; body `{yaml}` returns `{model}`, or `200 {error}` when the YAML does not parse or has unknown fields. Needs no store | `pkg/dashboard/api_workflows_editor.go:23` |
| `POST` | `/api/workflows/simulate` | Dashboard auth/session | Simulate an unsaved model from the editor. Body `{model, kind, facts}`, all required (the forge is never read). Returns the same body as the stored-model simulate; `422 {error, diagnostics}` when the model does not compile | `pkg/dashboard/api_workflows_editor.go:24` |
| `GET` | `/api/workflows/ingest/capabilities` | Owner only | What the extra ingest sources can do on this spoke. No body. Returns `{cluster, clusterReason?, contexts[], spec: {llm, model}}`: whether kubectl cluster ingest is available (and why not), the kube contexts, and whether a model gateway can assist spec ingest | `pkg/dashboard/api_workflows_ingest_sources.go:38` |
| `POST` | `/api/workflows/ingest/cluster` | Owner only | Derive a draft model from the Tekton objects in a kube context. Body `{context, namespace, allNamespaces?, selector?, runsPerPipeline?, repository?, save?, name?}`. Returns the repository ingest body (`pipelines` is a count) plus `source`, `runs: [{pipeline, namespace, run, status, completed}]` and `namespaces[]`; `201` with `entry` when saved. `400` no namespace, `403` RBAC denied, `404` unknown context, `413` caps exceeded, `422` no Tekton CRDs or no kubectl on the spoke | `pkg/dashboard/api_workflows_ingest_sources.go:39` |
| `POST` | `/api/workflows/ingest/spec` | Owner only | Derive a draft model from a written process spec. Body `{text}`, `{repo, path}` or `{url}` (exactly one), plus `useLLM?`, `repository?`, `save?` and `name?`. Returns `{model, compiled, diagnostics[], profile?, source, llm: {used, model, attempts, accepted, error?}, sections: [{heading, level, startLine, endLine}]}`; `201` with `entry` when saved. `422` when `useLLM` is set and no model gateway is configured, `413` spec too large | `pkg/dashboard/api_workflows_ingest_sources.go:40` |
| `GET` | `/api/workflows/{name}/{version}/bundle` | Dashboard auth/session | Export a stored model as a verified marketplace bundle. No body. Returns `{apiVersion, kind, model, profile, hash, createdAt, createdBy?, tier?}`; `422` when the model does not compile | `pkg/dashboard/api_workflows_marketplace.go:54` |
| `POST` | `/api/workflows/import` | Owner only | Import a bundle. Body is a bundle (at most 4 MiB). The hash is verified and the model recompiled; it is saved at the bundle's version when that is free, otherwise the next one. Returns `201 {entry, verified: true}`. Audited `workflow_import`; `400` malformed bundle, `403` built-in model, `413` too large, `422` verification failed | `pkg/dashboard/api_workflows_marketplace.go:55` |