I'm trying to utilize the Dataverse search api for an externally hosted web app connected to dataverse. The web app uses an application user to interact with Dataverse, but when I POST a search request, it always gives me a 500 error on the v1.0 endpoint, and 400 error on v2.0 endpoint. I'm following the documentation here:
docs.microsoft.com/.../relevance-search
This is how my query to Dataverse for the search looks:
https://{orgname}.api.crm.dynamics.com/api/search/v1.0/query?search={searchTerm}
The headers of the request has the token from CRM.
Thanks for any guidance--- I think I'm missing something here. Googled a bunch online and couldn't seem to find much material for how to interact programmatically with the search API.