How to use and access the Datacake GraphQL API.
To read or write any data, you need to authenticate with an access token. You can generate access tokens in your user settings.
See this guide on how to create access tokens:
You then have to pass this personal access token in the
Authorizationheader as a token:
Authorization: Token <YOUR_TOKEN_HERE>
To authenticate in GraphiQL, paste your API token in the corresponding field at the top of the page:
If you do not authorize correctly, your request will be treated as unauthenticated. The easiest way to check if you are authorized is to query for the authenticated user data:
If the returned user object is
null, the request is not authenticated.