跳转到主要内容
GET
/
base
/
{baseId}
/
erd
cURL
curl --request GET \
  --url http://127.0.0.1:3000/api/base/{baseId}/erd \
  --header 'Authorization: Bearer <token>'
{
  "baseId": "<string>",
  "nodes": [
    {
      "id": "<string>",
      "name": "<string>",
      "fields": [
        {
          "id": "<string>",
          "name": "Tags",
          "type": "singleSelect",
          "isLookup": true,
          "isConditionalLookup": true,
          "isPrimary": true
        }
      ],
      "icon": "<string>",
      "crossBaseId": "<string>",
      "crossBaseName": "<string>"
    }
  ],
  "edges": [
    {
      "source": {
        "tableId": "<string>",
        "tableName": "<string>",
        "fieldId": "<string>",
        "fieldName": "<string>"
      },
      "target": {
        "tableId": "<string>",
        "tableName": "<string>",
        "fieldId": "<string>",
        "fieldName": "<string>"
      },
      "type": "singleLineText",
      "relationship": "oneOne",
      "isOneWay": true
    }
  ]
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

baseId
string
必填

响应

200 - application/json

Returns the erd of a base.

baseId
string
必填
nodes
object[]
必填
edges
object[]
必填
Last modified on December 10, 2025