List projects I'm in as a member

I’m trying to get list of gitlab projects I’ve been invited to.

Using https://gitlab.com/api/v4/users/:user_id/projects I can get only list of projects I’ve created. But how can I get projects that I was invited to as a member but that I didn’t create?

“membership=false”, “membership=true”, “owned=false”, “owned=true” didn’t affect result set.

Just 4 years later you got the Users API | GitLab endpoint that would list all the projects the user is a member of.

Somewhat like https://gitlab.com/api/v4/users/:user_id/memberships