api for invitation filter