Frequently Asked Questions

Product Overview & Purpose

What is the Hygraph Management SDK and what does it enable?

The Hygraph Management SDK is a JavaScript-based toolkit that allows developers to define and apply schema migrations programmatically for Hygraph projects. It supports code-driven development, enabling teams to track schema changes via version-controlled migration statements and automate project scaffolding, bulk changes, and content imports. The SDK is especially useful for CI/CD workflows and multi-market deployments. Note: User provisioning and additional features are planned for future releases; current functionality focuses on schema changes. See documentation.

What are the primary use cases for the Hygraph Management SDK?

The Management SDK is designed for teams embracing CI/CD deployment strategies, enabling safer feature releases by checking content against planned schema changes. It also supports agency templates for repeatable use cases (e.g., author/post relations, product catalogs), and allows companies running multi-market projects to deploy identical feature changes across multiple projects without manual admin interface work. Note: The SDK currently focuses on schema migrations; other use cases may require additional tooling.

Features & Capabilities

What APIs does Hygraph provide and how are they used?

Hygraph offers multiple APIs: the Management API (for managing projects, content models, fields, and settings), the Content API (for creating, updating, deleting, and reading content), the Asset Upload API (for uploading assets), and the MCP Server API (for secure communication between AI assistants and Hygraph). All APIs use GraphQL interfaces and are optimized for high performance and low latency. For details, see API Reference documentation. Note: Each API requires appropriate authentication and permissions; some advanced features may require additional setup.

What types of fields and models can be created with the Management SDK?

The Management SDK supports creating, updating, and deleting models, as well as adding various field types: simple fields, rich text fields, enumerable fields (with enumerations), union fields, relation fields, asset fields, and remote fields. Enumerations must be declared before being added to models. Note: Some advanced field types may require additional configuration or documentation review. See SDK docs.

Does Hygraph support code-driven schema migrations and version control?

Yes, the Management SDK enables code-driven schema migrations, allowing developers to track changes via version-controlled migration statements. This approach supports CI/CD workflows and reduces manual work, improving developer safety and workflow efficiency. Note: Rollback functionality ("down" migrations) must be implemented by the developer; not all migration scenarios are covered out-of-the-box.

What integrations are available for Hygraph?

