Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST 'https://app.memorylake.cn/openapi/memorylake/api/v3/db-connections' \ -H 'Authorization: Bearer sk_xxxxxx' \ -H 'Content-Type: application/json' \ -d '{ "name": "Sales warehouse", "description": "Read-only replica of the sales database", "host": "pg.internal.example.com", "port": 5432, "database": "sales", "username": "analytics_ro", "password": "your-database-password", "custom_id": "sales-warehouse" }'
{ "success": true, "data": { "id": "dbconn-7c1e9a4b2d6f4a8e9b3c5d7f1a2b4c6d", "name": "Sales warehouse", "description": "Read-only replica of the sales database", "host": "pg.internal.example.com", "port": 5432, "username": "analytics_ro", "database": "sales", "custom_id": "sales-warehouse", "datasource_count": 0, "created_at": "2026-09-18T07:42:17.139Z", "updated_at": "2026-09-18T07:42:17.139Z" } }
保存访问数据库的方式及其凭据
POST /openapi/memorylake/api/v3/db-connections
dbconn:add
_sys_
by_custom_id=true
Show 连接对象