- Added UNIQUE KEY on companies.name in DB so ON DUPLICATE KEY UPDATE actually fires instead of always inserting - Removed config_json and phone_number_id from upsert: those hold admin-configured bot data and should never be overwritten by ERP sync - Skip placeholder API key to avoid sending a fake Bearer token - Improved error reporting: curl errors, raw response preview, per-company error labels Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>