London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Getting started

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

Steps to get started

Accessing the API

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

When accessing the GraphQL API trough the provided endpoint, you also get access to GraphiQL, which is a built-in tool for the GraphQL integrated development environment, useful when working with queries.

Synchronizing content

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

Working with the GraphQL schema

See GraphQL schema how to work with the generated schema. 

Related topics

Last updated: Jan 05, 2021