Skip to main content
GET
/
port-config
Get port configuration
curl --request GET \
  --url http://localhost:5173/api/flowdrop/port-config \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "version": "1.0.0",
    "defaultDataType": "mixed",
    "dataTypes": [
      {
        "id": "string",
        "name": "String",
        "description": "Text data type",
        "color": "#3b82f6",
        "category": "primitive",
        "aliases": [
          "text",
          "str"
        ],
        "enabled": true
      },
      {
        "id": "number",
        "name": "Number",
        "description": "Numeric data type",
        "color": "#10b981",
        "category": "primitive",
        "enabled": true
      },
      {
        "id": "mixed",
        "name": "Mixed",
        "description": "Any data type",
        "color": "#6b7280",
        "category": "special",
        "enabled": true
      }
    ],
    "compatibilityRules": [
      {
        "from": "string",
        "to": "mixed",
        "description": "Strings can connect to mixed ports"
      },
      {
        "from": "number",
        "to": "mixed",
        "description": "Numbers can connect to mixed ports"
      },
      {
        "from": "mixed",
        "to": "string",
        "description": "Mixed can connect to string with conversion"
      }
    ]
  },
  "message": "Port configuration loaded successfully"
}

Authorizations

Authorization
string
header
required

JWT token for authentication

Response

Port configuration retrieved successfully

success
boolean

Whether the request was successful

data
object

Response data (type varies by endpoint)

message
string

Response message

error
string

Error message (if any)