You can now test that your bearer token works by using the /users/me endpoint, which should return information about the current user.
You can now try and perform a simple search. Here we search a single source for the term “oil” and ask for some facets to also be returned. The facets we ask for are some named entities that appear in the documents. These are returned in groups with their respective values and counts (you get the top 20 values).
Here is the search payload:
If you have some matching results you should see something like this:
The hits are within the ‘items’ array and you will find the facets within the ‘facets’ object. In this example, the named entities are within the ‘terms’ sub-object.