Is there a way to get list of pending invitations for a user via JS SDK or Platform API?

I need to show my user a list of invitations that he would have received.
Is there a way to get all pending invitations for a user via either platform API or Javascript SDK?

Use the memberStateFilter when you get a list of channels.

Something like this for the JS SDK:

groupChannelQuery.memberStateFilter = 'invited_only';

You’ll do something similar with the Platform API with memberStateFilter

1 Like