跳转到主要内容
POST
/
base
/
{baseId}
/
connection
cURL
curl --request POST \
  --url https://app.teable.ai/api/base/%7BbaseId%7D/connection \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"baseId":"string"}'
{
  "dsn": {
    "driver": "<string>",
    "host": "<string>",
    "port": 123,
    "db": "<string>",
    "user": "<string>",
    "pass": "<string>",
    "params": {}
  },
  "connection": {
    "max": 123,
    "current": 123
  },
  "url": "<string>"
}

授权

Authorization
string
header
必填

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

请求体

application/json
baseId
string
必填

响应

201 - application/json
object | null

Connection created successfully

dsn
object
必填
connection
object
必填
url
string
必填

The URL that can be used to connect to the database

Last modified on March 5, 2026