Skip to main content
The Salesbricks GraphQL API offers a robust, introspectable schema, empowering you to effortlessly explore and interact with its extensive capabilities.
The GraphQL API remains fully supported, and existing integrations continue to work.For new integrations we recommend the REST API — it covers the full subscription lifecycle and is where new functionality lands, including the self-serve endpoints for starting a subscription.
Before you begin, ensure you have read the Authentication guide to find your X-SALESBRICKS-KEY and the correct endpoint for your use case.

Setting up an Apollo Client

In this guide, we leverage Apollo Client, extending the example from their documentation here.
JavaScript

Query the schema

Once your client is configured, make queries following the defined schema. Below is an example query to retrieve all orders:

Example Query

JavaScript

Example Response

JSON

REST equivalents

If you are moving an existing integration across, these are the most common mappings: