We have use case where user would enter information on IVR system and based on that we would like to fetch user details and transfer it to the agent. While we can use standard SOQL query REST API that is provided by salesforce, we are contemplating if we should right custom REST API instead. While using standard SOQL query makes development faster but it requires caller to know the salesforce object details and things like that vs custom REST API all caller needs to know is the interface which hides salesforce details from caller.
I am interested in any recommendation between the two approaches.