Flow:
Invalid, return 400 with the probe body —
the row is not touched. Nothing to roll back.Valid, store_byok UPSERTs the config row with the ciphertext
and flips byok_status to active.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Agent kind identifier
Request body for POST /agent-configs/validate-key and
PUT /agent-configs/{kind}/byok-key. Shared because both endpoints
just take a raw provider API key.
Plaintext Anthropic API key. Transported over TLS + never logged.
Key probed, encrypted, stored
A single agent_configs row as exposed over the REST API. Deliberately
omits byok_key_ref and byok_key_version — those never cross the
API boundary.