GraphQL
How to access Tokens Studio data directly using GraphQL in your project.
If you're looking to automate Tokens Studio data for build pipelines or pull it to another project or tool you're using, we offer a GraphQL endpoint that you can query directly.
Prerequisites:
Accessing the GraphQL endpoint
Configure the Authorization Header
Open the Connection settings modal by clicking on the Gear icon in the top menu bar.

Within the Connection settings modal, there is a Shared headers section. Select "Authorization header" in the header key input.
You will need an API key generated from the Tokens Studio platform. If you don't have this available, you can follow these instructions to generate one.
In the value input: Bearer <API_KEY>
(replace <API_KEY>
with your API key. Click save.

View the available queries:

The query section will show the available queries as can be seen in the SDK-CLI documentation > Query page.

Example: Running a Query
Add variables
In the "Variables" section, we need to add the organisation id. To get the organisation ID, Navigate to your organization in Studio. Copy the Organization ID from the URL (after /org/
).

Return to the Apollo Sandbox, enter the organisation id in the "Variables section".
{
"organization": "<org-ID>"
}
Last updated