# Get model settings Retrieve the model availability settings for an organization. Returns which providers and models are disabled, and the default model key. Any authenticated member of the organization can retrieve model settings. Settings are created with defaults on first access if they do not yet exist. ## Path Parameters **`organization_id`** string required The unique identifier of the organization (e.g., `org_abc123def456`). ## Returns An `OrganizationModelSettingsResponse` object containing: - **`disabled_providers`** -- list of provider slugs that are disabled for the organization (default: `[]`). - **`disabled_models`** -- list of model keys that are disabled for the organization (default: `[]`). - **`default_model_key`** -- the default model key for the organization, or `null` if not set. - **`updated_at`** -- ISO 8601 timestamp of the last update, or `null` if never updated. - **`updated_by`** -- user ID of who last updated the settings, or `null`. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_abc123def456/model-settings" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") settings = client.organizations.get_model_settings( organization_id="org_abc123def456" ) print(settings) ``` ```python Python import os import requests token = os.environ["ACCESS_TOKEN"] organization_id = "org_abc123def456" response = requests.get( f"https://api.aitronos.com/v1/organizations/{organization_id}/model-settings", headers={"Authorization": f"Bearer {token}"} ) settings = response.json() print(settings) ``` ```javascript JavaScript const token = process.env.ACCESS_TOKEN; const organizationId = 'org_abc123def456'; const response = await fetch( `https://api.aitronos.com/v1/organizations/${organizationId}/model-settings`, { headers: { 'Authorization': `Bearer ${token}` } } ); const settings = await response.json(); console.log(settings); ``` Response ```json 200 - OK { "disabled_providers": ["google", "mistral"], "disabled_models": ["gpt-4o-mini"], "default_model_key": "claude-sonnet-4-6", "updated_at": "2026-03-01T10:30:00Z", "updated_by": "usr_abc123def456" } ``` ```json 200 - Default (no settings configured yet) { "disabled_providers": [], "disabled_models": [], "default_model_key": null, "updated_at": "2026-03-01T10:30:00Z", "updated_by": null } ``` ```json 401 - Unauthorized { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "User authentication required", "system_message": "Authentication required", "type": "client_error", "status": 401, "details": {}, "trace_id": "abc-123-def", "timestamp": "2026-03-01T10:30:00Z" } } ``` ```json 403 - Forbidden { "success": false, "error": { "code": "ORGANIZATION_ACCESS_DENIED", "message": "You are not a member of this organization", "system_message": "Organization access denied", "type": "client_error", "status": 403, "details": { "organization_id": "org_abc123def456" }, "trace_id": "abc-123-def", "timestamp": "2026-03-01T10:30:00Z" } } ``` ## Related Resources - [Update Model Settings](/docs/api-reference/organizations/management/update-model-settings) - [List Organizations](/docs/api-reference/organizations/management/list) - [Retrieve Organization](/docs/api-reference/organizations/management/retrieve) - [Update Organization](/docs/api-reference/organizations/management/update) - [List Models](/docs/api-reference/organizations/list-models)