Coreo GraphQL API – Overview
More information about GraphQL can be found at https://graphql.org/.
Coreo’s graphql API is accessible at https://api.coreo.io/graphql. If you visit the API in the browser you will also be able to access the documentation in the top right corner.
Generating an API key
To create an API key for a project you must go to Configuration -> API keys and press the Create Token button. This will generate a JWT specific to your project that you can used to authenticate API requests with.
Authentication
Coreo uses JWT to authenticate its requests. Without authenticating your requests you’ll be restricted to viewing only a few public projects with restricted access.
To authenticate your requests set the ‘Authorization’ header to ‘JWT YOUR_PROJECT_API_KEY’. A valid Authorisation header will look like:
JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Now that your requests are authenticated you should be able to query your project.