AI Models

Get organization AI settings (providers, API key status, model assignments)

GET
/api/ai-models/organization/{organizationId}/settings

Returns the per-provider configuration summary (hasApiKey, isEnabled, available models) and current section-based model assignments for the organization. Used by the AI Settings page to render provider cards and section dropdowns.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

organizationId*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/ai-models/organization/string/settings"
{  "success": true,  "data": {    "providers": {      "anthropic": {        "hasApiKey": true,        "isEnabled": true,        "providerName": "Anthropic",        "websiteUrl": "https://www.anthropic.com",        "availableModels": [          {            "modelName": "claude-sonnet-4-6"          }        ]      },      "openai": {        "hasApiKey": false,        "isEnabled": false,        "providerName": "OpenAI",        "websiteUrl": "https://platform.openai.com",        "availableModels": [          {            "modelName": "gpt-4o-mini"          }        ]      }    },    "modelAssignments": {      "dataExtraction": {        "provider": "anthropic",        "model": "claude-haiku-4-5"      },      "messageGeneration": {        "provider": "anthropic",        "model": "claude-sonnet-4-6"      }    }  }}