---
updatedAt: 2026-07-31T09:30:10.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/content/llms.txt
---

# GraphQL Commerce API

> 📘 GraphQL Commerce URLs have changed
>
> If you are not already using `https://graphql-commerce.bloomreach.io`, please update your implementation and the related configurations as described in the [GraphQL Commerce URLs](https://documentation.bloomreach.com/content/reference/configure-brx-graphql-service-1) paragraph

## Introduction

GraphQL is getting more attention in modern application development as it tries to fulfil various data requirements with complex state management for distinct front-end clients. GraphQL provides benefits through its declarative model which helps developers create a consistent, predictable API across different clients and platforms.

Bloomreach Content provides an *optional* GraphQL API set of commerce features for developers who want to take advantage of GraphQL technologies.

## Playground

A [GraphQL playground](/content/graphql) is provided for experimentation with the service.

To use the playground, you must specify the `connector` and `br-acct-env` headers in the *HEADERS* tab. The example below specifies the Search [Connector](https://documentation.bloomreach.com/content/reference/discovery-connector-configuration-1) and the Bloomreach [Content public developer environment](https://documentation.bloomreach.com/content/docs/log-in-to-the-developer-environment):

```json
{
  "connector":"brsm",
  "br-acct-env": "developers"
}
```

Then enter your query and click on *Try It!*. You should see the response as in the screenshot below:

![](https://files.readme.io/fd4242e-Screen_Shot_2022-10-19_at_10.41.14_AM.png "Screen Shot 2022-10-19 at 10.41.14 AM.png")

## Architecture Overview

At a very high level, a simplified architectural overview can be depicted as follows:

![](https://files.readme.io/54ac4db-brx-commerce-architecture-C3.drawio.png "brx-commerce-architecture-C3.drawio.png")

A **Single-Page Application** (SPA) may retrieve or update data in the **Commerce Platforms** through the **GraphQL Commerce API**. While it retrieves site content and page definitions from **Bloomreach Content** to render pages and components, the **SPA** may read or update commerce related data from the **GraphQL Commerce API** in commerce related components (e.g, Product Grid, Product Detail, Cart, etc.).

The GraphQL Commerce API is comprised of 4 main components :

* **GraphQL Server**, responsible for the commerce-agnostic GraphQL API and the underlying schema definition.
* **Access Management**, responsible for client authentication and GraphQL requests authorization.
* **Configuration Store**, where every merchant (or tenant) specified their own configurations.
* **Data source** (similar to Data loaders), responsible for interacting with selected commerce platforms.

For further details, see the Further Reading section below.

## Further Reading

* [Access Management in GraphQL Commerce](https://documentation.bloomreach.com/content/reference/access-management-in-graphql-commerce)
* [GraphQL Commerce Schema](https://documentation.bloomreach.com/content/reference/graphql-commerce-schema)
* [GraphQL Examples](https://documentation.bloomreach.com/content/reference/graphql-examples-1)
* [GraphQL Commerce FAQ](https://documentation.bloomreach.com/content/reference/graphql-commerce-faq)
* [GraphQL Commerce Release Notes](https://documentation.bloomreach.com/content/reference/graphql-commerce-release-notes)
* [GraphQL Commerce API Guides](https://documentation.bloomreach.com/content/reference/graphql-commerce-api-guides)
* [Connect Local Reference SPA with GraphQL Commerce](https://documentation.bloomreach.com/content/reference/connect-reference-spa-graphql-commerce)
* [Extend the GraphQL Commerce using Apollo Federation](https://documentation.bloomreach.com/content/reference/extend-graphql-commerce-using-apollo-federation)