Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
There's no direct API call to generate the "request to join" link that appears when you hover over the name of a room in the participants search.
If you wish you can suggest this feature here:
Thanks,
Nivedipa
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.