Skip to content

Blueprints API

Endpoints for working with blueprint definitions (data models) and blueprint analytics. For CRUD operations on blueprint data (entities), see the Blueprint Entities API.

SDK equivalent: sdk.blueprints

List Blueprints

Retrieve all blueprints available to the current user.

GET /api/blueprints

Response

json
[
  {
    "key": "product",
    "name": "Product",
    "description": "Product catalog blueprint",
    "fields": [
      { "key": "name", "type": "string", "required": true },
      { "key": "price", "type": "number", "required": true }
    ]
  }
]

SDK: sdk.blueprints.getList()


Get Blueprint

Retrieve a specific blueprint by its key.

GET /api/blueprints/{key}

Path Parameters

ParameterTypeDescription
keystringThe blueprint identifier

Response

Returns the blueprint object with its full field definitions.

SDK: sdk.blueprints.getBlueprint(key)


Get Chart

Retrieve an ECharts-compatible chart configuration for a blueprint.

GET /api/blueprints/{blueprintKey}/charts/{chartType}

Path Parameters

ParameterTypeDescription
blueprintKeystringThe blueprint identifier
chartTypestringChart type (e.g., line, bar)

Query Parameters

ParameterTypeRequiredDescription
xstringYesThe metadata key to aggregate
$limitnumberNoLimit the number of entities considered
$skipnumberNoSkip entities

Additional filter parameters are supported (same as entity listing).

Response

Returns an ECharts-compatible option object ready for rendering.

SDK: sdk.blueprints.getChart(blueprintKey, chartType, query)


Get Pie Chart

Retrieve a pie chart configuration for a blueprint.

GET /api/blueprints/{blueprintKey}/charts/pie

Path Parameters

ParameterTypeDescription
blueprintKeystringThe blueprint identifier

Query Parameters

ParameterTypeRequiredDescription
xstringYesThe metadata key to aggregate

Additional filter parameters are supported.

Response

Returns an ECharts-compatible pie chart option object.

SDK: sdk.blueprints.getPieChart(blueprintKey, query)


Get Count

Retrieve a count of entities matching the supplied filters.

GET /api/blueprints/{blueprintKey}/charts/count

Path Parameters

ParameterTypeDescription
blueprintKeystringThe blueprint identifier

Query Parameters

Standard filter parameters are supported (same as entity listing).

Response

json
{
  "count": 42
}

SDK: sdk.blueprints.getCount(blueprintKey, query)


Get Sum

Retrieve sum values, optionally grouped by a property.

GET /api/blueprints/{blueprintKey}/charts/sum

Path Parameters

ParameterTypeDescription
blueprintKeystringThe blueprint identifier

Query Parameters

ParameterTypeRequiredDescription
sumstringYesThe numeric property to sum
groupBystringNoThe property to group results by

Additional filter parameters are supported.

Response (with groupBy)

json
{
  "groups": [
    { "group": "North", "sum": 15000 },
    { "group": "South", "sum": 12000 }
  ],
  "sum": 27000
}

Response (without groupBy)

json
{
  "sum": 27000
}

Grouping Behavior

  • String / Number / Boolean: Groups by exact values
  • Date / Datetime: Groups by day of week (0 = Sunday, 6 = Saturday)
  • Time: Groups by hour of day (0–23)

SDK: sdk.blueprints.getSum(blueprintKey, sumProperty, groupByProperty, query)

Build SaaS Products Without Limits.