I would like to access the records related to contact predefined list views (like birthdays this week, contacts added this week), and custom views created by the user, using REST API.
The SOQL query I tried is
https://ap.salesforce.com/services/data/v43.0/sobjects/Contact/listviews/{id}/results
This does provide the results but it doesn't give the value of the fields I want.
I want to be able to do something like
select firstname,email from Contact
but fetch the records associated with the custom view selected by the user.
Edit:
I created a few custom views and tried getting their query using describe, as suggested by @David Reed. But the query I'm getting for all user created custom views are the same.
SELECT Name, Account.Name, Phone, Email, Title, Owner.Alias, Id, CreatedDate, LastModifiedDate, SystemModstamp, Account.Id, AccountId, Owner.Id, OwnerId FROM Contact USING SCOPE mine ORDER BY Name ASC NULLS FIRST, Id ASC NULLS FIRST