Skip to content
SoulFire LogoSoulFire

Get node types

GET
/v1/scripts/node-types

Gets all available node types with their metadata. This enables clients to render the node editor without hardcoded knowledge of specific node types. The response includes port definitions, categories, display names, and all other information needed to render and validate nodes. This endpoint is cacheable - node types only change between server versions.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Query Parameters

category?|

Optional filter by category ID (references CategoryDefinition.id). Examples: "triggers", "actions", "math". If empty, returns all node types.

include_deprecated*boolean

Whether to include deprecated node types. Default is false.

Response Body

Response containing all available node types.

application/json
  1. response

Response containing all available node types.

nodeTypes*array<>

List of all node type definitions. Clients can use this to render any node and validate connections.

categories*array<>

List of all categories with their metadata. Useful for building category filters and palette sections in the UI.

portTypeMetadata*array<>

Metadata for each port type including colors and compatibility. Clients should use this instead of hardcoded port type info.

Example Request
curl -X GET 'http://127.0.0.1:38765/v1/scripts/node-types?include_deprecated=true'
Example Response
{
  "nodeTypes": [
    {
      "type": "string",
      "displayName": "string",
      "description": "string",
      "category": "string",
      "isTrigger": true,
      "inputs": [
        {
          "id": "string",
          "displayName": "string",
          "portType": "PORT_TYPE_ANY",
          "required": true,
          "defaultValue": "string",
          "description": "string",
          "elementType": "PORT_TYPE_ANY",
          "multiInput": true,
          "acceptedTypes": [
            "PORT_TYPE_ANY"
          ],
          "inferTypeFrom": "string",
          "typeDescriptor": {
            "simple": "PORT_TYPE_ANY",
            "parameterized": {
              "base": "PORT_TYPE_ANY",
              "params": [
                {}
              ]
            },
            "typeVariable": "string"
          }
        }
      ],
      "outputs": [
        {
          "id": "string",
          "displayName": "string",
          "portType": "PORT_TYPE_ANY",
          "required": true,
          "defaultValue": "string",
          "description": "string",
          "elementType": "PORT_TYPE_ANY",
          "multiInput": true,
          "acceptedTypes": [
            "PORT_TYPE_ANY"
          ],
          "inferTypeFrom": "string",
          "typeDescriptor": {
            "simple": "PORT_TYPE_ANY",
            "parameterized": {
              "base": "PORT_TYPE_ANY",
              "params": [
                {}
              ]
            },
            "typeVariable": "string"
          }
        }
      ],
      "icon": "string",
      "color": "string",
      "keywords": [
        "string"
      ],
      "deprecated": true,
      "deprecationMessage": "string",
      "isLayoutNode": true,
      "supportsMuting": true,
      "supportsPreview": true,
      "isExpensive": true
    }
  ],
  "categories": [
    {
      "id": "string",
      "displayName": "string",
      "icon": "string",
      "description": "string",
      "sortOrder": 0
    }
  ],
  "portTypeMetadata": [
    {
      "portType": "PORT_TYPE_ANY",
      "color": "string",
      "displayName": "string",
      "compatibleFrom": [
        "PORT_TYPE_ANY"
      ],
      "handleShape": "HANDLE_SHAPE_CIRCLE",
      "edgeStyle": "EDGE_STYLE_DEFAULT"
    }
  ]
}

Was this page helpful?