Saleor is powered by the GraphQL API. GraphQL is a query language that allows clients to talk to an API server. Unlike REST, it gives the client control over how much or how little data they want to request about each object and allows relations within the object graph to be traversed easily.
To learn more about the GraphQL language and its concepts, see the official GraphQL website.
The API endpoint is available at
/graphql/ and requires queries to be submitted using the HTTP
POST method and the
application/json content type.
Using the Saleor GraphQL API allows you to query and modify all of your shop’s data flexibly and efficiently. Our API provides both types of operations:
- Public (related to the customers of your shop)
- Private (related to the administration side)
Here's an example query to fetch the store's name:
"name": "Saleor e-commerce"