# Onairos API Status Summary

## 🟢 **Live Production APIs**

### **Platform OAuth Endpoints**
- **Base URL**: `https://api2.onairos.uk`
- **YouTube**: `https://api2.onairos.uk/youtube/authorize` ✅ Live
- **Reddit**: `https://api2.onairos.uk/reddit/authorize` ✅ Live  
- **Pinterest**: `https://api2.onairos.uk/pinterest/authorize` ✅ Live
- **LinkedIn**: `https://api2.onairos.uk/linkedin/authorize` ✅ Live
- **Gmail**: `https://api2.onairos.uk/gmail/authorize` ✅ Live

### **Instagram Integration**
- **Method**: Opacity SDK (Native)
- **Environment**: Production
- **API Key**: `New-Test-1fbfae05-124f-448f-a436-bb1c0831d850` (Production key)
- **Status**: ✅ Working
- **Note**: Demo client ID `demo_instagram_client_id` is only used as OAuth fallback

### **Core APIs**
- **Account Info**: `https://api2.onairos.uk/getAccountInfo` ✅ Live
- **Credentials**: `https://api2.onairos.uk/mobile/get-credentials` ✅ Live
- **Public Key**: `https://api2.onairos.uk/public/getPublicKey` ✅ Live
- **API URL**: `https://api2.onairos.uk/getAPIUrlMobile` ✅ Live

## 🟡 **Test/Simulated APIs**

### **Training Simulation**
- **Progress**: Simulated 10-second progress bar
- **Status**: Test mode only
- **Purpose**: Demo training without actual model creation

### **Email Verification**
- **Validation**: Relaxed in test mode (any non-empty email)
- **Code Verification**: Any 6-digit code accepted in test mode
- **Purpose**: Skip real email verification for demos

## 🔧 **Configuration Status**

### **Client IDs**
| Platform | Current Status | Required Action |
|----------|----------------|-----------------|
| **YouTube** | Demo ID (crashes) | ⚠️ Consuming apps MUST provide own Google client ID |
| **Instagram** | Opacity SDK (working) | ✅ No action needed |
| **Reddit** | Demo ID | ⚠️ Replace with real client ID for production |
| **Pinterest** | Demo ID | ⚠️ Replace with real client ID for production |
| **LinkedIn** | Backend-handled | ✅ No client ID needed |

### **Graceful Fallbacks**
- **YouTube without setup**: Shows "unavailable" message, no crash
- **Other platforms**: Work with demo IDs for testing
- **Opacity SDK failure**: Falls back to standard OAuth

## 📱 **Platform Integration Status**

### **✅ Fully Working (No Setup Required)**
- Instagram (Opacity SDK)
- LinkedIn (Backend OAuth)

### **✅ Working with Live APIs (Demo Client IDs)**
- Reddit (functional but needs real client ID for production)
- Pinterest (functional but needs real client ID for production)

### **⚠️ Requires Setup**
- YouTube (needs Google Cloud Console setup + client ID)

## 🔄 **Test Mode vs Production Mode**

### **Test Mode** (`testMode: true`)
- **Training**: Simulated progress (10 seconds)
- **Email**: Any non-empty email accepted
- **Code**: Any 6-digit code accepted
- **APIs**: Live APIs used for credentials, simulated for training
- **Platforms**: All platforms work (YouTube shows unavailable if not setup)

### **Production Mode** (`testMode: false`)
- **Training**: Live API training process
- **Email**: Real email validation required
- **Code**: Real verification code required
- **APIs**: All live APIs
- **Platforms**: Require proper client ID configuration

## 🚨 **Critical Notes**

1. **YouTube Integration**: Will crash without proper Google setup - consuming apps MUST configure their own credentials
2. **Instagram Opacity SDK**: Working correctly with production environment
3. **Demo Client IDs**: Clearly marked and should be replaced for production use
4. **API Endpoints**: All using live production URLs (`https://api2.onairos.uk`)
5. **Graceful Degradation**: Package handles missing configurations without crashes (except YouTube Google SDK) 