Data sources
The connections the portal's data comes from — an API described by OpenAPI, an MCP server, a read-only database or a Kobana product from the catalog. The dashboard calls them Connectors. There is no generic create: each kind has its own (openapi create, mcp create, database create, catalog create), and test create tries a connection before saving it. sync queues the sync of every entity the source feeds, schedule sets how often it runs and spec replaces the OpenAPI spec.
| Command | HTTP | Description |
|---|---|---|
data-sources list | GET /v1/data_sources | List data sources |
data-sources get | GET /v1/data_sources/{id} | Get a data source |
data-sources update | PATCH /v1/data_sources/{id} | Update a data source |
data-sources delete | DELETE /v1/data_sources/{id} | Delete a data source |
data-sources authorize | POST /v1/data_sources/{id}/authorize | Authorize an MCP data source |
data-sources schedule | PUT /v1/data_sources/{id}/schedule | Schedule the sync of a data source |
data-sources spec | PUT /v1/data_sources/{id}/spec | Replace the spec of a data source |
data-sources sync | POST /v1/data_sources/{id}/sync | Sync a data source |
data-sources catalog list | GET /v1/data_sources/catalog | List Kobana catalog products |
data-sources catalog create | POST /v1/data_sources/catalog | Connect a Kobana product |
data-sources database create | POST /v1/data_sources/database | Create a database data source |
data-sources logs list | GET /v1/data_sources/{id}/logs | List the request log of a data source |
data-sources logs get | GET /v1/data_sources/{id}/logs/{log_id} | Get a request of a data source |
data-sources mcp create | POST /v1/data_sources/mcp | Create an MCP data source |
data-sources openapi create | POST /v1/data_sources/openapi | Create an OpenAPI data source |
data-sources openapi analyze create | POST /v1/data_sources/openapi/analyze | Analyze an OpenAPI spec |
data-sources operations update | PATCH /v1/data_sources/{id}/operations/{operation_id} | Enable or disable an operation of a data source |
data-sources test create | POST /v1/data_sources/test | Test a connection before saving |
Examples
--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# List data sources
kobana dashboards data-sources list \
--fields "id,name,kind,status,last_synced_at"
# Get a data source
kobana dashboards data-sources get --params '{"id": "DATA_SOURCE_ID"}'
# List Kobana catalog products
kobana dashboards data-sources catalog list
# Connect a Kobana product
kobana dashboards data-sources catalog create \
--json '{"product": "billing", "environment": "production", "token": "TOKEN_DO_PRODUTO"}'
# Create an MCP data source
kobana dashboards data-sources mcp create \
--json '{"name": "CRM", "url": "https://mcp.example.com/mcp", "transport": "http"}'
# Sync a data source
kobana dashboards data-sources sync \
--params '{"id": "DATA_SOURCE_ID"}' \
--dry-run
# Schedule the sync of a data source
kobana dashboards data-sources schedule \
--params '{"id": "DATA_SOURCE_ID"}' \
--json '{"cron": "0 */6 * * *", "timezone": "America/Sao_Paulo"}'
Next steps
- Entities
- Schema introspection — every parameter this resource accepts.