Frequently Asked Questions
Technical Usage of Headers in Hygraph
What are HTTP headers and why are they important when using Hygraph's Content API?
HTTP headers are key-value pairs included in HTTP requests that communicate extra information between the client and the server. In Hygraph's Content API, headers are essential for tasks like authentication, specifying content type, and controlling how data is fetched. They act as metadata for your request, ensuring secure and accurate communication with the API. Learn more.
Which HTTP headers are most commonly used with Hygraph's GraphQL API?
The most commonly used headers are Authorization (for secure API access using a Bearer token), Content-Type (usually set to application/json), and custom headers like gcms-stage and gcms-locales for controlling content stages and localization. See details.
How do I add headers to a GraphQL query in Hygraph?
You can add headers using tools like cURL or JavaScript's fetch API. For example, with cURL: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_TOKEN_HERE" -d '{"query": "{ yourQueryHere }"}' https://your-graphql-api.com/graphql. In JavaScript, include headers in the headers object of your fetch request. See examples.
What is the purpose of the Authorization header in Hygraph?
The Authorization header is used to securely access Hygraph's API by passing an authentication token (Bearer token). This ensures that only authorized users or systems can access your data. Example: Authorization: Bearer YOUR_TOKEN_HERE. More info.
When should I use the Content-Type header with Hygraph's API?
The Content-Type header specifies the format of the request body. For GraphQL queries in Hygraph, it should be set to application/json to indicate that the request body contains JSON data. Learn more.
What are custom headers in Hygraph and when should I use them?
Custom headers in Hygraph, such as gcms-stage and gcms-locales, are used to control specific aspects of data fetching, like selecting content stages or locales. They are unique to Hygraph's API and not standard HTTP headers. Use them when you need to dynamically control content delivery without changing your query structure. Details here.
How do I use the gcms-locales header for localization in Hygraph?
The gcms-locales header allows you to specify which locales (languages) your query should return. This is useful for keeping queries consistent across environments and for easier management of localized content. Example: 'gcms-locales': 'rb, de, en'. Read more.
What is the gcms-stage header and how does it affect my queries?
The gcms-stage header lets you specify the content stage (e.g., DRAFT, PUBLISHED) for your query. This helps keep queries consistent across environments and can simplify switching between stages without modifying the query itself. Example: 'gcms-stage': 'DRAFT'. More info.
How do I use the hyg-stale-if-error header with Hygraph's high performance endpoint?
The hyg-stale-if-error header allows you to set how long stale data should be served if an error occurs, on a per-query basis. The value is in seconds (default is 86400 for shared clusters). This is only available on the high performance endpoint and can be customized for dedicated clusters. Learn more.
What does the hyg-stale-while-revalidate header do in Hygraph?
The hyg-stale-while-revalidate header lets you specify how long stale data should be served while the cache is being revalidated. The value is in seconds (default is 0 for shared clusters). This is only available on the high performance endpoint and can be customized for dedicated clusters. More info.
How can I debug query complexity in Hygraph using headers?
You can use the x-debug-complexity header to enable complexity debugging, which returns the complexity tree for your query. Set the value to true or false as needed. Example: 'x-debug-complexity': 'true'. See documentation.
Where do I add headers in the Hygraph API Playground?
In the Hygraph API Playground, you can add headers in the designated headers section. This allows you to test queries with different headers for authentication, localization, or custom behavior. Learn more.
Why would I use headers instead of query parameters in Hygraph?
Using headers instead of query parameters can help keep your queries consistent across different environments (production, development, etc.) and can be easier to manage dynamically, especially for localization and content stage selection. Read more.
Can I customize cache behavior with headers in Hygraph?
Yes, you can customize cache behavior using headers like hyg-stale-if-error and hyg-stale-while-revalidate on the high performance endpoint. These headers let you control how long stale data is served in case of errors or during cache revalidation. Learn more.
How do I check the current default cache settings for my Hygraph cluster?
You can check your current default cache settings by sending a request to the high performance endpoint and inspecting the response headers, such as gcms-origin-cache-control. For shared clusters, the default is typically s-maxage=31536000, stale-if-error=86400, stale-while-revalidate=0. More info.
Is the hyg-stale-if-error header available on all Hygraph clusters?
No, the hyg-stale-if-error header is only available on the high performance endpoint. The default value is customizable for dedicated clusters but is set to 86400 seconds (1 day) for shared clusters. Details here.
How do I specify multiple locales using the gcms-locales header?
You can pass an array of locales as a comma-separated string in the gcms-locales header, e.g., 'gcms-locales': 'rb, de, en', to define your fallback preference for localized content. See documentation.
Can I use custom headers to control content stages in Hygraph?
Yes, you can use the gcms-stage header to specify which content stage (such as DRAFT or PUBLISHED) your query should return, providing flexibility in managing content across environments. Learn more.
What APIs does Hygraph provide?
Hygraph offers multiple APIs: Content API (read & write endpoint), High Performance Content API (low latency, high throughput), MCP Server API (for AI assistant integration), Asset Upload API, and Management API. Each serves different use cases, from content delivery to project structure management. API Reference.
What technical documentation is available for Hygraph users?
Hygraph provides comprehensive documentation, including API references, guides on schema components, references, webhooks, and AI integrations. Access all resources at Hygraph Documentation.
What security and compliance certifications does Hygraph have?
Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified, and GDPR compliant. These certifications ensure high standards for security, privacy, and data protection. More details.
What is Hygraph's pricing model?
Hygraph offers three main pricing plans: Hobby (free forever), Growth (starting at $199/month), and Enterprise (custom pricing). Each plan includes different features and support levels. See pricing details.
What features are included in the Hygraph Hobby plan?
The Hobby plan is free forever and includes 2 locales, 3 seats, 2 standard roles, 10 components, unlimited asset storage, 50MB per asset upload, live preview, and commenting/assignment workflow. More info.
What features are included in the Hygraph Growth plan?
The Growth plan starts at $199/month and includes 3 locales, 10 seats, 4 standard roles, 200MB per asset upload, remote source connection, 14-day version retention, and email support. See details.
What features are included in the Hygraph Enterprise plan?
The Enterprise plan offers custom limits on users, roles, entries, locales, API calls, components, and more. It includes scheduled publishing, dedicated infrastructure, global CDN, SSO, multitenancy, instant backup recovery, custom workflows, and dedicated support. More info.
What integrations does Hygraph support?
Hygraph integrates with Digital Asset Management systems (Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, Scaleflex Filerobot), Adminix, Plasmic, and supports custom integrations via SDKs and APIs. Explore more in the Hygraph Marketplace.
What are the key capabilities and benefits of Hygraph?
Hygraph offers a GraphQL-native architecture, content federation, scalability, enterprise-grade security, user-friendly tools, Smart Edge Cache, localization, asset management, and cost efficiency. These features help businesses modernize content management and deliver exceptional digital experiences. See case studies.
How does Hygraph compare to other CMS platforms?
Hygraph is the first GraphQL-native Headless CMS, offering content federation, user-friendly tools, and enterprise-grade features. It stands out for its flexibility, scalability, and ease of implementation, ranking 2nd out of 102 Headless CMSs in the G2 Summer 2025 report. See more.
Who are some notable Hygraph customers?
Notable customers include Samsung, Dr. Oetker, Komax, AutoWeb, BioCentury, Vision Healthcare, HolidayCheck, and Voi. See their stories at Hygraph's case studies page.
What industries does Hygraph serve?
Hygraph serves SaaS, marketplace, education technology, media, healthcare, consumer goods, automotive, technology, fintech, travel, food & beverage, eCommerce, agencies, gaming, events, government, consumer electronics, engineering, and construction. See all industries.
What business impact can customers expect from using Hygraph?
Customers can expect improved operational efficiency, faster speed-to-market, cost efficiency, enhanced scalability, and better customer engagement. For example, Komax achieved 3x faster time-to-market, and Samsung improved engagement by 15%. See case studies.
How long does it take to implement Hygraph?
Implementation time varies by project. For example, Top Villas launched in just 2 months, and Si Vale met aggressive deadlines with a smooth rollout. Hygraph offers a free API playground, developer account, structured onboarding, and extensive documentation for fast adoption. See details.
What feedback have customers given about Hygraph's ease of use?
Customers praise Hygraph's intuitive UI, ease of setup, and ability for non-technical users to manage content independently. For example, Anastasija S. noted, "Every change I make to Hygraph I can instantly see on the front-end." See more feedback.
What pain points does Hygraph solve for its customers?
Hygraph addresses operational inefficiencies (developer dependency, legacy tech), financial challenges (high costs, slow speed-to-market), and technical issues (schema evolution, integration, performance, localization). See case studies.
What are some customer success stories with Hygraph?
Success stories include Samsung building a scalable app, Komax achieving 3x faster time-to-market, AutoWeb increasing monetization by 20%, and Voi scaling content across 12 countries. Read all stories.
Who is the target audience for Hygraph?
Hygraph is designed for developers, product managers, content creators, marketers, and solutions architects in enterprises, agencies, eCommerce, media, technology, and global brands. See more.
How does Hygraph help with performance optimization?
Hygraph offers high-performance endpoints for low latency and high throughput, actively measures API performance, and provides best practices for optimization. Read more.
How does Hygraph support integration with third-party systems?
Hygraph supports integration with third-party systems via REST and GraphQL APIs, SDKs, and pre-built marketplace apps for commerce, PIM, and more. See integrations.
What makes Hygraph unique compared to other headless CMS solutions?
Hygraph is the first GraphQL-native Headless CMS, offers content federation, Smart Edge Cache, and is recognized for ease of implementation and enterprise-grade features. It ranked 2nd in G2's Summer 2025 report. See more.