Graph Nodes

REST endpoints for graph nodes. Bearer-auth required.

GET /api/graph-nodes

List graph nodes.

Query parameters

  • limit (optional): Page size (1–100, default 100).
  • after (optional): Keyset cursor — return the page after this row (next page).
  • before (optional): Keyset cursor — return the page before this row (prev page).
  • ids (optional): Comma-separated list of IDs. Narrows results to these IDs within the caller's accessible scope (does not bypass access checks).
  • filter (optional): Nested filter expression (<Entity>Filter): AND/OR/NOT + per-field comparison operators + relation traversal. JSON-encoded on the query string.
  • orderBy (optional): Multi-key sort (<Entity>OrderBy[]): array of { field: direction } applied in order. Directions: asc/desc plus the four explicit nulls variants. JSON-encoded on the query string.
  • graph_id (optional): Optional graph narrower. Admins see every node when omitted; non-admin callers must scope by graph.
  • node_definition_id (optional): Filter to nodes of this node definition.
  • search (optional): Full-text search over node labels.

Response

JSON
{
  "data": [
    {
      "id": "<...>",
      "graphId": "<...>",
      "nodeDefinitionId": "<...>",
      "properties?": "<...>",
      "label": "<...>",
      "createdAt": "<...>"
    }
  ],
  "pageInfo": {
    "total": "number",
    "hasNextPage": "boolean",
    "hasPreviousPage": "boolean",
    "startCursor": "string",
    "endCursor": "string"
  }
}

POST /api/graph-nodes

Add a graph node

Request body

JSON
{
  "graphId": "string",
  "nodeDefinitionId": "string",
  "label": "string",
  "properties?": "any"
}

Response

JSON
{
  "id": "string",
  "graphId": "string",
  "nodeDefinitionId": "string",
  "properties?": "any",
  "label": "string",
  "createdAt": "string"
}

GET /api/graph-nodes/{id}

Get a graph node by ID.

Path parameters

  • id (required): Node to retrieve.

Response

JSON
{
  "id": "string",
  "graphId": "string",
  "nodeDefinitionId": "string",
  "properties?": "any",
  "label": "string",
  "createdAt": "string"
}

DELETE /api/graph-nodes/{id}

Delete a graph node

Path parameters

  • id (required): Node to delete.

Response

JSON
{
  "success": "boolean"
}