Update API Key Config
API Key Configuration
Update API Key Config
POST
Update API Key Config
Use this API to update the app configuration for a workspace API key. Every field is optional, but at least one must be provided. Unknown fields are rejected. All writes are field-merge only — no fields are removed.
This endpoint uses API-key-level auth: pass
x-velt-api-key and x-velt-auth-token as headers. You can obtain these from the Get Auth Tokens endpoint.Endpoint
POST https://api.velt.dev/v2/workspace/apikeyconfig/update
Headers
Your API key.
Your Auth Token.
Body
Params
At least one of the following fields must be provided.
Example Request
Example Response
Success Response
The response echoes the post-write values for the fields you provided. For
aiModelApiKey, the keys come back masked under aiModelsConfig as a map of provider -> { displayText } (the same shape as Get API Key Config) — the raw key value is never returned. When enablePrivateComments is the only field and its value already matches the current value, the write is skipped internally and the response is simply { "enablePrivateComments": <value> }.
