@sasikala giramma Which documentation are you following? Can you share the complete details about the error message you are getting?
Please check the reference documentation for the Azure Digital Twins REST APIs and Query Twins and let us know if that helps.
Feel free to respond/comment for further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.