Comment on page
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:
Note that access tokens give access to your account! Store them securely and do not share them with anyone.
You then have to pass this personal access token in the
Authorizationheader as a token:
Authorization: Token <YOUR_TOKEN_HERE>
If you do not authorize correctly, your request will be treated as unauthenticated.
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.
Last modified 2yr ago