Ways to call Jahia APIs
Question
What's the best ways to use Jahia APIs?
What is the header to set to call the Jahia API?
Answer
Different APIs can be called.
The GraphQL API can be called with a simple post in JSON format. It can be used in any framework. An example could be found in Using GraphQL to perform queries documentation.
Actions can be called with a simple http(s) request. It depends on the action configuration if the user must be logged.
If authentication is needed, a possibility is to use a personal API token; the token can be set in the header.