API request to users/by-external on private forum

Thanks! I wasn’t using an API key or username. When I add them the user is returned.

Edit: I answered that too quickly. When I add the API key and API username to the request it’s no longer being redirected to /session/sso but it’s returning Discourse::InvalidAccess from lib/auth/default_current_user_provider.rb, line 79

After that, the next function call in my application is finding the user by their email address. Unfortunately, I’m making the call from WordPress, so the email address isn’t a reliable way to find the user.