API sanitization corrections