Easily restore your project to a previous version with our new Instant One-click Backup Recovery

Hygraph
Docs

API Access

Navigate to your settings panel and enable access to your API. You can either enable full public access to your API or protect your API with permanent auth tokens.

The default stage for the Public Content API is set to Published. To create the new permissions click the Yes, initialize defaults button in the Content API Permissions section.

Project API PermissionsProject API Permissions

This will set Read permission on all models on stage Published.

Project default API PermissionsProject default API Permissions

Now that the API is public, let's test it. Copy your project's Content API endpoint and paste it in your URL bar for your browser.

Project EndpointProject Endpoint

In the API playground, run the query above once more. This is now publicly accessible on the web!

GraphiQL Public API queryGraphiQL Public API query