Craft CMS · GraphQL Specification

Craft CMS GraphQL API

Craft CMS includes a built-in, auto-generated GraphQL API available since version 3.3. The schema exposes all content elements — entries, assets, categories, tags, global sets, users, and addresses — as queryable types. Access is controlled via bearer token authentication tied to named schemas configured in the control panel; a public (unauthenticated) schema can optionally be enabled.

Documentation Endpoint View on GitHub CMSContent ManagementGraphQLRESTHeadlessPHPGraphQL

Overview

Craft CMS GraphQL API is a GraphQL API specification published by Craft CMS on the APIs.io network.

Craft CMS includes a built-in, auto-generated GraphQL API available since version 3.3. The schema exposes all content elements — entries, assets, categories, tags, global sets, users, and addresses — as queryable types. Access is controlled via bearer token authentication tied to named schemas configured in the control panel; a public (unauthenticated) schema can optionally be enabled.

The GraphQL endpoint is available at https://yoursite.com/actions/graphql/api. documentation is published at https://craftcms.com/docs/5.x/development/graphql.html.

The specification includes 3 reference links.

Tagged areas include CMS, Content Management, REST, Headless, and PHP.

Endpoint

`https://yoursite.com/actions/graphql/api`

References

Back to Craft CMS · All GraphQL Specs · GitHub