Skip to navigation

Read the config

Returns config.toml three ways (what the file sets, what rhebok runs with, and the defaults), its etag, its problems, whether each secret is set, which environment variables override the remote embedding endpoint, and the embedding models the dashboard offers. Secret values are never returned.

Response

The config state. The example trims effective and defaults to a few keys; the real objects hold the whole config.

pathstring

The path of config.toml.

existsboolean
etagstring

sha256 of the file’s bytes as hex, or "" when there is no file. Send it back on save.

effectivemap from strings to any

The whole config rhebok runs with, every default filled in. Keys that look like secrets are removed. Dotted paths into this object are the keys of a save’s set.

surface_weightsobject

The ranking weights the hook and MCP each use after per-surface overrides.

filemap from strings to any or null

Only what config.toml itself sets. {} when there is no file, null when it does not parse.

defaultsmap from strings to any

The config with nothing set, in the same shape as effective.

errorslist of objects
Every problem in the file as it is now.
secretsobject
Whether each secret is set. The values are never returned.
env_overrideslist of objects
Endpoint settings that come from the process environment, which the dashboard cannot change.
embed_modelslist of objects
endpointobject

Errors

421
Misdirected Request Error
500
Internal Server Error
503
Service Unavailable Error