Retrieve your workspace and the brands you can target. This playground calls the live API with your account credentials.
Understand the active brand, and list the brands available in your workspace.
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.
_id values you can pass as brand_id on the other endpoints.
GET https://api.commerceclarity.com/api/2026-05/workspace
Returns your workspace, its brands, and its members. Takes no parameters.
curl -X GET "https://api.commerceclarity.com/api/2026-05/workspace" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"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": { }
}
]
}{
"status": "error",
"message": "No active workspace found"
}| Field | Type | Description |
|---|---|---|
id | string | Workspace identifier. |
name | string | Workspace name. |
brands | array | Brands in the workspace. |
brands[]._id | string | Brand identifier — pass this as brand_id on other endpoints to target this brand. |
brands[].name | string | Brand name. |
brands[].logo | string|null | Brand logo URL. |
brands[].members_count | integer | Number of members with access to the brand. |
members | array | Workspace members and their roles. |
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 }'