Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

Authentication

The GraphQL endpoints use the same authentication as ODP's REST APIs. The private key must be used for all GraphQL queries.

Endpoint

The hostname for the API is region-specific. Refer to the list below to find your region's hostname:

US: 
https://api.zaius.com/v3/graphql

Europe: 
https://api.eu1.odp.optimizely.com/v3/graphql

APAC: 
https://api.au1.odp.optimizely.com/v3/graphql

Discovering the GraphQL API

GraphQL is introspective. For more information about exploring GraphQL, see the documentation on the core concepts of the ODP GraphQL API.

📘

Note

Use the GraphQL API to query real-time segments for customer events within the last 28 days. If you want to use data greater than 28 days old, use the standard segments on the Customers > Segments page (see Create segments).