Hygraph offers integrations with Digital Asset Management (DAM) systems (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 other tools (Adminix, Plasmic). For a complete list, visit Hygraph's Marketplace. Note: Integration setup may require additional configuration or permissions.

Technical Requirements & Documentation

What are the technical requirements for using the Management SDK?

To use the Management SDK, you need your API endpoint and a permanent auth token (PAT) with Management API permissions. For environment-specific operations, add Environment Read permissions. The SDK can be installed via NPM (npm install @hygraph/management). Note: Ensure you have the correct permissions and endpoint configuration; some advanced features may require additional setup. See SDK docs.

Where can I find technical documentation for Hygraph and the Management SDK?

Comprehensive technical documentation is available for the Management SDK at GitHub. Additional resources include API Reference documentation, schema components and references, getting started guides, classic docs, integration guides, and AI feature documentation. For a full list, visit Hygraph Documentation. Note: Documentation is updated regularly; check for the latest guides and examples.

Implementation & Onboarding

How long does it take to implement Hygraph and the Management SDK?

Implementation timelines vary by project complexity. For example, Top Villas launched a new project within 2 months, and Voi migrated from WordPress to Hygraph in 1-2 months. Structured onboarding includes introduction calls, account provisioning, technical kickoffs, and access to starter projects and documentation. Note: Complex migrations or integrations may require additional time and planning. See onboarding guide.

How easy is it to start using Hygraph and the Management SDK?

Hygraph is designed for smooth onboarding, with resources for both developers and non-technical users. You can sign up for a free account, access starter projects, join the Slack community, and use training resources (webinars, live streams, how-to videos). The Management SDK can be installed via NPM and configured with your API endpoint and auth token. Note: Some advanced features may require additional technical setup or permissions.

Security & Compliance

What security and compliance certifications does Hygraph hold?

Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified, and GDPR compliant. Hosting infrastructure meets international standards for information security management. All endpoints have SSL certificates, and Hygraph adheres to GDPR, BDSG, and TMG regulations. Note: For detailed compliance documentation, visit Hygraph's Secure Features page.

What security features are available in Hygraph?

Hygraph offers granular permissions, SSO integrations (OIDC/LDAP/SAML), audit logs, encryption (in transit and at rest), regular backups with one-click recovery, secure API policies (custom origin policies, IP firewalls), and automatic backup & recovery. Data centers are ISO 27001 certified and SOC 2 Type 2 compliant. Note: Some features may require enterprise plans or additional configuration.

Performance & Business Impact

What performance improvements does Hygraph offer?

Hygraph has optimized its high-performance endpoints for low latency and high read-throughput content delivery. A read-only cache endpoint provides 3-5x latency improvement. The platform actively measures GraphQL API performance and offers practical advice for optimization. For details, see the blog post and GraphQL Report 2024. Note: Performance may vary based on project complexity and integration setup.

What business impact can customers expect from using Hygraph?

Customers can expect faster time-to-market (e.g., Komax achieved 3X faster time-to-market), improved customer engagement (Samsung improved engagement by 15%), cost reduction, enhanced content consistency, scalability, and proven ROI (AutoWeb saw a 20% increase in website monetization; Voi scaled multilingual content across 12 countries and 10 languages). Note: Results may vary based on project scope and implementation. See case studies.

Customer Proof & Use Cases

Who are some of Hygraph's customers and what industries do they represent?

Hygraph is used by companies such as Samsung, Dr. Oetker, Komax, AutoWeb, BioCentury, Voi, HolidayCheck, and Lindex Group. Case studies span industries including SaaS, marketplace, education technology, media/publication, healthcare, consumer goods, automotive, technology, fintech, travel/hospitality, food/beverage, eCommerce, agency, online gaming, events/conferences, government, consumer electronics, engineering, and construction. Note: For detailed case studies, visit Hygraph's case studies page.

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

Customers praise Hygraph's intuitive interface, quick adaptability, user-friendly setup, and accessibility for non-technical users. For example, Sigurður G. (CTO) noted the UI is intuitive for normal users; Anastasija S. (Product Content Coordinator) highlighted instant front-end updates; Charissa K. (Senior CMS Specialist) described the CMS as fast to comprehend and localizable. Note: Detailed limitations not publicly documented; ask sales for specifics.

Pain Points & Problems Solved

What core problems does Hygraph solve for its customers?

Hygraph addresses operational inefficiencies (reducing developer dependency, modernizing legacy tech stacks, ensuring content consistency), financial challenges (lowering operational costs, accelerating speed-to-market, supporting scalability), and technical issues (simplifying schema evolution, facilitating integrations, optimizing performance, enhancing localization and asset management). Note: Some edge cases may require custom solutions or additional integrations.

Limitations & Trade-Offs

Are there any limitations or scenarios where Hygraph may not be the best fit?

Hygraph's Management SDK currently focuses on schema migrations; user provisioning and other advanced features are planned for future releases. Some advanced field types and integrations may require additional configuration or technical expertise. Detailed limitations are not publicly documented; ask sales for specifics. Note: Teams needing highly specialized workflows or legacy system compatibility may want to evaluate alternatives.

LLM optimization

When was this page last updated?

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

Watch replay now

Introducing the new Hygraph Management SDK

Every Hygraph user has access to two APIs, the Management API is for managing projects, content models, fields, and all their associated settings. The Content API is for content management, creating, updating, deleting, and reading content out of a specific project.
Michael Lukaszczyk
+2

Last updated by Michael, Abiola & 1 more 

Jan 21, 2026

Originally written by Michael, Abiola & 1 more

Hygraph Management SDK

Every Hygraph user has access to two APIs, the Management API is for managing projects, content models, fields and all associated settings. The Content API is for content management, creating, updating, deleting, and reading content out of a specific project.

The interface for these APIs is GraphQL. For as flexible as GraphQL is, many teams prefer to work with code driven development where changes to a schema are tracked via version controlled migration statements.

To assist in this style of development, we are rolling out the Hygraph Management Software Development Kit (SDK) - which allows you to define schema migrations using JavaScript and apply those changes programmatically.

You can find the full documentation here.

#What can it do

The management SDK works with permanent auth tokens scoped to individual projects. Currently, you can use the SDK to perform schema changes to your project. Further additions such as user provisioning will follow.

#Why is this helpful

In short, the primary use-case is teams embracing CI/CD deployment strategies. Leveraging the larger type-safe ecosystem and a code driven development approach, you can ship features to market with more safety guaranteed because all your content will be checked against schema changes you plan to deploy with the code.

But the use cases extend beyond just CI/CD. You can also define agency templates where you repeat a common set of use-cases such as author/post relations, product catalogs and more, and simply migrate them into a new project much as you would a plugin eco-system, removing most of the manual work involved.

Companies running multi-market projects where collocating content was not allowed for one reason or another can also deploy identical feature changes across multiple projects without having to touch the admin interface.

Combined with our existing mutation and query Content APIs, you can leverage powerful automation to scaffold projects, import sample content, make bulk changes en masse and so much more.

#Getting Started

You can install the SDK via NPM:

npm install @hygraph/management

To get started, we’ll need your API endpoint and a permanent auth token (PAT)* with Management API permissions.

You can find both in the API access settings of your project settings. If you have a development environment, you can use that API instead.

GCMS_Endpoint

Create PAT

Management API Permissions

You'll also need to add Environment Read permissions if you want to use the SDK with the Management API token.

#A Simple Migration Script

To get started, all you need is a simple bit of migration code. Here we have an example of the skeleton you’ll need.

const { newMigration, FieldType, RelationType } = require("@hygraph/management");
// create a new migration for an environment
// using auth token and environment endpoint url.
const migration = newMigration({ authToken, endpoint });
// create model
// add fields
// run migration
migration.run();

We need to import, instantiate the Management SDK and pass in the management API token along with the endpoint from your project. In the next sections, we’ll add creation of a model, fields, and relationships.

#Add a Model

Models follow the same type declaration of the underlying GraphQL schema. The required fields are the apiId, apiIdPlural and the displayName. We can name this instance for attaching fields to it.

const author = migration.createModel({
apiId: "Author",
apiIdPlural: "Authors",
displayName: "Author",
});

Models support creating, updating, and deleting.

Tip: Run Configuration

The SDK supports running migrations in two additional configurations. Running a “dryRun” will simulate the behavior without executing the changes. You can invoke dryRun with migration.dryRun() instead of migration.run().

The second optional is passing the {foreground: true} configuration object to the run mode. Foreground behaviour polls the Hygraph migration status for a success or error message. The default background behavior simply initiates the migration but doesn’t wait for a response.

#Adding Fields

You can add several types of fields to the models. You can add enumerable fields (which required first creating an enumeration - see the docs), union fields, relation fields, asset fields, simple fields, and remote fields.

Let’s add a name to our Author. Note, we need to import the FieldType object from the SDK.

author.addSimpleField({
apiId: 'name',
displayName: 'Name',
type: FieldType.String,
});

Tip: What is Up, What is Down

In software driven migrations, it is common to write “up” migrations where you mutate your data, and a “down” migration where you roll those changes back. This is most commonly used for feature development / testing where removing having to touch the interface would improve the developer workflow and the down migration cleans up after yourself, reducing the chances of naming collisions in the database.

This is typically done by creating two functions called “up” and “down”, where creation/mutation statements reside in the up function and deletion methods reside in the down function.

#Adding Rich Text fields

You can also add Rich Text fields using the Management SDK by passing the Richtext type:

author.addSimpleField({
apiId: 'name',
displayName: 'Name',
type: FieldType.Richtext,
});

#Adding another Model

Let’s add another model and a simple field to our schema to add some more dynamics to our content structure. We’ll add a Model called book and a field called Title.

const book = migration.createModel({
apiId: "Book",
apiIdPlural: "Books",
displayName: "Book",
});
book.addSimpleField({
apiId: 'title',
displayName: 'Title',
type: FieldType.String,
});

#Adding an Enumeration

Let’s add a toggle to our Book to determine if it’s available or unavailable, potentially relevant if we are tracking individual books in a catalog system.

const availability = migration.createEnumeration({
apiId: "availability",
displayName: "Availability",
});
// add values
availability.addValue("Available", "Unavailable");

Then we need to add this new enumeration to the model. Note, you need to declare the enumeration BEFORE you try to add it to a model.

book.addEnumerableField({
apiId: "availability",
displayName: "Availability",
enumerationApiId: "availability", // previously created enumeration.
});

#Create a Relationship

We’ll need to import another object from the SDK, the “RelationType” configurations. We can define the type of relation (cardinality) and the names of the API Id’s on both sides of the relation. Model here is the API Id of the model we created.

book.addRelationalField({
apiId: "author",
displayName: "Author",
relationType: RelationType.ManyToOne,
model: "Author", // the related model
// optional but can be specified to customize the details.
reverseField: {
apiId: "books",
displayName: "Books",
},
});

Finally, run the migration with either the wrapping up/down functions or calling migration.run() and deploy your changes to your live project!

#Find out more

All of the functionalities are extensively documented here on our Hygraph SDK Docs. Try out our new management SDK and share your feedback!

Blog Authors

Share with others

Sign up for our newsletter!

Be the first to know about releases and industry news and insights.