Hello @Gaurav agarwal and thanks for reaching out. To access API management service, you need to obtain an access token for Azure Resource Manager REST API trough a separate call. Also, your user needs to be assigned RBAC roles with enough permissions.
Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.