Get started with the GraphQL API
How to get started with the GraphQL API, which is used in the Optimizely querying service to retrieve content in Optimizely's solutions.
Synchronize content types and content from the site using the provided access key for the GraphQL API to work. SeeInstallation and configuration.
Access the API endpoint
Access the GraphQL API through the URLhttps://cg.optimizely.com/content/v2?auth={singlekey}. Use thesinglekey you received when your account was created.
Access the interactive GraphiQL page
When accessing the GraphQL API through the provided endpoint, you can also try Optimizely Graph through the GraphiQL pagehttps://cg.optimizely.com/app/graphiql?auth={singlekey}, which is a built-in tool for the GraphQL integrated development environment; useful when working with queries.
If you use Optimizely Graph integrated with Optimizely Content Management System (CMS), you can access GraphiQL directly by choosing theOptimizely Graph/GraphiQL from the menu of the Dashboard.

Or, by choosingSettings >GraphiQL

📘
NoteFor the page to work correctly in Firefox, you must toggle offEnhanced Tracking Protection.
Work with the GraphQL schema
SeeGraphQL schema for how to work with the generated schema.
Updated 2 months ago

