Skip to main content
GET
Get Dataset Schema
Return what a dataset can be grouped by and what it can measure. Query datasets accepts only the dimension and metric keys listed here, so this is the contract to build a query against rather than guessing field names. The same native key can return different dimensions for different organizations: the schema is extended with the custom columns your organization defined on that entity. Fetch it per organization; do not cache one organization’s schema and reuse it for another.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
Dataset key from List Available Datasets — a catalogue key, or elastic:<uuid> for a custom datasetExample: own_workforce_remuneration

Query Parameters

string
Narrow the dataset to a reporting taxonomy. It only affects datasets with framework-specific dimensions — notably emissions — and is a no-op elsewhere.

Response

string
Echo of the dataset key
string
i18n key for native datasets; the user’s literal name for custom ones
string
kpi, activity, master, custom or custom_kpi
array[object]
array[object]
array[string]
Metrics to preselect when nothing is chosen
boolean
true for native KPI and activity datasets: the query’s start/end window is mandatory and drives proration. false for master and custom datasets, where the window is optional or ignored.
string | null
The dimension that seeds the period axis
integer | null
Custom datasets only: incremented on every write, so it works as a cache key. Null for native datasets.
Every dataset with a date column also exposes a synthetic period dimension that is not part of its stored fields. It is how you group by month, quarter or year.

Reading the workforce schemas

own_workforce_remuneration is the one worth knowing in detail. Its time axis is annual — one row per employee per fiscal year — and its wage_gap metric has three traps worth repeating from Query datasets:
  • it is an FTE-weighted mean, not a simple average of salaries;
  • the sign is positive when men earn more, since it is computed as (avg_M − avg_F) / avg_M × 100;
  • it returns null, not 0, for any group that lacks at least one man and one woman. Null is “not computable here”, and it is not summable or averageable across groups — ask the server for subtotals instead of aggregating the numbers yourself.
It also carries fewer dimensions than own_workforce_contracts: organization, country, nationality, gender, job category, age and period, with no contract type, workday type, disability or labour-agreement split.

Example

Successful Response

Common Errors

401 Unauthorized

Cause: the key is invalid, or it does not belong to the organization in x-organization-id — the two are looked up as a pair. A request carrying no credentials at all answers AUTH_REQUIRED instead.

404 Not Found

Cause: unknown key, or a custom dataset belonging to another organization.

List available datasets

Where the key comes from

Query datasets

Run the aggregation