Finding the GraphQL Playground URL in Sanity's documentation
12 replies
Last updated: May 29, 2020
AI Update
The GraphQL endpoint URL is the playground - when you visit it in your browser, it automatically displays the GraphQL playground interface!
The URL format is:
https://<project-id>.api.sanity.io/v<api-version>/graphql/<dataset>/<tag>
For most projects, this looks like:
https://<project-id>.api.sanity.io/v2024-01-01/graphql/<dataset>/default
Where:
<project-id>is your Sanity project ID<dataset>is your dataset name (usuallyproduction)<tag>is typicallydefault(unless you've deployed tagged endpoints)
So the same URL serves double duty - visit it in your browser to get the interactive playground, or use it as the endpoint when querying from code. You can find more details in the GraphQL playground section of the docs.
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.