API client using login v2 with v1 fallback.