Skip to main content
These endpoints let you discover the domains available to your account and inspect their variables and activities. Only published domains are returned.

List domains

List a domain’s variables

Returns the domain and its variables, each with a default value and data type. Useful for building structured text.
default_value is the value applied when none is provided in a calculation, written as a combined "value unit" string (see Provenance), or an empty string when the variable has no default. data_type is one of number, table, bar_chart, or pie_chart.

List a domain’s activities

Returns a domain’s definition: its activities — each with its equation, state, and the variables it references — and its variables with their stored display configuration. This describes how the domain is configured, in contrast to POST /v1/calculate, which returns computed values with a render-ready display for each. The two carry similar display information in different shapes — see Display configuration vs. display.
Domain — the published domain, with flags for whether a draft and a published version exist: Activities — one entry per activity: Variables — one entry per variable, in definition form:

display_metadata

display_metadata holds the variable’s display configuration under a single key naming its structural type — number (for number, percent, and no_separator), table, bar_chart, or pie_chart:
The inner object carries the same fields as the matching display object in a calculation result — decimal_format for a scalar; start_row_index, columns, and rows for a table; series or slice configuration for a chart. Unlike a calculation result’s display, the definition is not normalized: optional fields may be absent rather than filled with defaults.

Display configuration vs. display

The same variable’s formatting appears in two shapes, and display_type does not mean the same thing in each: The overloaded display_type is the gotcha: in a definition it can be table, but in a result display_type is only ever a scalar format and the structural type lives in data_type.