AI Chat Plugin

Update an AI provider credential.

PUT
http://localhost:3000/api/ai-chat/credentials/{id}

Body

application/json
tenantobject
tenantIdstring
organizationobject
organizationIdstring
sentTostring
providerIdstring

AI provider identifier (e.g. anthropic, openai)

apiKeystring

Secret API key (write-only; stored encrypted). Required unless the provider runs without one (local servers).

baseUrlstring

Custom base URL for the provider API

enabledbooleantrue

Whether this credential is active

isDefaultbooleanfalse

Whether this provider is the tenant's default for chat

defaultModelstring | null

Preferred default model id (e.g. claude-sonnet-5); null clears the stored model

isVoiceDefaultbooleanfalse

Whether this provider is the tenant's default voice (dictation) provider

speechModelstring | null

Preferred speech-to-text model id (e.g. whisper-1); null clears the stored model

Parameters

idstringrequiredpath

Response

200OK

The credential has been successfully updated. The API key is returned masked.

404Not Found

Record not found

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey