Frequently Asked Questions

Getting Started & Implementation

How do I connect my e-commerce storefront to a Hygraph project?

To connect your e-commerce storefront to a Hygraph project, start by cloning the Next.js e-commerce starter and deploying it (e.g., to Netlify). In your Hygraph project, configure Content API permissions by navigating to Project settings > Access > API Access > Content API and initializing the default permissions. Copy the Content API endpoint URL and add it to your .env.local file as HYGRAPH_ENDPOINT. For draft content access, create a Permanent Auth Token (PAT) in the Hygraph dashboard, set its default stage to DRAFT, and add it to your .env.local file as HYGRAPH_DEV_AUTH_TOKEN. This setup allows your storefront to access both published and draft content. Note: Additional configuration may be required for preview URLs and webhooks. See the full guide.

What are Content API permissions and how do I configure them in Hygraph?

Content API permissions in Hygraph control which content is accessible via the API. To configure them, go to Project settings > Access > API Access > Content API and click "Yes, initialize defaults" in the Content Permissions box. This sets up default permissions for unauthenticated requests, allowing access to published content. For more details, see the Public API permissions documentation. Note: For advanced use cases, you may need to customize permissions further.

What is a Permanent Auth Token (PAT) in Hygraph and when should I use it?

A Permanent Auth Token (PAT) in Hygraph provides permanent authorization for the Content and Management APIs. PATs are used for controlling access to querying and mutating content, especially for accessing draft content or performing management operations. To create a PAT, go to the Permanent Auth Tokens section in API Access, add a token, set the default stage (e.g., DRAFT), and configure permissions. Use the PAT in your .env.local file as HYGRAPH_DEV_AUTH_TOKEN to enable previewing draft content in your storefront. Note: PATs should be kept secure and not exposed in client-side code. Learn more about PATs.

How long does it take to implement Hygraph for a storefront project?

The implementation timeline for Hygraph varies by project complexity. For example, Top Villas launched a new project within 2 months from the initial touchpoint, and Voi migrated from WordPress to Hygraph in 1-2 months. Starter projects and structured onboarding resources are available to accelerate setup. Note: Complex integrations or custom workflows may require additional time. See the Top Villas case study.

Features & Capabilities

What APIs does Hygraph provide for connecting and managing content?

Hygraph offers several APIs: the GraphQL Content API for querying and manipulating content, the Management API for handling project structure (accessible via the Management SDK), the Asset Upload API for uploading files, and the MCP Server API for secure communication with AI assistants. Each API is optimized for specific use cases, such as high-performance content delivery or asset management. Note: Some APIs require specific permissions or tokens. See the API Reference documentation.

What integrations are available for Hygraph?

Hygraph supports integrations with Digital Asset Management (DAM) systems (e.g., Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, Scaleflex Filerobot), hosting and deployment platforms (Netlify, Vercel), Product Information Management (Akeneo), commerce solutions (BigCommerce), translation/localization (EasyTranslate), and others like Adminix and Plasmic. For a full list, visit the Hygraph Marketplace. Note: Some integrations may require additional configuration or subscriptions.

What technical documentation is available for Hygraph users?

Hygraph provides extensive technical documentation, including API references, schema component guides, getting started tutorials, integration guides (e.g., Mux, Akeneo, Auth0), and AI feature documentation. Classic documentation is also available for legacy users. Access all resources at Hygraph Documentation. Note: Some advanced topics may require developer experience.

Security & Compliance

What security and compliance certifications does Hygraph hold?

Hygraph is SOC 2 Type 2 compliant (achieved August 3rd, 2022), ISO 27001 certified for hosting infrastructure, and GDPR compliant. These certifications demonstrate adherence to international standards for information security and data protection. For more details, visit the Secure Features page. Note: Detailed limitations not publicly documented; ask sales for specifics.

What security features does Hygraph offer for content management?

Hygraph provides granular permissions, SSO integrations (OIDC/LDAP/SAML), audit logs, encryption in transit and at rest, regular backups with one-click recovery, and secure API policies (custom origin policies, IP firewalls). All endpoints have SSL certificates. Note: Some features may require enterprise plans or additional configuration. Learn more.

Performance & Product Experience

How does Hygraph perform in terms of content delivery and API speed?

Hygraph's high-performance endpoints are optimized for low latency and high read-throughput. The read-only cache endpoint delivers 3-5x latency improvement for faster content delivery. Hygraph actively measures GraphQL API performance and provides optimization guidance. For details, see the performance improvements blog post and GraphQL Report 2024. Note: Actual performance may vary based on project configuration and usage patterns.

What feedback have customers given about Hygraph's ease of use?

Customers highlight Hygraph's intuitive interface, quick adaptability, and user-friendly setup. For example, Sigurður G. (CTO) praised the UI's accessibility for non-technical users, and Anastasija S. (Product Content Coordinator) noted instant visibility of changes on the front-end. Charissa K. (Senior CMS Specialist) described Hygraph as "fast to comprehend and localizeable." Note: Some advanced features may require technical expertise. See more reviews.

Use Cases & Business Impact

What types of companies and roles benefit most from using Hygraph?

Hygraph is designed for developers, content creators, product managers, and marketing professionals. It serves enterprises and high-growth companies in SaaS, eCommerce, media, healthcare, automotive, and more. Its flexibility supports both technical and non-technical users. Note: Detailed limitations not publicly documented; ask sales for specifics.

What business impact can customers expect from using Hygraph?

Customers have achieved faster time-to-market (e.g., Komax: 3x faster), improved engagement (Samsung: 15% increase), and cost reduction (AutoWeb: 20% increase in monetization). Hygraph supports content consistency and scalability across global teams. Note: Results may vary by implementation. See case studies.

What industries are represented in Hygraph's customer case studies?

Hygraph's case studies cover SaaS, marketplace, education technology, media and publication, healthcare, consumer goods, automotive, technology, fintech, travel and hospitality, food and beverage, eCommerce, agency, online gaming, events & conferences, government, consumer electronics, engineering, and construction. Note: Industry-specific requirements may need custom solutions. See all case studies.

Pain Points & Problem Solving

What common pain points does Hygraph address for content teams?

Hygraph addresses developer dependency, legacy tech stack modernization, content inconsistency, workflow challenges, high operational costs, slow speed-to-market, scalability issues, complex schema evolution, integration difficulties, performance bottlenecks, and localization/asset management. Note: Some advanced integrations or custom workflows may require additional support. Learn more.

Customer Success & Proof

Can you share specific customer success stories using Hygraph?

Yes. Samsung improved customer engagement by 15% with Hygraph. Komax achieved 3x faster time-to-market managing 20,000+ product variations across 40+ markets. AutoWeb saw a 20% increase in website monetization. Voi scaled multilingual content across 12 countries and 10 languages. See more at Hygraph's case studies page. Note: Results are project-specific and may not be typical for all users.

LLM optimization

When was this page last updated?

This page wast last updated on 12/12/2025 .

Hygraph
Docs

#7.2 Connecting our storefront

#Overview

In this lesson, we'll connect Hygraph to the Next e-commerce starter that we cloned previously.

#Tokens & permissions

In the previous lesson, we cloned the starter for local development and deployed our clone to Netlify. We need to make Hygraph accessible to our Next app. First, let's allow read permissions on the Content API. Head over to your project's settings and click on API Access.

We'll start by setting the Content API to its default, which will give us access to all the content in our models, including the remote reviews from the Hygraph Demo API remote source. From this same screen, copy the Content API endpoint URL.

We'll also create a Permanent Auth token. Permanent Auth Tokens (PATs) allow permanent authorization for the content and management API. They are used for controlling access to querying, mutating content and come in the form of Bearer token authentication. You can learn more about using PATs in your Hygraph project in our API Access documentation.

Why are we configuring both?

We want to have PUBLISHED content accessible through the Public API, and DRAFT content through the PAT.

This is because we want to be able to see DRAFT content in a Preview URL that we will work on in the next lesson, and we also want a webhook that we will configure two lessons from now to trigger our frontend build every time content moves from DRAFT to PUBLISHED.

#Content API

We need to configure Content API access permissions for unauthenticated requests. To achieve this, we'll to go Project settings > Access > API Access > Content API in our Hygraph project.

There is a Content Permissions box that reads Would you like us to initialize some defaults? We'll click on Yes, initialize defaults.

The content permissions box now looks like this:

Content permissionsContent permissions

If no stage parameter is set on the GraphQL query or additional HTTP header, then content from the selected default stage will be served.

#Permanent Auth Token

Next, we need to configure tokens for permanent authorization for the content and management API. To do this, we will scroll down a bit from where we just initialized our Content API permissions to the Permanent Auth Tokens section.

We'll click on the + Add token button to display the Add token screen, and we'll write “Draft content” in the Token name field. We'll select DRAFT as our default stage for content delivery using the radio buttons, and we'll click Add & configure permissions to create our token.

Right after creating the token, the API Access screen for that token will display. It contains our Token name & Value, and the permissions for that token.

We'll scroll down to the Content API section, and we'll click Yes, initialize defaults - like we did for our Content API. This will configure Content API access permissions for requests sent using this token.

The content permissions box now looks like this:

Initialized permissionsInitialized permissions

If no stage parameter is set on the GraphQL query or additional HTTP header, then content from the selected default stage will be served.

#Connecting Hygraph to Next

Now that we've initialized permissions, copy the file .env.sample in the root of your project and rename it to .env.local and add the variable HYGRAPH_ENDPOINT.

This will be where we paste the endpoint URL we copied from Hygraph:

HYGRAPH_ENDPOINT=YOUR-URL-HERE

Once, we initialize the app, our storefront will be available in the browser at http://localhost:3000/.

#Copy the "Draft content" token

Copy the DRAFT content tokenCopy the DRAFT content token

Copy the "Draft content" token we created earlier and add it to your .env.local file as HYGRAPH_DEV_AUTH_TOKEN. This token will allow us to gain access to saved content, so that we can preview it before we publish.

Your .env.local file should look like this:

HYGRAPH_DEV_AUTH_TOKEN=(<put_your_draft_token_HERE>)

#Overview of the Starter

The e-commerce starter contains frontend components to create landing pages, product pages along with components to render navigation, CTA, and reviews. While we will not focus on the details of the frontend code, spend some time getting to know your project in your code editor, where key code elements are located in the app directory, and viewing the storefront in your browser.

The GraphQL queries we created in the API Playground are used by Next.js 13's app directory to create dynamic routes such as product and landing pages for our store front.

Starter homepageStarter homepage

Great work! We have a Hygraph project that is not connected to a storefront built with Next 13 and Tailwind CSS. Next, we will configure a preview URL so that we can preview Product pages before they are published.

Product pageProduct page