Optimizely CMS 13 Graph QL on local

Hi,

How can I run graph ql locally. I have demo keys. 

Startup.cs

services
    .AddCmsAspNetIdentity<ApplicationUser>()
    .AddCms()
    .AddAlloy()
    .AddAdminUserRegistration()
    .AddEmbeddedLocalization<Startup>();

services.AddGraphContentClient();

 

 

Facing below error.

An unhandled exception occurred while processing the request.

GraphHttpException: Invalid credentials. Try verifying your credentials.

Optimizely.Graph.Core.GraphExceptionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in GraphExceptionHandler.cs, line 23

InvalidOperationException: Failed to communicate with Graph API. This may indicate network issues or that Graph is unavailable. Error: Invalid credentials. Try verifying your credentials.. Query: query NewsPageQuery {
NewsPage (limit: 10) {
items { _id _metadata { key version locale } }
}}

 

 

#342823
Jun 18, 2026 9:26

Hi,

appsettings.json does not look right, it should be like this:

https://docs.developers.optimizely.com/content-management-system/docs/install-and-configure-optimizely-graph-on-your-site#configure-the-sync-package-settings-in-aspnet-core

"Optimizely": {
  "ContentGraph": {
    "GatewayAddress": "https://cg.optimizely.com",
    "AppKey": "your-app-key",
    "Secret": "your-secret",
    "SingleKey": "your-single-key",
    "AllowSendingLog": "true"
  }
}
#342867
Edited, Jun 24, 2026 3:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.