Hi @Sanjay Kumar R ,
You don't need to find the subsites, use the complete sharepoint url path to send request to _api/contextinfo also works. Like the below:
https://abc.domain.com/teams/subsites/Documents/_api/contextinfo
Below is my test in PostMan:
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.