Skip to main content
GET
/
api
/
ai-models
/
organization
/
{organizationId}
Get organization configured AI providers
curl --request GET \
  --url https://your-instance.example.com/api/ai-models/organization/{organizationId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "aiProviders": [
      {
        "_id": "65f9b1c2e8a1d4e001a0b1c3",
        "aiModel": "5f7b1c2e8a1d4e0012c3b4a5",
        "modelDetail": "claude-sonnet-4-6",
        "apiKey": "sk-a••••••••f9d2"
      }
    ],
    "currentAiProviderIndex": 0,
    "currentAiModelIndex": 0,
    "currentAiModelVercelUniqueName": "anthropic"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

Response

Organization AI providers returned

success
enum<boolean>
required
Available options:
true
data
object
required