I am trying to use tooling API to do some dynamic metadata analysis and I have it a roadblock. While trying to execute a simple anonymous query using below
/services/data/v51.0/tooling/query/?q=select+Contract_Discount__c+from+Quote_Trending_History__c
I am getting following error in executing this query
[{'message': "sObject type 'Quote_Trending_History__c' is not supported.", 'errorCode': 'INVALID_TYPE'}]
I am able to execute the same query from workbench soql tab but when using REST explorer or workbench it gives the same error. I have confirmed both the queries are being executed using same user so it cannot be permission issue. The user being used for this is a System Administrator.