Fixing API authentication.