HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

Get started with Optimizely Content Graph

This topic describes how to get started with the GraphQL API used in the Optimizely querying service, for retrieving content in Optimizely solutions.

The following instructions help you to get started working with Optimizely Content Graph. Use this guide as a handy reference if you are already familiar with the concepts and tools. If you are new to many of these concepts, follow the links in each section for more information.

Synchronizing content

Content types and content need to be synchronized from the site, for the GraphQL API to work using the provided access key, see Installation and configuration.

Accessing the API endpoint

You access the GraphQL API through the URL https://cg.optimizely.com/content/v2?auth={singlekey}. Use the "singlekey" you received when your account was created.

Accessing interactive GraphiQL page

When accessing the GraphQL API through the provided endpoint, you can also try Content Graph through GraphiQL page https://cg.optimizely.com/app/graphiql?auth={singlekey}, which is a built-in tool for the GraphQL integrated development environment, useful when working with queries.

Working with the GraphQL schema

See GraphQL schema for how to work with the generated schema.