All Claret API calls are authenticated with tokens. Before making a call, you must authenticate first. You do this by first creating an authentication token and then use that token in the header of the subsequent API calls.
NOTE that all references to {tenant} should be replaced with the name of the Claret tenant (i.e., demo, zymoeno, etc.)
The X-Requested-With: XMLHttpRequest header should be included on all authenticated API requests. This header tells the server to return JSON-formatted error responses. Without it, authentication failures (expired token, missing token, etc.) will return an HTML redirect to the login page instead of a JSON 401 response.