HomeDev guideRecipesAPI ReferenceGraphQL
Dev guideUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Get started with GraphQL API

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

Synchronize content

Synchronize content types and content from the site, for the GraphQL API to work using the provided access key, See also Installation and configuration.

Access the API endpoint

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.

Access interactive GraphiQL page

When accessing the GraphQL API through the provided endpoint, you can also try Optimizely Graph through the 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.

If you are using Optimizely Graph integrated with CMS, you can access the GraphiQL directly by choose menu Optimizely Graph/GraphiQL (for the page working correctly on Firefox, you need to turn off the Enhanced Tracking Protection)

Work with the GraphQL schema

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