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.
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
References
- Documentation https://craftcms.com/docs/5.x/development/graphql.html
- GettingStarted https://craftcms.com/docs/5.x/development/graphql.html#getting-started
- GitHub Source https://github.com/craftcms/cms/tree/main/src/gql