Skip to main content
POST
/
base
/
{baseId}
/
connection
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/base/{baseId}/connection \
  --header 'Authorization: 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
object | null

Connection created successfully

dsn
object
required
connection
object
required
url
string
required

The URL that can be used to connect to the database

Last modified on December 10, 2025