POST
/
base
/
{baseId}
/
connection
curl --request POST \
  --url https://app.teable.io/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>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
baseId
string
required

Response

201 - application/json
Connection created successfully
dsn
object
required
connection
object
required
url
string
required

The URL that can be used to connect to the database