# Validate providers Validate all provider configurations for an organization to check if they can be used. ## Path parameters **`organization_id`** string required Organization ID (org_ prefixed string). ## Returns Object mapping provider names to validation results. ```bash curl "https://api.aitronos.com/v1/organizations/org_abc123/providers/validate" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python import os import requests api_key = os.environ["FREDDY_API_KEY"] org_id = "org_abc123" response = requests.get( f"https://api.aitronos.com/v1/organizations/{org_id}/providers/validate", headers={"X-API-Key": api_key} ) validation = response.json() for provider, result in validation.items(): status = "✓" if result['can_be_used'] else "✗" print(f"{status} {provider}: {result}") ``` ```javascript const orgId = "org_abc123"; const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/providers/validate`, { headers: { "X-API-Key": process.env.FREDDY_API_KEY } } ); const validation = await response.json(); Object.entries(validation).forEach(([provider, result]) => { const status = result.can_be_used ? "✓" : "✗"; console.log(`${status} ${provider}:`, result); }); ``` **Response:** 200 OK ```json { "openai": { "provider_name": "openai", "exists": true, "is_active": true, "has_credentials": true, "can_be_used": true }, "anthropic": { "provider_name": "anthropic", "exists": true, "is_active": true, "has_credentials": false, "can_be_used": true }, "google": { "provider_name": "google", "exists": true, "is_active": false, "has_credentials": false, "can_be_used": false } } ``` 401 Unauthorized ```json { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Authentication required", "system_message": "User authentication required", "type": "client_error", "status": 401, "trace_id": "abc-123-def", "timestamp": "2025-12-07T10:30:00Z" } } ```