Add AI provider to organization
AI Models
Add AI provider to organization
Legacy endpoint that appends an entry to the aiProviders array on OrganizationCredentials with the supplied aiModel (AiModel _id), modelDetail (modelName) and apiKey. SUPERADMIN-only and tenant-scoped. The selected modelDetail must exist within the chosen provider.
POST
Add AI provider to organization
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
ObjectId of the AiModel registry entry (provider) to attach to this organization.
modelName to use within the chosen provider; must exist in that AiModel's modelDetails.
Provider API key; stored encrypted and never returned in GET responses.
Set current active AI model for organizationUpdate an existing AI provider configuration for organization