GridBase
    Console

    Search the API reference

    Find an endpoint by name or path

    Reference data

    The reference vocabularies: the type and role tables every other response points at.

    GET/ref/node-relationship-kinds
    GET/ref/node-types
    GET/ref/roles
    GET/ref/sensor-types
    How reference data behaves

    All four routes are {meta, items} with meta.class: "reference" — catalogued facts, not readings. Each takes the same limit/offset and carries count and total, so a caller can confirm it has the whole table rather than inferring it.

    Caching

    Every route is the static tier — these tables change when a migration changes them and not otherwise. X-Cache-Status: HIT|MISS with X-Cache-Tier: static. A deploy clears the cache, which is the moment the contents could have moved.

    These are among the most repeated requests in the API: every client that renders a sensor needs the type table.

    as_of

    Present on roles and node-relationship-kinds, which have timestamp columns, and absent on sensor-types and node-types, which do not. The field-presence rule omits what cannot be answered rather than substituting the time of the request — that would read as freshness the server cannot vouch for.

    Node Relationship Kinds

    GET/api/v2/ref/node-relationship-kinds

    The edge vocabulary: kinds of relationship between two nodes.

    Query parameters

    • limitoptionale.g. 1000

      rows per page (default 1000, max 5000)

    • offsetoptionale.g. 0

      rows to skip (default 0)

    Paginated and enveloped like its three siblings. All four /ref routes take the same limit/offset and answer {meta, items}, so one reader handles the whole vocabulary surface.

    Notes

    • Ordered by code, which is the stable identifier to match on. name is for display.
    • direction says whether the edge means the same thing both ways.
    • weighted is a string, not a boolean. It is a string in the column and the values are a vocabulary of their own; retyping a field a client already reads would be the kind of breaking change v2 exists to avoid making.
    • as_of is the newest updated_at among the rows served.
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/ref/node-relationship-kinds" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": {
        "source": "node_relationship_kind",
        "class": "reference",
        "as_of": "2026-06-10T15:46:05.171518Z",
        "count": 18,
        "limit": 1000,
        "offset": 0,
        "total": 18
      },
      "items": [
        {
          "id": "04dbb55a-cb0c-4359-8e0b-c08325ca1f55",
          "code": "adjacent_to",
          "name": "Adjacent To",
          "description": "Boundary neighbor between two nodes; semantics are equivalent in either direction.",
          "direction": "symmetric",
          "weighted": "no",
          "created_at": "2026-06-10T15:46:05.171518Z",
          "updated_at": "2026-06-10T15:46:05.171518Z"
        }
      ]
    }
    Try it in the Explorer

    Node Types

    GET/api/v2/ref/node-types

    The node type vocabulary: kinds of place in the grid topology.

    Query parameters

    • limitoptionale.g. 1000

      rows per page (default 1000, max 5000)

    • offsetoptionale.g. 0

      rows to skip (default 0)

    Notes

    • "System Node" is the type the power-grid routes scope to when they report a market's headline figures, so a market's load comes from its system-level sensor rather than any zone carrying the same sensor type.
    • No as_of: no timestamp column on this table.
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/ref/node-types" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": {
        "source": "node_type",
        "class": "reference",
        "count": 15,
        "limit": 1000,
        "offset": 0,
        "total": 15
      },
      "items": [
        {
          "id": "dbde1ba9-0b5d-4b5c-a004-51a6e8df4bdf",
          "name": "Aggregation Node",
          "description": "A node that represents a group of pricing or settlement nodes, such as load zones or regional pricing areas."
        }
      ]
    }
    Try it in the Explorer

    Roles

    GET/api/v2/ref/roles

    The role vocabulary: permissions a user account can hold.

    Query parameters

    • limitoptionale.g. 1000

      rows per page (default 1000, max 5000)

    • offsetoptionale.g. 0

      rows to skip (default 0)

    These names are what the API checks when a route requires a role, and what GET /api/v2/account/roles reports for the calling account.

    Notes

    • description is null, not absent, when nobody wrote one. The question applies to every role.
    • as_of is the newest created_at among the rows actually served, not the newest in the table — so it stays honest on a page other than the first.
    • id is an integer here, not a uuid. It is a SERIAL column.
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/ref/roles" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": {
        "source": "role",
        "class": "reference",
        "as_of": "2025-11-06T12:39:25.321681Z",
        "count": 3,
        "limit": 1000,
        "offset": 0,
        "total": 3
      },
      "items": [
        {
          "id": 2,
          "name": "admin",
          "description": "Administrator with full access",
          "created_at": "2025-10-30T18:51:54.845200Z"
        },
        {
          "id": 3,
          "name": "contributor",
          "description": "Contribute data and catalogs",
          "created_at": "2025-11-06T12:39:25.321681Z"
        }
      ]
    }
    Try it in the Explorer

    Sensor Types

    GET/api/v2/ref/sensor-types

    The sensor type vocabulary: what a sensor can measure.

    Query parameters

    • limitoptionale.g. 1000

      rows per page (default 1000, max 5000). Refused above the max, not clamped.

    • offsetoptionale.g. 0

      rows to skip (default 0)

    This is the table to resolve on. Every power-grid route matches sensors by sensor_type_id, not by name, because names differ across markets — PJM's load sensor is "Metered Load" where NYISO's is "Load", and the real-time price is called three different things. Matching on name reports present data as absent.

    Notes

    • is_number says whether readings are numeric. A client that charts a series needs to know before it tries.
    • No as_of: the table has no timestamp column, so there is no honest answer and the field is omitted.
    • 26 rows today, so the default limit returns the table whole and total confirms it.

    Errors

    400invalid_paramlimit or offset is not an integer, or offset is negative
    400limit_exceededlimit above 5000, with `requested` and `max` in detail
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/ref/sensor-types" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": {
        "source": "sensor_type",
        "class": "reference",
        "count": 26,
        "limit": 1000,
        "offset": 0,
        "total": 26
      },
      "items": [
        {
          "id": "8e4af271-1c29-449f-a920-81abafdc60f1",
          "name": "Active Events",
          "code": "actev",
          "is_number": true
        }
      ]
    }
    Try it in the Explorer