AI Models

Get organization configured AI providers

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

Legacy endpoint that returns the organization's configured providers (one per registered AiModel) with their API keys masked, plus the currentAiProviderIndex / currentAiModelIndex / currentAiModelVercelUniqueName fields. New consumers should prefer /settings + /assignments instead.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

organizationId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/ai-models/organization/string"
{  "success": true,  "data": {    "aiProviders": [      {        "_id": "65f9b1c2e8a1d4e001a0b1c3",        "aiModel": "5f7b1c2e8a1d4e0012c3b4a5",        "modelDetail": "claude-sonnet-4-6",        "apiKey": "sk-a••••••••f9d2"      }    ],    "currentAiProviderIndex": 0,    "currentAiModelIndex": 0,    "currentAiModelVercelUniqueName": "anthropic"  }}