Skip to navigation

Set the remote embedding endpoint

Writes RHEBOK_EMBED_URL, RHEBOK_EMBED_MODEL and RHEBOK_EMBED_TOKEN to the env file beside config.toml and returns the new config state. A field you leave out is not changed; null or a blank string removes it. While a URL is in effect, a model and a token must also be in effect. A value set in the process environment wins over the file.

Request

This endpoint expects an object.
urlstring or nullOptional

The endpoint’s base URL (RHEBOK_EMBED_URL).

modelstring or nullOptional

The model name to send (RHEBOK_EMBED_MODEL).

tokenstring or nullOptional

The Bearer token (RHEBOK_EMBED_TOKEN). It is write-only.

Response

Saved. The body is the new config state, as GET /api/config returns it.

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

400
Bad Request Error
409
Conflict Error
413
Content Too Large Error
421
Misdirected Request Error
422
Unprocessable Entity Error
500
Internal Server Error