API Playground

Retrieve your workspace and the brands you can target. This playground calls the live API with your account credentials.

Authentication Required

You need to Login to test the API playground

Workspace & brands

Understand the active brand, and list the brands available in your workspace.

The active brand

Your account belongs to a workspace, and a workspace contains one or more brands. A brand is the catalog that owns entities, attributes, families and categories.

Every API request is scoped to a single brand — your active brand. Unless you say otherwise, all 2026-05 endpoints read and write data for the active brand (the one currently selected on your account).

To operate on a different brand without changing your selection, pass its id as brand_id on the request — as a query parameter on GET requests, or in the JSON body on POST/PUT requests. The value is the brand's _id returned by this endpoint.

Note: Use this endpoint to discover the brand _id values you can pass as brand_id on the other endpoints.

List workspace brands

Endpoint URL
GET https://api.commerceclarity.com/api/2026-05/workspace

Returns your workspace, its brands, and its members. Takes no parameters.

Request Examples

curl -X GET "https://api.commerceclarity.com/api/2026-05/workspace" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Response Example

Success Response
{
  "id": "65a1f77bcf86cd7994390000",
  "name": "My Workspace",
  "brands": [
    {
      "_id": "507f1f77bcf86cd799439010",
      "name": "Acme Store",
      "logo": "https://media.commerceclarity.com/.../logo.png",
      "members_count": 4
    },
    {
      "_id": "507f1f77bcf86cd799439011",
      "name": "Acme Outlet",
      "logo": null,
      "members_count": 2
    }
  ],
  "members": [
    {
      "_id": "65a1f77bcf86cd7994390aaa",
      "name": "Jane",
      "surname": "Doe",
      "email": "jane@example.com",
      "role": "owner",
      "brands": { }
    }
  ]
}
Error Response - Validation
{
  "status": "error",
  "message": "No active workspace found"
}

Response Structure

FieldTypeDescription
idstringWorkspace identifier.
namestringWorkspace name.
brandsarrayBrands in the workspace.
brands[]._idstringBrand identifier — pass this as brand_id on other endpoints to target this brand.
brands[].namestringBrand name.
brands[].logostring|nullBrand logo URL.
brands[].members_countintegerNumber of members with access to the brand.
membersarrayWorkspace members and their roles.

Targeting a specific brand

Take a brand _id from the response and pass it as brand_id on any 2026-05 endpoint to override the active brand for that request:

# Query entities for a specific brand
curl -X POST "https://api.commerceclarity.com/api/2026-05/entities/query" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "brand_id": "507f1f77bcf86cd799439011", "page": 1 }'