After investigation, it seems like there is no API available for this.
You can raise user voice for the same here:
User Voice URL:
https://microsoftteams.uservoice.com/forums/555103-public/filters/new
Thanks,
Prasad Das
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.