# Dashboard Mágico — Documentação > Documentação do Dashboard Mágico: workspaces, construtor de portais, conectores, entidades, usuários do portal, API, MCP e webhooks. ## en Documentation for Magic Dashboard, Kobana's platform for building portals with your customers' data. - [Magic Dashboard — Documentation](https://docs.dashboards.kobana.com.br/en/index.md): Documentation for Magic Dashboard, Kobana's platform for building portals with your customers' data. ### search - [Search the documentation](https://docs.dashboards.kobana.com.br/en/search.md) ### api - [API reference](https://docs.dashboards.kobana.com.br/en/api.md) #### overview - [Authentication](https://docs.dashboards.kobana.com.br/en/api/overview/authentication.md): The Magic Dashboard API uses a Kobana Account access token to authenticate every request. - [Changelog](https://docs.dashboards.kobana.com.br/en/api/overview/changelog.md): Changes to the contract of the API v1 and of the MCP server, newest first. An additive change breaks no integration; a deprecation announces a path that keeps answering for one release cycle and then goes away. - [Data Retention](https://docs.dashboards.kobana.com.br/en/api/overview/data-retention.md): This page describes how long each type of data is kept in Magic Dashboard. - [Endpoints](https://docs.dashboards.kobana.com.br/en/api/overview/endpoints.md): Magic Dashboard has a single environment, production — there is no sandbox. - [Idempotency](https://docs.dashboards.kobana.com.br/en/api/overview/idempotency.md): The API supports idempotency so requests can be safely retried without executing the same operation twice. Useful when a call is interrupted in transit and you don't get a response — for example, a request to invite a portal user that drops on a network error can be retried with the same key, guaranteeing that only one user is created and only one invitation is sent. - [Introduction](https://docs.dashboards.kobana.com.br/en/api/overview/introduction.md): If you are a dev, have fun! ✨ - [OpenAPI](https://docs.dashboards.kobana.com.br/en/api/overview/openapi.md): We publicly maintain the Magic Dashboard API specification files in an open format so you can download them and use them in the tool of your choice. - [Listing and Pagination](https://docs.dashboards.kobana.com.br/en/api/overview/pagination.md): Every GET endpoint that returns a collection (/v1/portalusers, /v1/dashboardusers, /v1/team_roles, etc.) uses page-number pagination. - [Postman](https://docs.dashboards.kobana.com.br/en/api/overview/postman.md): If you prefer testing the API with Postman, open the collection straight from Kobana's public workspace, or download it in your language and import it into Postman. - [Rate Limit](https://docs.dashboards.kobana.com.br/en/api/overview/rate-limit.md): When a client exceeds the limit associated with it, subsequent requests are blocked. - [User-Agent](https://docs.dashboards.kobana.com.br/en/api/overview/user-agent.md): You can include the User-Agent header with your application's name and a valid email address, so that we can contact you in case: - [Webhooks](https://docs.dashboards.kobana.com.br/en/api/overview/webhooks.md): Webhooks are HTTP notifications sent by the Magic Dashboard API whenever a relevant event happens in your Organization — an API token created, deactivated, rotated or revoked, and so on. ### cli #### overview - [Authentication](https://docs.dashboards.kobana.com.br/en/cli/overview/authentication.md): KOBANA_TOKEN holds one product's credential at a time. A Magic Dashboard token does not authenticate against any other Kobana product, and vice versa. kobana auth login belongs to the Banking Gateway and does not issue Magic Dashboard tokens. - [Environment variables](https://docs.dashboards.kobana.com.br/en/cli/overview/environment-variables.md): Every variable can also be set in a .env file (loaded via dotenvy). - [Exit codes](https://docs.dashboards.kobana.com.br/en/cli/overview/exit-codes.md): Every kobana invocation exits with one of these codes, so a script can branch on failure class without parsing the JSON error body. - [Installation](https://docs.dashboards.kobana.com.br/en/cli/overview/installation.md): Homebrew (macOS and Linux) - [Introduction](https://docs.dashboards.kobana.com.br/en/cli/overview/introduction.md): kobana is a single command-line tool for every Kobana product's API — Magic Dashboard included. It is built and maintained in its own repository (kobana-cli), not by this product, and it does not hardcode endpoints: at startup it parses the OpenAPI 3.1 specs embedded in the binary and builds its command tree from them. Updating the API surface is a matter of refreshing the embedded spec and shipping a new build — no per-endpoint code. #### resources - [AI usage](https://docs.dashboards.kobana.com.br/en/cli/resources/ai-usage.md): The organization's AI usage — builder and portal chat —: month to date, courtesy allowance, credit balance and daily consumption. - [API keys](https://docs.dashboards.kobana.com.br/en/cli/resources/api-keys.md): The organization's API keys. revoke revokes a key for good (only a revoked key can be removed with delete), and rotate issues a successor and keeps the previous one working for a few days — the new secret shows up once, in the response. - [Asset types](https://docs.dashboards.kobana.com.br/en/cli/resources/asset-types.md): The categories you organize the file library with (contract, bank slip, invoice...). An asset points at its type through type_id. - [Assets](https://docs.dashboards.kobana.com.br/en/cli/resources/assets.md): The workspace's file library — images, PDFs and documents the portal shows, public or restricted to a tenant. download returns the content; presign issues an upload URL straight to storage for files above the 2 MB request-body limit. - [Audit logs](https://docs.dashboards.kobana.com.br/en/cli/resources/audit-logs.md): The record of who did what in the workspace, with the values before and after each change. summary get sums up the activity of the last hours: total, most frequent actions and latest records. - [Backups](https://docs.dashboards.kobana.com.br/en/cli/resources/backups.md): ZIP backups of the organization, with every workspace. download fetches the file; restore restores a backup into the calling workspace — it is destructive and asynchronous — and cancel stops a restore in progress. - [Portal builder](https://docs.dashboards.kobana.com.br/en/cli/resources/builder.md): The workspace's portal builder: the draft, the published versions and the theme. get returns the full state (including the revision that guards saving), draft update replaces the whole draft and publish puts it live as a new version. The tools commands edit the draft piece by piece — a page, a block, a field — and are the same ones the builder's AI chat uses. - [Checklists](https://docs.dashboards.kobana.com.br/en/cli/resources/checklists.md): The published portal's Task list blocks. Tasks are written in the builder; progress belongs to each tenant and is what progress get / progress update / progress delete read and change. The progress file commands handle the file a tenant uploads for a Request task. - [Comments](https://docs.dashboards.kobana.com.br/en/cli/resources/comments.md): The messages of the portal's Comments block, exchanged between the tenant and your team. An internal comment is visible only in the dashboard. - [Members](https://docs.dashboards.kobana.com.br/en/cli/resources/dashboard-users.md): The people on your team who use the dashboard (the dashboard users). create sends the invitation and resend sends it again; update creates or updates a member by e-mail or id. workspaces get / workspaces update read and set the workspaces the member can access. - [Data purge](https://docs.dashboards.kobana.com.br/en/cli/resources/data-purges.md): The permanent purge of the organization's data across every workspace. list counts what can be deleted, delete deletes it — it is irreversible and only accepts machine tokens with the delete level; a person purges from the dashboard — and get tracks the job. - [Data sources](https://docs.dashboards.kobana.com.br/en/cli/resources/data-sources.md): 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. create makes an OpenAPI, MCP or database source, according to the kind in the body (catalog create connects a Kobana product), and test 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. - [Email layouts](https://docs.dashboards.kobana.com.br/en/cli/resources/email-layouts.md): The HTML frame (header, footer, styles) e-mail templates are placed into. init-defaults makes sure a default layout exists, without overwriting any. - [Email templates](https://docs.dashboards.kobana.com.br/en/cli/resources/email-templates.md): The content of each e-mail the platform sends (portal invitation, API key expiring...). duplicate copies a template as a draft, init-defaults restores the default templates (overwriting yours), and preview get / preview create render a template without sending anything. - [Entities](https://docs.dashboards.kobana.com.br/en/cli/resources/entities.md): The record sets the portal's blocks read — each entity comes from an operation of a data source, a SQL query, a relation (join) between two others, or records you send. records get queries the synced records, records create and records import feed an entity with no connector, aggregate computes what KPIs and charts show, and sync / tenant-syncs trigger and track the sync. - [Events](https://docs.dashboards.kobana.com.br/en/cli/resources/events.md): The record of the workspace's events — the same ones webhooks deliver — filterable by type, resource and period. - [Exports](https://docs.dashboards.kobana.com.br/en/cli/resources/exports.md): Asynchronous exports of workspace data (portal users, for now) as CSV, XLSX or JSON. create requests the export, get tracks its status and download fetches the file once it is ready. - [Imports](https://docs.dashboards.kobana.com.br/en/cli/resources/imports.md): Asynchronous CSV imports into the workspace (portal users, for now). The file goes base64-encoded in the body; get returns the progress and the row-by-row errors. - [Maintenance](https://docs.dashboards.kobana.com.br/en/cli/resources/maintenance.md): One-off maintenance routines. uppercase-names create upper-cases the name of every contact linked to a portal user in the workspace — with no way back, because the previous spelling is not kept. - [Token identity](https://docs.dashboards.kobana.com.br/en/cli/resources/me.md): Who is behind KOBANA_TOKEN: the person (or null, for a machine token), the organization, the scopes and the expiry. It is the quickest way to check that the credential is right. - [Notifications](https://docs.dashboards.kobana.com.br/en/cli/resources/notifications.md): The notifications the platform sends by e-mail (or in-app and by webhook), with each one's status. send sends a scheduled notification now or sends it again; stats get returns counts and delivery and read rates. - [Organization](https://docs.dashboards.kobana.com.br/en/cli/resources/organization.md): The organization the token belongs to — there is no id to pass; it comes from the token itself. - [Resources](https://docs.dashboards.kobana.com.br/en/cli/resources/overview.md): Every dashboards resource below is generated from the same OpenAPI spec documented in the API Reference — the CLI calls exactly the same endpoints, so filtering, validation and permissions are identical. Fall back on schema introspection whenever a command's exact parameters are not obvious from the examples on these pages. - [Permissions](https://docs.dashboards.kobana.com.br/en/cli/resources/permissions.md): The catalog of permissions a role can grant, grouped by area. It is read-only: use its keys in team-roles create. - [Custom domains](https://docs.dashboards.kobana.com.br/en/cli/resources/portal-custom-domains.md): Your company's own domains (such as portal.yourcompany.com) pointed at the workspace's portal. dns-status checks the required CNAMEs without changing anything; verify checks DNS and provisions the domain (certificate and CDN) once it is ready. - [OIDC providers](https://docs.dashboards.kobana.com.br/en/cli/resources/portal-oauth-providers.md): OpenID Connect providers portal users sign in with ("Sign in with..."). test fetches the issuer's discovery document to validate the URL before the provider is saved. - [Portal settings](https://docs.dashboards.kobana.com.br/en/cli/resources/portal-settings.md): The settings of the workspace's portal: name, colors, sign-in, SSO, notifications and security headers. domain update sets the portal's address on the platform (and domain check-slug get says whether it is free), logo create / logo delete change the logo and favicon, and verify-sender verifies the e-mail sender in AWS SES. - [Portal user mapping](https://docs.dashboards.kobana.com.br/en/cli/resources/portal-user-mappings.md): The entity that feeds the portal users: each of its records becomes a user, by e-mail, with the tenant taken from a field. update replaces the mapping and syncs right away; delete stops syncing but keeps the users already created. - [Portal users](https://docs.dashboards.kobana.com.br/en/cli/resources/portal-users.md): The people who sign in to the portal on behalf of a tenant (the tenant_id). create invites a user (invite is the same route under a verb name), resend sends the invitation or verification again, email-preview shows the e-mail without sending it, and activity get / activity timeline list return sign-ins and visited pages. - [Rate limits](https://docs.dashboards.kobana.com.br/en/cli/resources/rate-limits.md): The rate limits that apply to the organization, and whether it has its own configuration instead of the defaults. - [Settings](https://docs.dashboards.kobana.com.br/en/cli/resources/settings.md): The organization's general settings: name, support e-mail, time zone and the record rules (allow creating customers and portal users, editing e-mails and documents, upper-case names). - [Roles](https://docs.dashboards.kobana.com.br/en/cli/resources/team-roles.md): The team roles and the permissions each one grants members. update creates or updates a role by slug or id; the available permissions come from permissions list. - [Usage](https://docs.dashboards.kobana.com.br/en/cli/resources/usage.md): The organization's platform usage in the period — the metrics of the dashboard's Usage screen. - [Webhook deliveries](https://docs.dashboards.kobana.com.br/en/cli/resources/webhook-deliveries.md): The delivery log of every webhook endpoint in the workspace, with request, response and attempts. To retry a delivery, use webhooks deliveries retry. - [Webhooks](https://docs.dashboards.kobana.com.br/en/cli/resources/webhooks.md): Endpoints that receive the workspace's events, signed. test sends a test.webhook event right away, rotate-secret replaces the signing secret, and deliveries get / deliveries retry list and retry an endpoint's deliveries. - [Workspaces](https://docs.dashboards.kobana.com.br/en/cli/resources/workspaces.md): The organization's workspaces — each with its own portal, connectors, entities and portal users. A workspace's id or public_id is what goes in the X-Workspace-Id header (see Authentication). export downloads a workspace's configuration as JSON, import restores it into a new workspace and usage counts what deleting it would hide. #### usage - [Global flags](https://docs.dashboards.kobana.com.br/en/cli/usage/global-flags.md): | Flag | Description | - [Helpers](https://docs.dashboards.kobana.com.br/en/cli/usage/helpers.md): Helpers are commands prefixed with + that provide multi-step workflows the dynamic commands alone cannot: simplified interfaces, batch operations, or calls composed across multiple endpoints. They do not wrap a single API call already available through the dynamic commands — every helper flag controls orchestration logic, not a reshaped version of --params/--json. - [Usage](https://docs.dashboards.kobana.com.br/en/cli/usage/overview.md): Syntax - [Schema introspection](https://docs.dashboards.kobana.com.br/en/cli/usage/schema.md): Returns parameters, headers (header_params, where X-Workspace-Id shows up), required fields, types and responses — all derived from the embedded OpenAPI spec, so it is always in sync with what a command actually accepts. The path has the same shape as the command, with dots instead of spaces: ... ### conceitos - [Concepts](https://docs.dashboards.kobana.com.br/en/conceitos.md) #### do-dado-ao-portal The path a piece of data takes: connector, entity, block and published page. - [From data to the portal](https://docs.dashboards.kobana.com.br/en/conceitos/do-dado-ao-portal.md): The path a piece of data takes: connector, entity, block and published page. #### organizacao-e-workspaces How your account is organized in Magic Dashboard — the organization, the workspaces and each one's portal. - [Organization and workspaces](https://docs.dashboards.kobana.com.br/en/conceitos/organizacao-e-workspaces.md): How your account is organized in Magic Dashboard — the organization, the workspaces and each one's portal. #### titular-e-tenant-id How the portal decides which records each user sees. - [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/conceitos/titular-e-tenant-id.md): How the portal decides which records each user sees. ### dados - [Data](https://docs.dashboards.kobana.com.br/en/dados.md) #### arquivos Images and documents used in the portal pages. - [Files](https://docs.dashboards.kobana.com.br/en/dados/arquivos.md): Images and documents used in the portal pages. #### conectores Connect the sources the portal data comes from: APIs, MCP servers and databases. - [Connectors](https://docs.dashboards.kobana.com.br/en/dados/conectores.md): Connect the sources the portal data comes from: APIs, MCP servers and databases. - [API (OpenAPI)](https://docs.dashboards.kobana.com.br/en/dados/conectores/api-openapi.md): Connect a REST API described by an OpenAPI/Swagger file. - [Database](https://docs.dashboards.kobana.com.br/en/dados/conectores/banco-de-dados.md): Read data straight from PostgreSQL, MySQL/MariaDB, SQL Server or MongoDB. - [Catalog](https://docs.dashboards.kobana.com.br/en/dados/conectores/catalogo.md): Connect a Kobana product or a service already set up — HubSpot, Asaas, Notion, Conta Azul… — by entering only the credential. - [MCP server](https://docs.dashboards.kobana.com.br/en/dados/conectores/mcp.md): Connect an MCP server and use its tools as a data source. - [Sync](https://docs.dashboards.kobana.com.br/en/dados/conectores/sincronizacao.md): When and how connectors fetch the data, and how to follow each run. #### entidades The business objects the portal shows — invoices, contracts, payment slips… - [Entities](https://docs.dashboards.kobana.com.br/en/dados/entidades.md): The business objects the portal shows — invoices, contracts, payment slips… - [Fields](https://docs.dashboards.kobana.com.br/en/dados/entidades/campos.md): Types, roles and calculated fields of an entity. - [SQL queries](https://docs.dashboards.kobana.com.br/en/dados/entidades/consultas-sql.md): Use an SQL query on a database connector as the source of an entity. - [Records](https://docs.dashboards.kobana.com.br/en/dados/entidades/registros.md): Look up the synced records of an entity. - [Entities without a connector](https://docs.dashboards.kobana.com.br/en/dados/entidades/sem-conector.md): Entities whose records you send by CSV, API or MCP, without connecting a data source. - [Entity sync](https://docs.dashboards.kobana.com.br/en/dados/entidades/sincronizacao.md): Scheduled, manual or on access: when an entity's records are updated. ### docs-mcp Connect an AI assistant to this documentation to search and read its pages without copying and pasting. - [Docs MCP](https://docs.dashboards.kobana.com.br/en/docs-mcp.md): Connect an AI assistant to this documentation to search and read its pages without copying and pasting. ### getting-started From the first connector to the first customer in the portal. - [Getting started](https://docs.dashboards.kobana.com.br/en/getting-started.md): From the first connector to the first customer in the portal. ### inteligencia-artificial - [Artificial intelligence](https://docs.dashboards.kobana.com.br/en/inteligencia-artificial.md) #### faturamento Who pays for AI usage, the subscription allowance, the excess, the prepaid credits and what usage cost. - [AI billing](https://docs.dashboards.kobana.com.br/en/inteligencia-artificial/faturamento.md): Who pays for AI usage, the subscription allowance, the excess, the prepaid credits and what usage cost. #### uso How much the Builder's AI assistant was used in the workspace and what it cost, day by day. - [AI usage](https://docs.dashboards.kobana.com.br/en/inteligencia-artificial/uso.md): How much the Builder's AI assistant was used in the workspace and what it cost, day by day. ### mcp #### overview - [Authentication](https://docs.dashboards.kobana.com.br/en/mcp/overview/authentication.md): The MCP server accepts a Bearer token in the Authorization header, and nothing else — no cookie, no client certificate. - [Clients](https://docs.dashboards.kobana.com.br/en/mcp/overview/clients.md): Any client that speaks Streamable HTTP MCP and can run the MCP OAuth 2.1 flow can connect. You only provide the URL; the client discovers where to authenticate on its own, opens the Kobana sign-in in the browser and keeps the token — see Authentication. - [Endpoints](https://docs.dashboards.kobana.com.br/en/mcp/overview/endpoints.md): MCP server - [Errors](https://docs.dashboards.kobana.com.br/en/mcp/overview/errors.md): Failures arrive on two different channels, and the difference matters: one is a broken request, the other is something the model is meant to read and react to. - [Idempotency](https://docs.dashboards.kobana.com.br/en/mcp/overview/idempotency.md): The tools that create a resource accept an optional idempotency_key argument. It is sent to the endpoint as the X-Idempotency-Key header the REST API already honors. - [Introduction](https://docs.dashboards.kobana.com.br/en/mcp/overview/introduction.md): The Magic Dashboard MCP server is a remote Model Context Protocol server that exposes the operations of the public API — organization, portal users and team — as tools an AI client can call. You connect it by URL; there is nothing to install. - [Listing, Sorting and Fields](https://docs.dashboards.kobana.com.br/en/mcp/overview/pagination.md): The _list tools use the same pagination as the REST API: by page number*. - [Rate Limiting](https://docs.dashboards.kobana.com.br/en/mcp/overview/rate-limit.md): The MCP server shares the same limits as the REST API, counted per person and organization — the token's sub and org, not the token itself. - [Resources and prompts](https://docs.dashboards.kobana.com.br/en/mcp/overview/resources-and-prompts.md): Besides tools, the server offers three things the client uses on its own: resources (documents the user attaches to the conversation), prompts (ready-made scripts the user picks) and completions (autocomplete for the arguments of both). In the 2026-07-28 era, it also asks for confirmation before running a destructive tool. - [Transport](https://docs.dashboards.kobana.com.br/en/mcp/overview/transport.md): Streamable HTTP, stateless. One JSON-RPC 2.0 message per POST, one JSON response. There is no Mcp-Session-Id, no resumability and no server→client stream: the application runs several replicas, and every long operation already answers immediately and finishes in a background worker rather than on the MCP channel. #### tools - [Access](https://docs.dashboards.kobana.com.br/en/mcp/tools/access.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} - [Sources and entities](https://docs.dashboards.kobana.com.br/en/mcp/tools/data.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} - [Templates and notifications](https://docs.dashboards.kobana.com.br/en/mcp/tools/messaging.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} - [Operations](https://docs.dashboards.kobana.com.br/en/mcp/tools/operations.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} - [Organization and schemas](https://docs.dashboards.kobana.com.br/en/mcp/tools/organization.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} - [Tools](https://docs.dashboards.kobana.com.br/en/mcp/tools/overview.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} - [Portal](https://docs.dashboards.kobana.com.br/en/mcp/tools/portal.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} - [Webhooks, events and audit](https://docs.dashboards.kobana.com.br/en/mcp/tools/webhooks.md): {/ Generated from the tool registry. The names, permissions and endpoints below are the ones tools/list returns. /} ### portal - [Portal](https://docs.dashboards.kobana.com.br/en/portal.md) #### acesso The portal address, sign-in methods, custom domain, SSO and OIDC providers. - [Access](https://docs.dashboards.kobana.com.br/en/portal/acesso.md): The portal address, sign-in methods, custom domain, SSO and OIDC providers. #### avancado Portal language, security headers and custom JavaScript code. - [Advanced](https://docs.dashboards.kobana.com.br/en/portal/avancado.md): Portal language, security headers and custom JavaScript code. #### chat Support chat widget on the portal. - [Chat](https://docs.dashboards.kobana.com.br/en/portal/chat.md): Support chat widget on the portal. #### construtor Build the portal pages with blocks, entity data and AI help. - [Builder](https://docs.dashboards.kobana.com.br/en/portal/construtor.md): Build the portal pages with blocks, entity data and AI help. - [Blocks](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos.md): The available blocks and what each one is for. - [Action button](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/acoes/botao-de-acao.md): A button that opens a portal page or a link, or triggers a webhook. - [Comments](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/acoes/comentarios.md): A conversation between the customer and your team, inside the portal. - [Form](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/acoes/formulario.md): Fields the customer fills in that reach you by e-mail, in a webhook or as a record of an entity. - [Task list](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/acoes/lista-de-tarefas.md): Checklists in the portal: stages with tasks the customer completes, with links, files and videos. - [Notice](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/aviso.md): A highlighted message: information, success, warning or error. - [Carousel](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/carrossel.md): Banners that pass one at a time, with arrows and dots. - [Signed-in user](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/cliente-logado.md): A greeting with the signed-in user's name and their initials in a circle (optional). - [Code](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/codigo.md): Source code with syntax highlighting, line numbers and a copy button. - [Contact](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/contato.md): A person for the customer to talk to, with e-mail, WhatsApp and a calendar. - [Empty state](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/estado-vazio.md): A “nothing here yet” panel, with an icon, text and a button. - [Image](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/imagem.md): An image in a fixed ratio, with an optional caption and link. - [List](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/lista.md): Items with a title, description and optional link. - [FAQ](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/perguntas-frequentes.md): Questions that expand to show the answer. - [Badge](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/selo.md): A short highlighted label: new, coming soon, beta. - [Text](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/texto.md): A paragraph of free text. - [Page title](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/conteudo/titulo-da-pagina.md): The title and subtitle at the top of a portal page. - [User files](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/arquivos-do-usuario.md): Each customer's files — contracts, reports, inspection reports — on a portal page. - [Calendar](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/calendario.md): The month with the due dates marked; the chosen day lists what falls due on it. - [Cards](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/cards.md): Records in cards, with title, value, status, due date and buttons. - [Detail](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/detalhe.md): The sheet of one record, with the fields you choose — the base of detail pages. - [Documents](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/documentos.md): One file to download per record of the entity — invoices, bills, reports. - [Chart](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/grafico.md): Columns, bars, lines or pie with the records grouped by a field, with one or more series. - [KPIs](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/kpis.md): Up to four indicators side by side — count, sum of the amount or next due date — that filter the page. - [Timeline](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/linha-do-tempo.md): The events of the customer's account in chronological order, newest first. - [Progress](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/progresso.md): A progress bar: a fixed percentage or the share of the records with a status. - [Table](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/dados/tabela.md): The records of an entity in rows, with search, sorting, pagination and a link to the detail. - [Embed](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/incorporar.md): Videos, calendars, forms, presentations, maps and PDFs from other sites inside the page. - [Tabs](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/layout/abas.md): Tabs that filter the page's blocks, such as A pagar, Pagas and Todas. - [Header](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/layout/cabecalho.md): The portal's top bar: brand, page menu and the signed-in customer. - [Columns](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/layout/colunas.md): Blocks side by side, in two or three columns. - [Divider](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/layout/divisor.md): A line between sections of the page, with an optional label. - [Footer](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/layout/rodape.md): The bottom of the portal: link columns and the rights line. - [Sidebar](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/layout/sidebar.md): A side bar with the brand, the menu and the signed-in customer, instead of or next to the header. - [Breadcrumb](https://docs.dashboards.kobana.com.br/en/portal/construtor/blocos/layout/trilha-de-navegacao.md): A way back above the page: Home › current page. - [AI chat](https://docs.dashboards.kobana.com.br/en/portal/construtor/chat-com-ia.md): Ask the Builder assistant for pages and changes. - [Data in blocks](https://docs.dashboards.kobana.com.br/en/portal/construtor/dados-nos-blocos.md): Connect blocks to entities: tables, indicators, tabs, filters and detail pages. - [Forms and actions](https://docs.dashboards.kobana.com.br/en/portal/construtor/formularios-e-acoes.md): Forms that send e-mail, call webhooks or save records, and buttons that open links or call webhooks. - [Pages](https://docs.dashboards.kobana.com.br/en/portal/construtor/paginas.md): Create, order and configure the portal pages. - [Publishing and versions](https://docs.dashboards.kobana.com.br/en/portal/construtor/publicar-e-versoes.md): Publish the draft, see the history and go back to a previous version. - [Portal look](https://docs.dashboards.kobana.com.br/en/portal/construtor/visual.md): The portal colors in light and dark modes. #### marca Company name, title, logos and favicon of the portal. - [Brand](https://docs.dashboards.kobana.com.br/en/portal/marca.md): Company name, title, logos and favicon of the portal. #### seo Indexing, robots.txt, sitemap, Google verification and the portal's canonical URL. - [SEO](https://docs.dashboards.kobana.com.br/en/portal/seo.md): Indexing, robots.txt, sitemap, Google verification and the portal's canonical URL. #### tracking Google Analytics, Tag Manager, ad pixels and other measurement tools on the portal. - [Tracking](https://docs.dashboards.kobana.com.br/en/portal/tracking.md): Google Analytics, Tag Manager, ad pixels and other measurement tools on the portal. #### usuarios The people who sign in to the workspace portal: invitations, tenant ID, status and support. - [Portal users](https://docs.dashboards.kobana.com.br/en/portal/usuarios.md): The people who sign in to the workspace portal: invitations, tenant ID, status and support. - [User activity](https://docs.dashboards.kobana.com.br/en/portal/usuarios/atividade.md): How many times the user signed in to the portal, the pages they open the most and the timeline. - [Export users](https://docs.dashboards.kobana.com.br/en/portal/usuarios/exportar.md): Download all the workspace's portal users in a CSV file. - [Import users](https://docs.dashboards.kobana.com.br/en/portal/usuarios/importar.md): Create or update portal users from a CSV file. #### visual The portal colors in light and dark modes. - [Visual](https://docs.dashboards.kobana.com.br/en/portal/visual.md): The portal colors in light and dark modes. ### portal-do-cliente - [Customer portal](https://docs.dashboards.kobana.com.br/en/portal-do-cliente.md) #### entrar How portal users sign in: email and password, magic link, Google/Microsoft, SSO and invitation. - [Signing in to the portal](https://docs.dashboards.kobana.com.br/en/portal-do-cliente/entrar.md): How portal users sign in: email and password, magic link, Google/Microsoft, SSO and invitation. #### navegar What the user finds after signing in: menu, pages, tables, documents, forms and theme. - [Using the portal](https://docs.dashboards.kobana.com.br/en/portal-do-cliente/navegar.md): What the user finds after signing in: menu, pages, tables, documents, forms and theme. ### sdk Official libraries for calling the Magic Dashboard API from Node.js / TypeScript, Python, Ruby and PHP. - [Magic Dashboard SDKs](https://docs.dashboards.kobana.com.br/en/sdk.md): Official libraries for calling the Magic Dashboard API from Node.js / TypeScript, Python, Ruby and PHP. ### sistema - [System](https://docs.dashboards.kobana.com.br/en/sistema.md) #### api-e-webhooks Integrate your systems with Magic Dashboard through the API and receive events by webhook. - [API and webhooks](https://docs.dashboards.kobana.com.br/en/sistema/api-e-webhooks.md): Integrate your systems with Magic Dashboard through the API and receive events by webhook. - [Deliveries](https://docs.dashboards.kobana.com.br/en/sistema/api-e-webhooks/entregas.md): The record of each webhook delivery, with status, response and resend. - [Webhook events](https://docs.dashboards.kobana.com.br/en/sistema/api-e-webhooks/eventos-de-webhook.md): The payload format and the events an endpoint can receive. - [Rate limiting](https://docs.dashboards.kobana.com.br/en/sistema/api-e-webhooks/rate-limiting.md): The API request limits and what to do when they are exceeded. - [API tokens](https://docs.dashboards.kobana.com.br/en/sistema/api-e-webhooks/tokens.md): Where to create the token your applications use on the API and how to take care of it. - [Webhooks](https://docs.dashboards.kobana.com.br/en/sistema/api-e-webhooks/webhooks.md): Register the endpoints that receive the workspace's events, and test and protect each one. #### auditoria Who changed what, when and from where. - [Audit](https://docs.dashboards.kobana.com.br/en/sistema/auditoria.md): Who changed what, when and from where. #### configuracoes General organization data, sign-up rules, maintenance and backup. - [Settings](https://docs.dashboards.kobana.com.br/en/sistema/configuracoes.md): General organization data, sign-up rules, maintenance and backup. #### consumo What the organization uses of the platform, day by day. - [Consumption](https://docs.dashboards.kobana.com.br/en/sistema/consumo.md): What the organization uses of the platform, day by day. #### eventos The workspace's event log, the basis of webhooks. - [Events](https://docs.dashboards.kobana.com.br/en/sistema/eventos.md): The workspace's event log, the basis of webhooks. #### membros The team that signs in to the dashboard, each person's roles and the workspaces they access. - [Members and roles](https://docs.dashboards.kobana.com.br/en/sistema/membros.md): The team that signs in to the dashboard, each person's roles and the workspaces they access. #### notificacoes The emails the platform sends, the status of each delivery, the sender and which types are turned on. - [Notifications](https://docs.dashboards.kobana.com.br/en/sistema/notificacoes.md): The emails the platform sends, the status of each delivery, the sender and which types are turned on. - [Email templates](https://docs.dashboards.kobana.com.br/en/sistema/notificacoes/templates-de-email.md): The subject, content and layout of the emails the platform sends. #### perfil Your information and preferences in the dashboard. - [Your profile](https://docs.dashboards.kobana.com.br/en/sistema/perfil.md): Your information and preferences in the dashboard. #### workspaces Separate data spaces inside the organization, each with its own portal. - [Workspaces](https://docs.dashboards.kobana.com.br/en/sistema/workspaces.md): Separate data spaces inside the organization, each with its own portal. --- # Full Documentation Content [Skip to main content](#__docusaurus_skipToContent_fallback) [![Kobana](/en/img/kobana-logo-hor-positivo.png)![Kobana](/en/img/kobana-logo-hor-negativo.png)](https://docs.dashboards.kobana.com.br/en/en/.md) [**Magic Dashboard**](https://docs.dashboards.kobana.com.br/en/en/.md) Documentation [Documentation](https://docs.dashboards.kobana.com.br/en/en/.md)[API](https://docs.dashboards.kobana.com.br/en/en/api/overview/introduction.md)[MCP](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/introduction.md)[CLI](https://docs.dashboards.kobana.com.br/en/en/cli/overview/introduction.md)[SDK](https://docs.dashboards.kobana.com.br/en/en/sdk.md) Ask AI [](#) * [🇧🇷 Português](https://docs.dashboards.kobana.com.br/en/pt/search) * [🇺🇸 English](https://docs.dashboards.kobana.com.br/en/en/search.md) * [🇪🇸 Español](https://docs.dashboards.kobana.com.br/en/es/search) Search # Search the documentation ![Empresa Neutra em Carbono](/en/img/badge-neutra-carbono.webp)![Empresa Parceira da Natureza](/en/img/badge-parceira-natureza.webp) Comercial[3003-0386](tel:+551130030386) [](https://wa.me/551130030386)[](mailto:comercial@kobana.com.br) ![Kobana](/en/img/kobana-logo-site.webp)![](/en/img/kobana-cegonha.webp) © 2008/2026 Kobana Tecnologia Ltda. | CNPJ: 05.813.794/0001-26 | Calçada das Margaridas, 163, Sala 02 — Centro Comercial Alphaville — Barueri, SP — 06453-038 --- # API reference --- # Authentication The Magic Dashboard API uses a **Kobana Account access token** to authenticate every request. ## The token[​](#the-token "Direct link to The token") The token is an `RS256` JWT issued by the **Kobana Authorization Server** (`account.kobana.com.br`). This API only **verifies** it, against the public key that server publishes — it holds no signing key and cannot issue any token. The **`org`** claim identifies your organization: all returned data is automatically scoped to it. Requirements checked on every request: | Claim | Requirement | | ----- | ------------------------------------------------------------------------------------------------------------------------ | | `iss` | The Authorization Server identifier, as a URL: `https://account[.{env}].kobana.com.br` | | `aud` | This API's URL: `https://api.dashboards[.{env}].kobana.com.br`. May be a **list** — the rule is *contains*, not equality | | `exp` | **Required.** A token without expiration is refused | | `org` | **The Kobana account** the token acts on behalf of — it resolves the organization here, and it is **required** | | `sub` | **The person** (`users.public_id`). Used for auditing and attribution; it scopes nothing | | `jti` | Unique token id — the basis for revocation and auditing | :::caution Change from the API key Until September 2026 the credential was a key created in the dashboard (`kb_…`), with a public prefix and a secret shown only once. The key was both the credential and what verified it — whoever read the key store could act as any organization, and every rotation was a conversation with a customer. Now the Authorization Server issues tokens and the platform only verifies them. **A key created in Settings → API no longer authenticates this API.** ::: ## Sending the token[​](#sending-the-token "Direct link to Sending the token") Include the `Authorization: Bearer ` header in every request. ``` export KOBANA_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx curl -i \ -H "Authorization: Bearer $KOBANA_TOKEN" \ -H 'Content-Type: application/json' \ -H 'User-Agent: My Name (myname@example.com)' \ -X GET 'https://api.dashboards.kobana.com.br/v1/organization' ``` ## Valid request[​](#valid-request "Direct link to Valid request") With a valid token, the response carries the authenticated Organization's data. ``` HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Request-Id: req_01HABCDEF { "id": "org_01HORG", "name": "My Company", "email": "contact@mycompany.com", "document_type": "cnpj", "document_number": "12345678000190", "environment": "production", "created_at": "2026-01-01T00:00:00.000Z" } ``` ## Invalid request[​](#invalid-request "Direct link to Invalid request") A missing, malformed or revoked token returns `401 Unauthorized`. ``` curl -i \ -H "Authorization: Bearer invalidtoken" \ -H 'Content-Type: application/json' \ -H 'User-Agent: My Name (myname@example.com)' \ -X GET 'https://api.dashboards.kobana.com.br/v1/organization' ``` ``` HTTP/1.1 401 Unauthorized Content-Type: application/json; charset=utf-8 { "error": { "code": "invalid_token", "message": "Invalid or expired access token." } } ``` Fine-grained codes help you find the error right away: `invalid_token` (missing, malformed or invalid signature), `invalid_audience` (token for another Kobana app), `token_revoked` and `unknown_organization` — the latter is a `403`: the token is valid, the organization just isn't here. **If our Authorization Server is down**, the response is `5xx`, not `401`. This is deliberate: a `401` would send you debugging a perfectly good credential during our outage. Try again in a moment. :::note `sub` is not the tenant `sub` is the person and `org` is the organization — they are uuids from different tables, so swapping them raises no format error. A token without `org` is refused instead of falling back to `sub`: that fallback would match no organization and answer `403` to everything, with the symptom pointing to permissions rather than to the claim that was read. ::: ## Scopes[​](#scopes "Direct link to Scopes") The token's `scope` has **two axes**, and every operation needs both: the **resource** — how far the token reaches — and the **access level** — what it may do there. ### Resources[​](#resources "Direct link to Resources") | Scope | What it reaches | | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards/builder` | Portal builder: pages, draft, publishing and versions | | `dashboards/users` | Portal users and the mapping that creates them, checklists and comments | | `dashboards/portal` | The portal: access, branding, look, SEO, tracking, domains and sign-in providers | | `dashboards/connectors` | Connectors (data sources) | | `dashboards/entities` | Entities and their records | | `dashboards/assets` | File library | | `dashboards/ai` | AI usage and billing | | `dashboards/workspaces` | Workspaces | | `dashboards/members` | Dashboard members, roles and permissions | | `dashboards/admin` | Organization and settings, notifications and e-mail templates, events, webhooks, audit, API keys, backups, exports, imports, purge, usage and rate limits | | **Resource wildcard** | `dashboards/all` — reaches **all** the resources above, and **grants no access level**. A bare `all` means the same | A route's group is the first segment of its path: `/v1/portal_users/…` is `dashboards/users`. A resource on its own already reads. A token with no `dashboards/…` scope and no `all` — access levels only (`read write`), or another app's scopes only — **reaches nothing**: only `GET /v1/me` answers it (since 2026-11-03; it used to reach every group by its level). ### Access levels[​](#access-levels "Direct link to Access levels") There are five, and **none stands in for another**: every operation needs exactly one level. | Level | Grants | Operations | | -------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------- | | `read` | Reading | `GET`. `write` reads too | | `write` | Creating and changing | `POST`, `PUT`, `PATCH` — it does not delete, import or export | | `delete` | Deleting | Every `DELETE`, single or bulk — the purge (`DELETE /v1/data_purges`) included | | `import` | Bringing data in in bulk | `POST /v1/imports`, `POST /v1/entities/{id}/records/import`, `POST /v1/workspaces/import`, `POST /v1/backups/restore` | | `export` | Taking data out in bulk | `POST /v1/exports`, `GET /v1/exports/{id}/download`, `GET /v1/backups/{id}/download`, `GET /v1/workspaces/{id}/export` | Listing exports and backups, reading one's status and downloading a library file (`GET /v1/assets/{id}/download`) is `read`: none of it takes the base out in bulk. Requesting a backup (`POST /v1/backups`), cancelling it and restoring a builder version is `write`. | Token scope | Result | | ------------------------------------ | ------------------------------------------------------------------------------------------------------- | | `dashboards/users read write` | Reads, invites and updates portal users; does not delete them, and does not reach the dashboard members | | `dashboards/users read write delete` | The same, and also deletes portal users | | `dashboards/all read` | Reads everything, changes nothing | | `dashboards/admin export` | Reads the `admin` group and downloads exports and backups; does not reach the other groups | | `read write` (no resources) | Reaches nothing: only `GET /v1/me` answers | Without the right reach or level the answer is `403 insufficient_scope`. `details.required` holds **one** minimal set of scopes that, added to the token's, would let the call through: the resource scope first (`dashboards/{group}`, or `dashboards/all` on a route outside the catalogue), then the bare verb. Never a list of alternatives, never `all`. A `read write` token deleting a portal user: ``` HTTP/1.1 403 Forbidden Content-Type: application/json; charset=utf-8 { "error": { "code": "insufficient_scope", "message": "This token cannot delete this data. Authorize again with `dashboards/users` and `delete` added to its scopes.", "details": { "required": ["dashboards/users", "delete"], "granted": ["read", "write"] } } } ``` Other cases: `dashboards/users` deleting a portal user gets `["delete"]`; `dashboards/members write` reading portal users, `["dashboards/users"]`; `read` on a route outside the catalogue, `["dashboards/all"]`. `GET /v1/me` answers any valid token, whatever its scope — it is how an integration checks its own credential. The granular form `dashboards/users:write` (or `:delete`, `:import`, `:export`) is an **exception** in the grammar, not the default format: it satisfies both axes for that one resource, and exists for "read one resource, write another". `dashboards/*` is a **registration** wildcard and is never issued in a token — matching here is always literal. :::caution Breaking change Until October 2026 a `DELETE` accepted `write`, and the exports and imports accepted `read` or `write`. Now `DELETE` needs `delete`, the exports need `export` and the imports need `import` — `write` is no longer enough. The purge moved from `POST` to `DELETE /v1/data_purges`, with the same JSON body and the same response. An integration that deletes, imports or exports needs a token issued again with those levels. ::: ## Best practices[​](#best-practices "Direct link to Best practices") * **Never** commit tokens to git. Use environment variables or vaults (AWS Secrets Manager, Vault, etc.). * Use separate tokens per integration (CRM, ERP, frontend, etc.) — it makes revoking one easy without taking down the others, and auditing by `jti` stays readable. * Ask for the minimum scopes needed (principle of least privilege) — the resource without an access level when the integration only reads, and `delete`, `import` or `export` only for whoever really deletes, imports or exports. * Revoke any leaked token immediately: revocation is by `jti` and applies on the next call, without waiting for `exp`. * HTTPS is mandatory — HTTP calls are rejected. --- # Changelog Changes to the contract of the API v1 and of the MCP server, newest first. An **additive** change breaks no integration; a **deprecation** announces a path that keeps answering for one release cycle and then goes away. ## 2026-11-02 — subscription and prepaid AI credits[​](#2026-11-02--subscription-and-prepaid-ai-credits "Direct link to 2026-11-02 — subscription and prepaid AI credits") **Additive, with a change of values.** AI usage is now paid by two credits: the **subscription** ones (the plan's monthly allowance, with an optional excess) and the **prepaid** ones (bought separately). In `GET /v1/ai_usage` (MCP tool `dashboards_ai_usage_get`): * **New** `subscription_credits`: `contracted`, `allowance_usd` (the monthly allowance), `consumed_usd` (what it paid this month), `excess_available` and `excess_consumed_usd`. * **New** `prepaid_credits`: `balance_usd` and `consumed_usd`. * `entitlement` (`has_plan`, `monthly_limit_usd`) and `credit_balance_usd` stay, meaning what the new names say: subscription credits and the prepaid balance. * **Changed values:** `next_turn.funded_by` is now `subscription`, `courtesy`, `prepaid` or `subscription_excess` (was `entitlement`, `courtesy` or `balance`), and `recent[].funded_by` is now `SUBSCRIPTION`, `COURTESY`, `PREPAID` or `SUBSCRIPTION_EXCESS` (was `ENTITLEMENT`, `COURTESY` or `BALANCE`). If you compare these strings, update the comparison. ## 2026-11-02 — actions named by what they do[​](#2026-11-02--actions-named-by-what-they-do "Direct link to 2026-11-02 — actions named by what they do") **Additive.** Seven `POST` operations whose last segment was a noun got a path that says what the `POST` does. The reason is the [`kobana` CLI](https://docs.dashboards.kobana.com.br/en/en/cli/overview/installation), which derives each command name from the route: `kobana dashboards builder secrets` read as a collection while it encrypts a single value. | New path | Replaces | What it does | | ----------------------------------------------- | ------------------------------------------ | ---------------------------------------- | | `POST /v1/builder/test_action` | `POST /v1/builder/action_runs` | Tests a draft action button | | `POST /v1/builder/test_form` | `POST /v1/builder/form_submissions` | Tests a draft form | | `POST /v1/builder/encrypt_secret` | `POST /v1/builder/secrets` | Encrypts a block secret | | `POST /v1/builder/upload_og_image` | `POST /v1/builder/og_image` | Uploads the og:image | | `POST /v1/portal_settings/verify_sender` | `POST /v1/portal_settings/sender_identity` | Verifies the notifications sender e-mail | | `POST /v1/data_sources` with `kind: "openapi"` | `POST /v1/data_sources/openapi` | Creates an OpenAPI data source | | `POST /v1/data_sources` with `kind: "mcp"` | `POST /v1/data_sources/mcp` | Creates an MCP data source | | `POST /v1/data_sources` with `kind: "database"` | `POST /v1/data_sources/database` | Creates a database data source | Creating a data source became **one** operation on the collection: the body carries `kind` (`openapi`, `mcp` or `database`) and the fields of that kind — the same ones each old path accepted. The response always carries `authorization_url` (set only for an MCP server with OAuth). `POST /v1/data_sources/catalog` and `POST /v1/data_sources/openapi/analyze` did not change. **Deprecations.** The eight paths in the "Replaces" column keep answering, with the same behaviour and the same response as before, for one release cycle. Each of their responses carries the headers `Deprecation: true` and `Link: ; rel="successor-version"` pointing at the new path, and the operation is marked deprecated in the [OpenAPI specification](https://docs.dashboards.kobana.com.br/en/en/api/overview/openapi.md). Switch your calls before the next release. **MCP.** The matching tools were renamed and now call the new paths; the old names are no longer in `tools/list`: | New tool | Old name | | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `dashboards_builder_test_action` | `dashboards_builder_action_runs_create` | | `dashboards_builder_test_form` | `dashboards_builder_form_submissions_create` | | `dashboards_builder_encrypt_secret` | `dashboards_builder_seal_secret` | | `dashboards_builder_upload_og_image` | `dashboards_builder_og_image_upload` | | `dashboards_portal_settings_verify_sender` | `dashboards_portal_settings_verify_sender_identity` | | `dashboards_data_sources_create` (with `kind`) | `dashboards_data_sources_create_openapi`, `dashboards_data_sources_create_mcp`, `dashboards_data_sources_create_database` | --- # Data Retention This page describes how long each type of data is kept in Magic Dashboard. ## Active Organizations[​](#active-organizations "Direct link to Active Organizations") Retention for Organizations active on the platform. | Data type | Time (in months) | | ------------------- | ---------------- | | Events | 12 | | Webhook deliveries | 12 | | Emails sent | 12 | | Audit logs | 12 | | API requests | 3 | | Portal users | Indefinitely | | Platform usage | 12 | | Any data not listed | Indefinitely | ## Inactive Organizations[​](#inactive-organizations "Direct link to Inactive Organizations") Retention for canceled or suspended Organizations. | Data type | Time (in months) | | ------------------- | ---------------- | | Events | 1 | | Webhook deliveries | 1 | | Emails sent | 1 | | Audit logs | 3 | | API requests | 1 | | Portal users | 3 | | Platform usage | 3 | | Any data not listed | 3 | The retention times above may change at any time. --- # Endpoints Magic Dashboard has a single environment, production — there is no sandbox. ## Platform (web access)[​](#platform-web-access "Direct link to Platform (web access)") | Environment | URL | | ----------- | -------------------------------------- | | Production | | ## API (v1)[​](#api-v1 "Direct link to API (v1)") | Environment | URL | | ----------- | -------------------------------------- | | Production | | ## Documentation[​](#documentation "Direct link to Documentation") | | URL | | ------------- | --------------------------------------- | | Documentation | | --- # Idempotency The API supports idempotency so requests can be safely retried without executing the same operation twice. Useful when a call is interrupted in transit and you don't get a response — for example, a request to invite a portal user that drops on a network error can be retried with the same key, guaranteeing that only one user is created and only one invitation is sent. ## How to use it[​](#how-to-use-it "Direct link to How to use it") Send the `X-Idempotency-Key: ` header on any `POST`, `PUT` or `PATCH` request. The key is opaque and generated on your side. We recommend `UUID v4` or any random string with enough entropy to avoid collisions. ``` curl -i \ -H "Authorization: Bearer $KOBANA_TOKEN" \ -H 'Content-Type: application/json' \ -H 'X-Idempotency-Key: 8c0f5d6e-3f8b-4cb5-9a47-d8f5b15e9b21' \ -H 'User-Agent: Kevin Mitnick ' \ -d '{ "email": "joao@example.com", "tenant_id": "cliente-1042" }' \ -X POST 'https://api.dashboards.kobana.com.br/v1/portal_users' ``` ## How it works[​](#how-it-works "Direct link to How it works") When the server receives a request carrying `X-Idempotency-Key`: 1. **Reserves the key** atomically, scoped to your **organization**. Two different organizations can use the same key without conflict. 2. **Computes a request fingerprint** — SHA-256 of `method + path + raw body`. The hash is stored alongside the key. 3. **Runs the handler**. If it returns a response, the server records `status_code`, body, and relevant headers tied to the key. 4. **Marks the key as completed**. Any subsequent request reusing the key within **24 hours** receives the original response verbatim — same `status_code`, same body, same headers — plus an `X-Idempotent-Replay: true` header that flags it as a replay. The layer records the result **regardless of success or failure**. Retries with the same key return the same result, **including `5xx` errors**. ### Limits[​](#limits "Direct link to Limits") * Maximum key length: **255 characters**. * Retention: keys expire automatically **24 hours** after creation. After expiry, a new request reusing the key yields a fresh result. * Scope: per organization. A key used in one organization does not interfere with another. * Accepted characters: any printable UTF-8 string. ## When the result is **not** recorded[​](#when-the-result-is-not-recorded "Direct link to when-the-result-is-not-recorded") The layer only records the result once the handler started executing. Nothing is stored in the following cases — it is safe to resend the request: * The key is empty or longer than **255 characters** → `400 bad_request`. * The API envelope rejects the request before the handler (invalid JSON, missing authentication, etc.). * The handler **throws an exception** mid-execution — the reservation is released so the next retry can run cleanly. * Another request with the same key is currently executing → `409 conflict` with `details.reason = "idempotency_request_in_progress"`. ## Conflicts[​](#conflicts "Direct link to Conflicts") If the same key is reused with a different request (any change in method, path, or body), the API responds `409 conflict` with `details.reason = "idempotency_key_reused"`. This guards against accidental reuse — for example, persisting the key alongside the operation on your side and then trying to create two different resources under the same identifier. ### Error response[​](#error-response "Direct link to Error response") ``` { "error": { "code": "conflict", "message": "X-Idempotency-Key was already used with different request parameters. Reuse the original parameters or generate a new key.", "details": { "reason": "idempotency_key_reused" } } } ``` ### Other possible responses[​](#other-possible-responses "Direct link to Other possible responses") | Scenario | Status | `error.code` | `details.reason` | | -------------------------------------------- | ------ | ------------- | --------------------------------- | | Another request with the same key is running | `409` | `conflict` | `idempotency_request_in_progress` | | Same key reused with a different payload | `409` | `conflict` | `idempotency_key_reused` | | Key empty or longer than 255 characters | `400` | `bad_request` | `invalid_idempotency_key` | ## Accepted methods[​](#accepted-methods "Direct link to Accepted methods") | Method | Accepts `X-Idempotency-Key`? | | -------- | ---------------------------------------- | | `POST` | ✅ Yes | | `PUT` | ✅ Yes | | `PATCH` | ✅ Yes | | `GET` | ❌ No (already idempotent by definition) | | `DELETE` | ❌ No (already idempotent by definition) | Sending the key on `GET` or `DELETE` has no effect — the API processes the request normally without recording anything. ## Detecting a replay[​](#detecting-a-replay "Direct link to Detecting a replay") Every response served from the recorded result carries the header: ``` X-Idempotent-Replay: true ``` You can use this header on your side to tell the original execution apart from a server-side replay. ## Best practices[​](#best-practices "Direct link to Best practices") * **One key per logical operation.** Don't reuse the same key to create two different resources — you will get `409 conflict`. * **Persist the key alongside the operation state** on your side, so a retry after a crash or restart still uses the same key. * **Pair it with exponential backoff** on `5xx` or timeout responses — the key guarantees the retry doesn't duplicate the resource. Because failures are also recorded, you can stop retrying as soon as the expected status code comes back. * **Drop the key after 24 hours.** No value in keeping it on your side beyond that — the server has already discarded the record. * **Don't send the key on methods that don't accept it.** It is silently ignored on `GET`/`DELETE` — we prefer clients to omit it so the contract is explicit about what's idempotent and what relies on the key. --- # Introduction If you are a dev, have fun! ✨ ## Format[​](#format "Direct link to Format") The API accepts only the `JSON` format. All requests must use `Content-Type: application/json`. All responses use `snake_case`. | Field Type | Format | | ------------ | --------------------------------------------------------------------------------------------------------------------------- | | **DateTime** | [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format. Examples — Date: `2026-01-24`. Date and time: `2026-01-24T10:07Z` | | **Money** | Decimal number in reais (BRL), with up to 4 decimal places. E.g.: `100.5` = R$ 100.50 | | **UUID** | Resource identifiers in UUID v4 format | ## Conventions[​](#conventions "Direct link to Conventions") Conventions used in this documentation: | Convention | Description | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | **`:variable`** | Variable name that must be replaced in a URL. | | **`#{variable}`** | Variable name that must be replaced with values from your account. | | **`...`** | Response content truncated for readability. | | **`$KOBANA_TOKEN`** | Access token. For command-line testing, export it: `export KOBANA_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx` and paste the commands from the documentation into the terminal. | ## Response Codes[​](#response-codes "Direct link to Response Codes") The API returns standard HTTP codes: | | Code | Description | | -- | ----------------------------- | --------------------------------------------------------------------------------- | | ✅ | **200 OK** | Successful request with a response body. | | ✅ | **201 Created** | Resource created successfully. | | ✅ | **204 No Content** | Successful request, with no response body. | | ❌ | **400 Bad Request** | Invalid request, usually malformed content. | | ❌ | **401 Unauthorized** | Access token missing or invalid. | | ❌ | **403 Forbidden** | API access blocked or user without permission. | | ❌ | **404 Not Found** | The address accessed does not exist. | | ❌ | **422 Unprocessable Entity** | Valid request, but the data sent is not. | | ❌ | **429 Too Many Requests** | Request limit reached. | | ❌ | **500 Internal Server Error** | Internal processing error. See the [server status](https://status.kobana.com.br). | ## Request ID[​](#request-id "Direct link to Request ID") Each request has an associated identifier, available in the `Request-Id` response header. This value helps with debugging and auditing — requests and their IDs can be looked up in the system dashboard. The request log is available for **30 days**. When opening a support ticket about a specific request, provide the `Request-Id` to speed up the investigation. ## Security[​](#security "Direct link to Security") The Kobana API uses **2048-bit SSL** certificates. Every request must be made over **HTTPS** — calls on port 80 are redirected to 443. Clients must support `TLSv1.2` or `TLSv1.3` with one of the ciphers: `TLS_AES_128_GCM_SHA256`, `TLS_AES_256_GCM_SHA384`, `TLS_CHACHA20_POLY1305_SHA256`, `ECDHE-RSA-AES128-GCM-SHA256`, `ECDHE-RSA-AES128-SHA256`, `ECDHE-RSA-AES256-GCM-SHA384`, `ECDHE-RSA-CHACHA20-POLY1305`, `ECDHE-RSA-AES256-SHA384`. `TLSv1` and `TLSv1.1` are not supported. ## HTTP Cache[​](#http-cache "Direct link to HTTP Cache") Use the HTTP cache headers to reduce load and gain speed. Most responses include `ETag` and/or `Last-Modified` — store these values and resend them in subsequent requests via `If-None-Match` and `If-Modified-Since`. If the resource has not changed, the response will be `304 Not Modified`, with no body and no reprocessing. More information: [HTTP Cache Docs](http://www.mnot.net/cache_docs/). ## Error Handling[​](#error-handling "Direct link to Error Handling") 5xx errors indicate server failures: **500 Internal Server Error** (application unavailable), **502 Bad Gateway**, **503 Service Unavailable** and **504 Gateway Timeout** (occasional infrastructure failures). Your application should identify these codes and reschedule the request after a few minutes with backoff. Server status: . ## Monetary values[​](#monetary-values "Direct link to Monetary values") Every monetary value — in the request and in the response — is a decimal number in reais (BRL), with up to 4 decimal places. There are no fields in cents: send `100.5` for R$ 100.50 and `0.0125` for R$ 0.0125. Pricing fields accept all 4 decimal places; the others are rounded to 2. ## Next steps[​](#next-steps "Direct link to Next steps") * [Specifications](https://docs.dashboards.kobana.com.br/en/en/api/overview/openapi.md) — OpenAPI 3.1 in YAML for download. * [Endpoints](https://docs.dashboards.kobana.com.br/en/en/api/overview/endpoints.md) — platform and API URLs. * [User-Agent](https://docs.dashboards.kobana.com.br/en/en/api/overview/user-agent.md) — recommended header to identify your application. * [Rate Limit](https://docs.dashboards.kobana.com.br/en/en/api/overview/rate-limit.md) — throttling and response headers. * [Idempotency](https://docs.dashboards.kobana.com.br/en/en/api/overview/idempotency.md) — `X-Idempotency-Key` for safe retries. * [Webhooks](https://docs.dashboards.kobana.com.br/en/en/api/overview/webhooks.md) — events fired in real time. * [Data Retention](https://docs.dashboards.kobana.com.br/en/en/api/overview/data-retention.md) — retention policy by resource type. --- # OpenAPI We publicly maintain the Magic Dashboard API specification files in an open format so you can download them and use them in the tool of your choice. ## OpenAPI 3.1[​](#openapi-31 "Direct link to OpenAPI 3.1") | Version | Language | File | | ------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- | | v1 | Português | [openapi-v1-pt.yaml](https://docs.dashboards.kobana.com.br/en/en/assets/files/openapi-v1-pt-5940120fb27d30a94486f399ce9c5a66.yaml) | | v1 | English | [openapi-v1-en.yaml](https://docs.dashboards.kobana.com.br/en/en/assets/files/openapi-v1-en-5408fc51074190747619717dd2658fa7.yaml) | | v1 | Español | [openapi-v1-es.yaml](https://docs.dashboards.kobana.com.br/en/en/assets/files/openapi-v1-es-62373eceb5a898e4774d59ef0bc91d16.yaml) | ### Straight from the API[​](#straight-from-the-api "Direct link to Straight from the API") The API host serves the same files too, with no authentication: | Language | File | | --------- | ---------------------------------------------------------------------------------------------- | | Português | [openapi-v1-pt.yaml](https://api.dashboards.kobana.com.br/specs/dashboards/openapi-v1-pt.yaml) | | English | [openapi-v1-en.yaml](https://api.dashboards.kobana.com.br/specs/dashboards/openapi-v1-en.yaml) | | Español | [openapi-v1-es.yaml](https://api.dashboards.kobana.com.br/specs/dashboards/openapi-v1-es.yaml) | `https://api.dashboards.kobana.com.br/v1/openapi.yaml` (or `/v1/openapi.json`) returns the same specification with `servers` pointing only at the environment that answered. The language comes from `?locale=pt`, `en` or `es`, or from the `Accept-Language` header; with neither, Portuguese. ## Postman Collection[​](#postman-collection "Direct link to Postman Collection") Also available as a ready-to-import Postman collection. Details and files in [Postman](https://docs.dashboards.kobana.com.br/en/en/api/overview/postman.md). --- # Listing and Pagination Every `GET` endpoint that returns a collection (`/v1/portal_users`, `/v1/dashboard_users`, `/v1/team_roles`, etc.) uses **page-number** pagination. ## Parameters[​](#parameters "Direct link to Parameters") Sent in the query string: | Parameter | Type | Default | Description | | ------------ | --------------- | ------------------ | --------------------------------------------------------------- | | `page` | integer ≥ 1 | `1` | Requested page (starts at 1). | | `per_page` | integer 1–100 | `20` | Items per page. Maximum **100**. | | `sort_by` | string | varies by resource | Field used for sorting. Accepts the same names as the response. | | `sort_order` | `asc` or `desc` | `desc` | Sort direction. | Out-of-range values are clamped (e.g. `per_page=999` becomes `100`; `page=0` becomes `1`). ## Response[​](#response "Direct link to Response") Every listing follows this envelope: ``` { "data": [ { "id": "8b2f4c1e-6a3d-4f0b-9c7e-2d5a1b3c4d5e", "email": "joao@example.com", "status": "active", "tenant_id": "cliente-1042" } ], "meta": { "total": 142, "page": 1, "per_page": 20, "total_pages": 8 } } ``` | Field | Description | | ------------------ | -------------------------------------------------------------- | | `data` | Array with the items of the current page. | | `meta.total` | Total items matching the filters (not just the ones returned). | | `meta.page` | Current page. | | `meta.per_page` | Items per page actually applied. | | `meta.total_pages` | Total number of pages (`ceil(total / per_page)`). | The last page may contain fewer than `per_page` items. When `page > total_pages`, `data` is empty (not an error). ## Examples[​](#examples "Direct link to Examples") ### First page, default[​](#first-page-default "Direct link to First page, default") ``` curl -H "Authorization: Bearer $KOBANA_TOKEN" \ 'https://api.dashboards.kobana.com.br/v1/portal_users' ``` ### Page 3 with 50 items[​](#page-3-with-50-items "Direct link to Page 3 with 50 items") ``` curl -H "Authorization: Bearer $KOBANA_TOKEN" \ 'https://api.dashboards.kobana.com.br/v1/portal_users?page=3&per_page=50' ``` ### Sorted by `created_at` ascending[​](#sorted-by-created_at-ascending "Direct link to sorted-by-created_at-ascending") ``` curl -H "Authorization: Bearer $KOBANA_TOKEN" \ 'https://api.dashboards.kobana.com.br/v1/portal_users?sort_by=created_at&sort_order=asc' ``` ### Filters + pagination[​](#filters--pagination "Direct link to Filters + pagination") Resource-specific filters work together with `page`/`per_page`: ``` curl -H "Authorization: Bearer $KOBANA_TOKEN" \ 'https://api.dashboards.kobana.com.br/v1/portal_users?status=active&email=joao&page=2&per_page=25' ``` ## Iterating over all pages[​](#iterating-over-all-pages "Direct link to Iterating over all pages") Recommended pattern in pseudo-code: ``` async function fetchAll(url, token) { const out = []; let page = 1; while (true) { const res = await fetch(`${url}?page=${page}&per_page=100`, { headers: { Authorization: `Bearer ${token}` }, }); const { data, meta } = await res.json(); out.push(...data); if (page >= meta.total_pages) break; page += 1; } return out; } ``` ## Best practices[​](#best-practices "Direct link to Best practices") * For incremental sync, prefer filtering by `updated_at_gte` (or a similar filter available on the endpoint) instead of scanning every page. * `per_page=100` minimizes the number of requests and uses less of the [rate limit](https://docs.dashboards.kobana.com.br/en/en/api/overview/rate-limit.md). * **Cache** `meta.total` when rendering paginators; don't recompute it on every navigation. * Don't assume a stable order without an explicit `sort_by` — the default order may differ between resources. --- # Postman If you prefer testing the API with Postman, open the collection straight from Kobana's public workspace, or download it in your language and import it into Postman. The collections are generated from the OpenAPI specification (`npm run postman:generate`) and follow every API version. Every production deploy syncs them to Postman. ## Public workspace[​](#public-workspace "Direct link to Public workspace") The v1 collections are published in the [**universokobana/kobana-dashboards-api**](https://www.postman.com/universokobana/kobana-dashboards-api/overview) workspace, one per language. ## Online collections[​](#online-collections "Direct link to Online collections") Open them directly in Postman (web or app): | Language | Collection | | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Português | [API do Dashboard Mágico (v1.0.0) — Português](https://www.postman.com/universokobana/kobana-dashboards-api/collection/46791755-c6ec997c-6e4a-42e6-851d-29ed17cbff84) | | English | [Magic Dashboard API (v1.0.0) — English](https://www.postman.com/universokobana/kobana-dashboards-api/collection/46791755-8d1037cb-faba-4a38-9b00-537c35a5b7f5) | | Español | [API de Dashboard Mágico (v1.0.0) — Español](https://www.postman.com/universokobana/kobana-dashboards-api/collection/46791755-fdab4996-30e3-4e22-84f8-ebc2fbdd863a) | ## Downloadable collections[​](#downloadable-collections "Direct link to Downloadable collections") Prefer to import locally? Download the `.json` file: | Version | Language | File | | ------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- | | v1 | Português | [postman-v1-pt.json](https://docs.dashboards.kobana.com.br/en/en/assets/files/postman-v1-pt-ccad49410a1ca7c69131a8e4cfba9c00.json) | | v1 | English | [postman-v1-en.json](https://docs.dashboards.kobana.com.br/en/en/assets/files/postman-v1-en-42bd07f8c4c8fb7c7f3b7f40a2bccef9.json) | | v1 | Español | [postman-v1-es.json](https://docs.dashboards.kobana.com.br/en/en/assets/files/postman-v1-es-9e0487c660c71b685ce6db8c69ddab3d.json) | ## Usage[​](#usage "Direct link to Usage") 1. Open the [online collection](#online-collections) or import the downloaded `.json` file into Postman (**File → Import**). 2. Open the collection's **Variables** tab and fill in: * `baseUrl` — already set to the production address (`https://api.dashboards.kobana.com.br`), Magic Dashboard's only environment. * `bearerToken` — your JWT, generated at **Integrations → Kobana API → API Token**. 3. Bearer authentication is already configured at the collection level, pointing to `{{bearerToken}}`. 4. Open any request, adjust parameters if needed, and click **Send**. --- # Rate Limit When a client exceeds the limit associated with it, subsequent requests are blocked. The server responds with information about the limits used and the wait time required before sending a new request, attached to the response headers: | Header | Example | Description | | --------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `ratelimit-limit` | `60` | Request limit for the client. | | `ratelimit-name` | `throttle_authenticated_web` | Name of the throttle used. | | `ratelimit-remaining` | `0` | Number of requests available. | | `ratelimit-reset` | `1609844400` | [Unix time](https://en.wikipedia.org/wiki/Unix_time) — when the count resets. | | `retry-after` | `30` | Seconds until the count resets. See [Retry-After](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After). | There are two kinds of limits: `GET` requests and `POST` requests. In both cases the count is made per **hour**. Maximum limits: * **60 requests/hour** for `GET` * **1000 requests/hour** for `POST` If your operation needs a higher number, contact support or sales. The count is reset in the first minute of each hour. On every request, the server returns `ratelimit-limit` and `ratelimit-remaining`. ### Example of a successful response[​](#example-of-a-successful-response "Direct link to Example of a successful response") ``` Date: Fri, 05 Nov 2010 12:00:00 GMT Content-Type: application/json; charset=utf-8 ratelimit-limit: 1000 ratelimit-remaining: 486 ``` ### Example of a blocked response[​](#example-of-a-blocked-response "Direct link to Example of a blocked response") When the limit is reached, the server returns `HTTP 429 Too Many Requests`. Wait the number of seconds in the `retry-after` header before the next request. ``` HTTP/1.1 429 Too Many Requests Date: Fri, 05 Nov 2010 12:00:00 GMT Content-Type: application/json; charset=utf-8 ratelimit-limit: 1000 ratelimit-remaining: 0 ratelimit-reset: 3600 ratelimit-name: throttle_authenticated_web retry-after: 3600 {"error": "Limite de requisições POST por hora excedido para esse usuário."} ``` Referência: --- # User-Agent You can include the `User-Agent` header with your application's name and a valid email address, so that we can contact you in case: 1. You are doing something wrong, and we can warn you before blocking; 2. You are doing something really cool, and we can congratulate you 🙂 Example: ``` User-Agent: Meu Nome (meunome@example.com) ``` Example of how to pass this header using cURL: ``` curl -i \ -H "Authorization: Bearer <>" \ -H 'Content-Type: application/json' \ -H 'User-Agent: Meu Nome (meunome@example.com)' \ -X GET 'https://api.dashboards.kobana.com.br/v1/me' ``` This header is **optional** on all requests, but recommended. --- # Webhooks Webhooks are HTTP notifications sent by the Magic Dashboard API whenever a relevant event happens in your Organization — an API token created, deactivated, rotated or revoked, and so on. Instead of polling, you register a **public HTTP endpoint** and receive a `POST` with the event payload as soon as it happens. ## Registration[​](#registration "Direct link to Registration") Manage endpoints in **Dashboard → Settings → API → Webhooks**. Each endpoint has: * **URL** — public HTTPS destination on your server. * **Subscribed events** — the `event types` you want to receive. If empty, it receives all of them. * **Status** — `active` or `inactive`. * **Secret** — secret string used to sign each delivery (HMAC-SHA256). Generated automatically; can be rotated. * **Auth headers** — optionally, extra headers (Basic, Bearer, custom) injected in every request. ## Delivery[​](#delivery "Direct link to Delivery") Each event triggers a `POST` request to the registered URL: ``` POST /your-endpoint HTTP/1.1 Content-Type: application/json User-Agent: Kobana-Webhooks/1.0 X-Kobana-App: dashboards X-Kobana-Environment: production X-Kobana-Webhook-Id: 7c1e9d2a-3b4f-4c5d-8e6f-0a1b2c3d4e5f X-Kobana-Event: api_key.status_changed X-Kobana-Event-Id: 3d1f0c9a-5b2e-4c7d-9e1f-8a6b4c2d0e9f X-Kobana-Delivery-Id: 9b2e4a10-7c3f-4d8e-a1b2-c3d4e5f60718 X-Kobana-Timestamp: 1753272000 X-Kobana-Signature: v1,MEUCIQD3… webhook-id: 9b2e4a10-7c3f-4d8e-a1b2-c3d4e5f60718 webhook-timestamp: 1753272000 webhook-signature: v1,MEUCIQD3… {...JSON payload, in snake_case...} ``` The headers are described in [Headers and signature](#headers-and-signature-kobana-standard), below. ### Success[​](#success "Direct link to Success") Any `2xx` response within **30 seconds** marks the delivery as successful. Anything else (timeout, `4xx`, `5xx`) is treated as a failure. ### Retry[​](#retry "Direct link to Retry") Failures are redelivered with exponential backoff: | Attempt | Delay | | ------- | --------- | | 1 | immediate | | 2 | +1 min | | 3 | +5 min | | 4 | +30 min | | 5 | +2 h | | 6 | +6 h | | 7 | +24 h | After **7 attempts**, the delivery is permanently marked as `failed`. Failed deliveries stay available in the dashboard for manual redelivery. ## Headers and signature (Kobana standard)[​](#headers-and-signature-kobana-standard "Direct link to Headers and signature (Kobana standard)") Every delivery is a `POST` with `Content-Type: application/json` and the headers below — **the same across all Kobana products**, so a single receiver can take webhooks from several products and environments and route them safely: | Header | Value | | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `X-Kobana-App` | `dashboards` — the Kobana product that sent the delivery. | | `X-Kobana-Environment` | `production` for Magic Dashboard deliveries. Other Kobana products also send `sandbox` or `development` — never let a delivery that is not `production` touch production data. | | `X-Kobana-Webhook-Id` | Id of the registered endpoint this delivery belongs to. | | `X-Kobana-Event` | Event slug (e.g. `api_key.status_changed`). | | `X-Kobana-Event-Id` | Event id. Retries of the same event repeat it — use it to deduplicate. | | `X-Kobana-Delivery-Id` | Unique id of this delivery attempt. Part of the signed content. | | `X-Kobana-Timestamp` | Unix time (seconds) when the delivery was signed. Part of the signed content. | | `X-Kobana-Signature` | `v1,` — one or more tokens separated by a space. | | `webhook-id`, `webhook-timestamp`, `webhook-signature` | The same three values, in the [Standard Webhooks](https://www.standardwebhooks.com) layout — verifiable with an off-the-shelf library. | The legacy headers `X-Signature` (`t=,v1=` over `"{t}.{body}"`), `X-Delivery-Id`, `X-Event-Id`, `X-Event-Type`, `X-Timestamp`, `X-App` and `X-Environment` are still sent, **deprecated**, for existing integrations. Migrate to the `X-Kobana-*` headers: they will be removed in a future version of the contract. ### How the signature is computed[​](#how-the-signature-is-computed "Direct link to How the signature is computed") ``` key = base64_decode(secret without the "whsec_" prefix) signed_content = delivery_id + "." + timestamp + "." + raw_body signature = "v1," + base64(HMAC_SHA256(key, signed_content)) ``` * `raw_body` is the request body **exactly as received**, byte for byte. Do not parse and re-serialize it: key order, whitespace or escaping would change and the signature would no longer match. * Binding the `delivery_id` into the signed content means a captured request cannot be replayed under a different id to bypass your deduplication; the timestamp bounds replays in time. * The secret is `whsec_` + base64 of 32 random bytes and is shown **once**. Older secrets (without the prefix, or with hex after it) keep working: the key is the base64-decoded value after the prefix, or the UTF-8 bytes of the secret when there is no prefix. * During a secret rotation the header carries one token per still-valid secret (`v1,AAA… v1,BBB…`). A delivery is valid if **any** token matches **any** secret you hold. ### Verifying a delivery[​](#verifying-a-delivery "Direct link to Verifying a delivery") 1. Read `webhook-id`, `webhook-timestamp` and `webhook-signature` (or the `X-Kobana-*` equivalents). Reject the request if any is missing. 2. Reject if `|now − timestamp| > 300` seconds: five minutes absorb clock skew while bounding replays. 3. Build the signed content from the raw body and compute the expected HMAC for each secret you trust. 4. Compare with each `v1,` token using a **constant-time** comparison — never `==`, which returns at the first differing byte and leaks the digest through timing. 5. Deduplicate by `X-Kobana-Event-Id` to process each event once, or by `webhook-id` to record every attempt. 6. Return `2xx` quickly and do the heavy work asynchronously. Anything else goes into the retry cycle. ``` const crypto = require('node:crypto'); /** * @param headers request headers, lower-cased names * @param rawBody raw body (string or Buffer), BEFORE any JSON.parse * @param secrets current secret (and the previous one during a rotation) */ function verifyKobanaWebhook(headers, rawBody, secrets) { const id = headers['webhook-id']; const timestamp = headers['webhook-timestamp']; const signature = headers['webhook-signature']; if (!id || !timestamp || !signature) throw new Error('missing signature headers'); if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) throw new Error('timestamp out of tolerance'); const content = `${id}.${timestamp}.${rawBody}`; const received = signature.split(' ').filter((t) => t.startsWith('v1,')).map((t) => Buffer.from(t.slice(3), 'base64')); for (const secret of [].concat(secrets)) { const key = secret.startsWith('whsec_') ? Buffer.from(secret.slice(6), 'base64') : Buffer.from(secret, 'utf8'); const expected = crypto.createHmac('sha256', key).update(content).digest(); if (received.some((r) => r.length === expected.length && crypto.timingSafeEqual(r, expected))) return true; } throw new Error('no matching signature'); } ``` ``` import base64, hashlib, hmac, time def verify_kobana_webhook(headers, raw_body: bytes, secrets) -> bool: msg_id = headers.get("webhook-id") timestamp = headers.get("webhook-timestamp") signature = headers.get("webhook-signature") if not (msg_id and timestamp and signature): raise ValueError("missing signature headers") if abs(time.time() - int(timestamp)) > 300: raise ValueError("timestamp out of tolerance") content = f"{msg_id}.{timestamp}.".encode() + raw_body received = [base64.b64decode(t[3:]) for t in signature.split(" ") if t.startswith("v1,")] for secret in ([secrets] if isinstance(secrets, str) else secrets): key = base64.b64decode(secret[6:]) if secret.startswith("whsec_") else secret.encode() expected = hmac.new(key, content, hashlib.sha256).digest() if any(hmac.compare_digest(r, expected) for r in received): return True raise ValueError("no matching signature") ``` With Express, keep the raw body by mounting `express.raw({ type: 'application/json' })` on the webhook route (not `express.json()`), verify, and only then `JSON.parse`. With Django/Flask use `request.body`/`request.get_data()` — never the already-parsed object. ## Payload structure[​](#payload-structure "Direct link to Payload structure") Every event shares the same envelope: ``` { "id": "evt_01HXYZABC123", "type": "api_key.status_changed", "created_at": "2026-05-20T12:00:00.000Z", "environment": "production", "version": "2026-03-01", "data": { /* full resource */ }, "changes": { /* optional, changes since the previous state */ } } ``` | Field | Description | | ------------- | ---------------------------------------------------------------------------------------------------------------- | | `id` | Unique event ID. | | `type` | Event type (e.g. `api_key.status_changed`). | | `created_at` | ISO 8601 timestamp (UTC) when the event was generated. | | `environment` | `production`. | | `version` | Payload schema version (`YYYY-MM-DD` string). | | `data` | The full resource in its current state. | | `changes` | For `*.updated` and `*.status_changed` events, a `field: {from, to}` map. May be absent on create/delete events. | ## Available events[​](#available-events "Direct link to Available events") | Resource | Events | | --------- | -------------------------------------------------------------------------------------------------------------------------------- | | API token | `api_key.db.created`, `api_key.db.updated`, `api_key.db.deleted`, `api_key.status_changed`, `api_key.rotated`, `api_key.revoked` | ## Best practices[​](#best-practices "Direct link to Best practices") * **Idempotency**: use `X-Kobana-Event-Id` to avoid processing duplicates on retries. * **Fast response**: answer `2xx` within 30s. Push heavy work to an asynchronous queue. * **Versioning**: the `version` field indicates the schema. Treat new fields as additive. * **Mandatory validation**: always validate the signature before trusting the payload. * **HTTPS**: use TLS on the endpoint. HTTP endpoints are rejected in production. * **Event list**: prefer subscribing only to the events you process, not `*`. --- # Authentication :::caution Products do not share credentials `KOBANA_TOKEN` holds **one product's credential at a time**. A Magic Dashboard token does not authenticate against any other Kobana product, and vice versa. `kobana auth login` belongs to the Banking Gateway and does **not** issue Magic Dashboard tokens. ::: ## The token[​](#the-token "Direct link to The token") Magic Dashboard authenticates with an **RS256 access token** issued by Kobana's authorization server (`account.kobana.com.br`), sent as `Authorization: Bearer `. The token's `aud` is `https://api.dashboards.kobana.com.br` — which is why it only works for this product. The API only verifies tokens and issues none: see [API Authentication](https://docs.dashboards.kobana.com.br/en/en/api/overview/authentication.md) for how to get one. The `scope` claim decides what the token can do: | Command | Accepted scopes | | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | Read (`GET`) | no level — reaching the group is enough (`dashboards/{group}`, `dashboards/all` or `all`) | | Write (`POST`, `PUT`, `PATCH`) | `write` | | Delete (every `DELETE`, `data-purges delete` included) | `delete` | | Import (`imports create`, `entities records import`, `workspaces import`, `backups restore`) | `import` | | Export (`exports create`, `exports download`, `backups download`, `workspaces export`) | `export` | No level stands in for another: `write` does not delete, import or export. A level applies only within the groups the token reaches — `dashboards/{group}`, `dashboards/all` or `all`; a token with levels only (`read write`) reaches nothing but `GET /me`. See [API Authentication](https://docs.dashboards.kobana.com.br/en/en/api/overview/authentication.md). Without the right scope the answer is `403 insufficient_scope`. A token issued to a **person** is also bounded by what that person's role allows in the dashboard (`403 insufficient_permission`); a machine token acts for the organization. Put the token in `KOBANA_TOKEN` before calling the product — `me get` shows who it belongs to: ``` export KOBANA_TOKEN=$JWT_DASHBOARDS kobana dashboards me get ``` Since the variable is the same for every product, export it per command (or use a per-project `.env`) if you switch products in the same session: ``` KOBANA_TOKEN=$JWT_DASHBOARDS kobana dashboards data-sources list --fields "id,name,status" ``` ## Workspace (`X-Workspace-Id`)[​](#workspace-x-workspace-id "Direct link to workspace-x-workspace-id") The token identifies the **organization**; its data lives in workspaces, and the `X-Workspace-Id` header says which one the call acts on — the `id` or `public_id` shown under **Workspaces** in the dashboard (or by `kobana dashboards workspaces list`). It may be left out while the organization has a single workspace; with two or more, leaving it out returns `400 workspace_required`. A workspace from another organization returns `403 unknown_workspace`, and a person token without access to the workspace, `403 workspace_access_denied`. The CLI fills the header from `KOBANA_WORKSPACE_ID`. To act on another workspace for a single call, pass the header in `--params`, which wins over the variable: ``` export KOBANA_WORKSPACE_ID=WORKSPACE_ID kobana dashboards entities list kobana dashboards entities list --params '{"X-Workspace-Id": "OTHER_WORKSPACE_ID"}' ``` `--dry-run` shows the headers that would be sent (without the token), and `kobana schema` lists each endpoint's headers under `header_params`. ## Resolution priority[​](#resolution-priority "Direct link to Resolution priority") | Priority | Method | Configuration | | -------- | ----------------- | ------------------------------------------ | | 1 | Direct token | `KOBANA_TOKEN` | | 2 | Credentials file | `KOBANA_CREDENTIALS_FILE` | | 3 | Saved credentials | `kobana auth login` (Banking Gateway only) | ## Environment[​](#environment "Direct link to Environment") Magic Dashboard has a single environment, production, which is the CLI default — there is no need to pass `--env`. | Environment | API | `--env` | | ----------- | ------------------------------ | ---------------------- | | Production | `api.dashboards.kobana.com.br` | `production` (default) | Magic Dashboard has no sandbox and no development host of its own: with `--env development` the CLI falls back to production. ``` kobana dashboards workspaces list ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/usage/overview.md) — syntax, resources, examples. * [Environment variables](https://docs.dashboards.kobana.com.br/en/en/cli/overview/environment-variables.md) — the full reference, including config and logging. --- # Environment variables Every variable can also be set in a `.env` file (loaded via `dotenvy`). ## Authentication[​](#authentication "Direct link to Authentication") | Variable | Description | | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `KOBANA_TOKEN` | Bearer token for the product you are calling. Not shared across products | | `KOBANA_WORKSPACE_ID` | Workspace sent in the `X-Workspace-Id` header. Optional while the organization has a single workspace; an `X-Workspace-Id` in `--params` wins over it | | `KOBANA_CREDENTIALS_FILE` | Path to an OAuth credentials JSON file | | `KOBANA_CLIENT_ID` | OAuth client ID (Banking Gateway) | | `KOBANA_CLIENT_SECRET` | OAuth client secret (Banking Gateway) | ## Configuration[​](#configuration "Direct link to Configuration") | Variable | Description | | -------------------- | ------------------------------------------------------------ | | `KOBANA_CONFIG_DIR` | Override the config directory (default: `~/.config/kobana`) | | `KOBANA_ENVIRONMENT` | Environment. Magic Dashboard only has `production` (default) | ## Logging[​](#logging "Direct link to Logging") | Variable | Description | | ----------------- | ------------------------------------------------------------------ | | `KOBANA_LOG` | Log level filter for stderr (e.g. `kobana=debug`). Off by default. | | `KOBANA_LOG_FILE` | Directory for JSON log files with daily rotation. Off by default. | ## Next steps[​](#next-steps "Direct link to Next steps") * [Authentication](https://docs.dashboards.kobana.com.br/en/en/cli/overview/authentication.md) — token, workspace and environments. * [Exit codes](https://docs.dashboards.kobana.com.br/en/en/cli/overview/exit-codes.md) — process exit codes for scripting. --- # Exit codes Every `kobana` invocation exits with one of these codes, so a script can branch on failure class without parsing the JSON error body. | Code | Meaning | | ---- | -------------------- | | `0` | Success | | `1` | API error (4xx/5xx) | | `2` | Authentication error | | `3` | Validation error | | `4` | Schema error | | `5` | Internal error | ## Next steps[​](#next-steps "Direct link to Next steps") * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/usage/overview.md) — syntax, resources, examples. * [Global flags](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) — `--dry-run`, `--output-format` and the rest. --- # Installation ### Homebrew (macOS and Linux)[​](#homebrew-macos-and-linux "Direct link to Homebrew (macOS and Linux)") ``` brew tap universokobana/tap brew install kobana ``` To update: ``` brew update && brew upgrade kobana ``` ### Prebuilt binaries[​](#prebuilt-binaries "Direct link to Prebuilt binaries") Download the binary for your platform from the [Releases page](https://github.com/universokobana/kobana-cli/releases/latest) and put it on your `PATH`. | Platform | File | | ------------------- | -------------------------- | | Linux x86\_64 | `kobana-linux-amd64` | | Linux ARM64 | `kobana-linux-arm64` | | macOS Intel | `kobana-darwin-amd64` | | macOS Apple Silicon | `kobana-darwin-arm64` | | Windows x86\_64 | `kobana-windows-amd64.exe` | ### Nix[​](#nix "Direct link to Nix") ``` # Run straight from GitHub nix run github:universokobana/kobana-cli # Install into the profile nix profile install github:universokobana/kobana-cli ``` ### Build from source[​](#build-from-source "Direct link to Build from source") ``` git clone https://github.com/universokobana/kobana-cli.git cd kobana-cli cargo install --path crates/kobana-cli ``` Requires [Rust](https://rustup.rs/) 1.70+. ## Shell completions[​](#shell-completions "Direct link to Shell completions") ``` # Bash kobana completions bash > /etc/bash_completion.d/kobana # Zsh kobana completions zsh > ~/.zfunc/_kobana # Fish kobana completions fish > ~/.config/fish/completions/kobana.fish # PowerShell kobana completions powershell > kobana.ps1 ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Authentication](https://docs.dashboards.kobana.com.br/en/en/cli/overview/authentication.md) — tokens and environments. * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/usage/overview.md) — syntax, resources, examples. --- # Introduction **`kobana`** is a single command-line tool for every Kobana product's API — Magic Dashboard included. It is built and maintained in its own repository ([`kobana-cli`](https://github.com/universokobana/kobana-cli)), not by this product, and it does not hardcode endpoints: at startup it parses the OpenAPI 3.1 specs embedded in the binary and builds its command tree from them. Updating the API surface is a matter of refreshing the embedded spec and shipping a new build — no per-endpoint code. ``` kobana [flags] ``` Designed for both humans and AI agents: structured JSON output by default, schema introspection, `--dry-run` and automatic pagination. ## Products[​](#products "Direct link to Products") | Product | Description | | ------------ | -------------------------------------------------------------------------------- | | `banking` | Banking Gateway — charges, payments, transfers (API v1 and v2) | | `finance` | Smart Finance — payables and receivables, transactions, cash flow | | `billing` | Automatic Billing — subscriptions, plans, invoices, tax documents | | `inbox` | Autonomous Inbox — inboxes, agents, e-mails, webhooks | | `dunning` | Dunning — debtors, charges, collection rules, agreements, credit bureau listings | | `dashboards` | Magic Dashboard — data sources, entities, portal, workspaces | The `dashboards` product talks to the same API documented on this site. Its resources — see the [full catalogue](https://docs.dashboards.kobana.com.br/en/en/cli/resources/overview.md) — point at the same endpoints as the [API Reference](https://docs.dashboards.kobana.com.br/en/en/api/v1); the CLI is just another way to call it. It does not share credentials with the other products: see [Authentication](https://docs.dashboards.kobana.com.br/en/en/cli/overview/authentication.md). ## Getting started[​](#getting-started "Direct link to Getting started") 1. **Install** it — see [Installation](https://docs.dashboards.kobana.com.br/en/en/cli/overview/installation.md). 2. **Authenticate** for Magic Dashboard and, if the organization has more than one workspace, pick the one to act on. See [Authentication](https://docs.dashboards.kobana.com.br/en/en/cli/overview/authentication.md). 3. **Make your first call**: ``` kobana dashboards data-sources list --fields "id,name,kind,status" ``` 4. **Explore the surface** — every command supports `--help`, and `kobana schema` introspects any endpoint's parameters and body without leaving the terminal. ## Next steps[​](#next-steps "Direct link to Next steps") * [Installation](https://docs.dashboards.kobana.com.br/en/en/cli/overview/installation.md) — Homebrew, prebuilt binaries, Nix, building from source. * [Authentication](https://docs.dashboards.kobana.com.br/en/en/cli/overview/authentication.md) — the `dashboards` token, workspace and environments. * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/usage/overview.md) — syntax, resources, examples. * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — `kobana schema` for parameters and request/response shapes. * [Global flags](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) — the flags every command accepts. * [Helpers](https://docs.dashboards.kobana.com.br/en/en/cli/usage/helpers.md) — `+verb` shortcuts for common workflows. * [Environment variables](https://docs.dashboards.kobana.com.br/en/en/cli/overview/environment-variables.md) — auth, config and logging. * [Exit codes](https://docs.dashboards.kobana.com.br/en/en/cli/overview/exit-codes.md) — process exit codes for scripting. --- # AI usage The organization's AI usage — builder and portal chat —: month to date, courtesy allowance, credit balance and daily consumption. | Command | HTTP | Description | | -------------- | ------------------ | ------------ | | `ai-usage get` | `GET /v1/ai_usage` | Get AI usage | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get AI usage kobana dashboards ai-usage get --params '{"days": 30}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/resources/usage.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # API keys The organization's API keys. `revoke` revokes a key for good (only a revoked key can be removed with `delete`), and `rotate` issues a successor and keeps the previous one working for a few days — the new secret shows up once, in the response. | Command | HTTP | Description | | ----------------- | ------------------------------- | ---------------------- | | `api-keys list` | `GET /v1/api_keys` | List API keys | | `api-keys create` | `POST /v1/api_keys` | Create API key | | `api-keys get` | `GET /v1/api_keys/{id}` | Get API key | | `api-keys update` | `PATCH /v1/api_keys/{id}` | Update API key | | `api-keys delete` | `DELETE /v1/api_keys/{id}` | Remove revoked API key | | `api-keys revoke` | `POST /v1/api_keys/{id}/revoke` | Revoke API key | | `api-keys rotate` | `POST /v1/api_keys/{id}/rotate` | Rotate API key | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List API keys kobana dashboards api-keys list \ --params '{"status": "active"}' \ --fields "id,name,prefix,status,expires_at" # Create API key kobana dashboards api-keys create \ --json '{"name": "Integração ERP", "expires_at": "2027-10-01T00:00:00Z"}' # Rotate API key kobana dashboards api-keys rotate \ --params '{"id": "API_KEY_ID"}' \ --json '{"grace_days": 7}' # Revoke API key kobana dashboards api-keys revoke --params '{"id": "API_KEY_ID"}' --dry-run ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Token identity](https://docs.dashboards.kobana.com.br/en/en/cli/resources/me.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Asset types The categories you organize the file library with (contract, bank slip, invoice...). An asset points at its type through `type_id`. | Command | HTTP | Description | | -------------------- | ----------------------------- | ----------------- | | `asset-types list` | `GET /v1/asset_types` | List asset types | | `asset-types create` | `POST /v1/asset_types` | Create asset type | | `asset-types get` | `GET /v1/asset_types/{id}` | Get asset type | | `asset-types update` | `PATCH /v1/asset_types/{id}` | Rename asset type | | `asset-types delete` | `DELETE /v1/asset_types/{id}` | Delete asset type | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List asset types kobana dashboards asset-types list # Create asset type kobana dashboards asset-types create --json '{"name": "Contratos"}' # Rename asset type kobana dashboards asset-types update \ --params '{"id": "ASSET_TYPE_ID"}' \ --json '{"name": "Contratos assinados"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Assets](https://docs.dashboards.kobana.com.br/en/en/cli/resources/assets.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Assets The workspace's file library — images, PDFs and documents the portal shows, public or restricted to a tenant. `download` returns the content; `presign` issues an upload URL straight to storage for files above the 2 MB request-body limit. | Command | HTTP | Description | | ----------------- | ------------------------------ | ----------------- | | `assets list` | `GET /v1/assets` | List assets | | `assets create` | `POST /v1/assets` | Create asset | | `assets get` | `GET /v1/assets/{id}` | Get asset | | `assets update` | `PATCH /v1/assets/{id}` | Update asset | | `assets delete` | `DELETE /v1/assets/{id}` | Delete asset | | `assets download` | `GET /v1/assets/{id}/download` | Download asset | | `assets presign` | `POST /v1/assets/presign` | Get an upload URL | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List assets kobana dashboards assets list \ --params '{"tenant_id": "TENANT_ID"}' \ --fields "id,name,kind,visibility,size_bytes" # Create asset kobana dashboards assets create \ --json '{"name": "contrato.pdf", "content_base64": "JVBERi0xLjQK...", "content_type": "application/pdf", "visibility": "restricted", "tenant_id": "TENANT_ID"}' # Download asset kobana dashboards assets download \ --params '{"id": "ASSET_ID"}' \ --output contrato.pdf # Get an upload URL kobana dashboards assets presign \ --json '{"filename": "video.mp4", "content_type": "video/mp4", "size": 52428800}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Asset types](https://docs.dashboards.kobana.com.br/en/en/cli/resources/asset-types.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Audit logs The record of who did what in the workspace, with the values before and after each change. `summary get` sums up the activity of the last hours: total, most frequent actions and latest records. | Command | HTTP | Description | | ------------------------ | ---------------------------- | ---------------------- | | `audit-logs list` | `GET /v1/audit_logs` | List audit logs | | `audit-logs get` | `GET /v1/audit_logs/{id}` | Get an audit log | | `audit-logs summary get` | `GET /v1/audit_logs/summary` | Audit activity summary | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List audit logs kobana dashboards audit-logs list \ --params '{"action": "update", "resource_type": "portal_user"}' \ --fields "id,user_email,action,resource_name,created_at" # Audit activity summary kobana dashboards audit-logs summary get --params '{"hours": 24}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Events](https://docs.dashboards.kobana.com.br/en/en/cli/resources/events.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Backups ZIP backups of the organization, with every workspace. `download` fetches the file; `restore` restores a backup into the calling workspace — it is destructive and asynchronous — and `cancel` stops a restore in progress. | Command | HTTP | Description | | ------------------ | ------------------------------- | --------------- | | `backups list` | `GET /v1/backups` | List backups | | `backups create` | `POST /v1/backups` | Request backup | | `backups get` | `GET /v1/backups/{id}` | Get backup | | `backups delete` | `DELETE /v1/backups/{id}` | Delete backup | | `backups cancel` | `POST /v1/backups/{id}/cancel` | Cancel restore | | `backups download` | `GET /v1/backups/{id}/download` | Download backup | | `backups restore` | `POST /v1/backups/restore` | Restore backup | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List backups kobana dashboards backups list \ --fields "id,type,status,file_size_bytes,created_at" # Request backup kobana dashboards backups create # Download backup kobana dashboards backups download \ --params '{"id": "BACKUP_ID"}' \ --output backup.zip # Restore backup kobana dashboards backups restore \ --json '{"backup_id": "BACKUP_ID"}' \ --dry-run ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Data purge](https://docs.dashboards.kobana.com.br/en/en/cli/resources/data-purges.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Portal builder The workspace's portal builder: the draft, the published versions and the theme. `get` returns the full state (including the `revision` that guards saving), `draft update` replaces the whole draft and `publish` puts it live as a new version. The `tools` commands edit the draft piece by piece — a page, a block, a field — and are the same ones the builder's AI chat uses. ## Draft, publishing and theme[​](#draft-publishing-and-theme "Direct link to Draft, publishing and theme") | Command | HTTP | Description | | ------------------------- | ---------------------------------- | ---------------------------------- | | `builder get` | `GET /v1/builder` | Get the portal builder | | `builder draft update` | `PUT /v1/builder/draft` | Save the portal draft | | `builder upload-og-image` | `POST /v1/builder/upload_og_image` | Upload the portal og:image | | `builder publish` | `POST /v1/builder/publish` | Publish the portal | | `builder encrypt-secret` | `POST /v1/builder/encrypt_secret` | Encrypt a block secret | | `builder theme update` | `PATCH /v1/builder/theme` | Update the portal theme colors | > The old commands `builder action-runs`, `form-submissions`, `secrets` and `og-image` were renamed and hidden from help; the old line still runs. ## Testing the draft[​](#testing-the-draft "Direct link to Testing the draft") They really run the action of a draft Action button or Form, flagged as `preview: true`. | Command | HTTP | Description | | --------------------- | ------------------------------ | -------------------------- | | `builder test-action` | `POST /v1/builder/test_action` | Test a draft action button | | `builder test-form` | `POST /v1/builder/test_form` | Test a draft form | ## Versions[​](#versions "Direct link to Versions") `versions restore` copies a version into the draft without touching what is live; `versions rollback` puts the version back live right away. | Command | HTTP | Description | | --------------------------- | --------------------------------------------- | -------------------------------- | | `builder versions get` | `GET /v1/builder/versions/{number}` | Get a published version | | `builder versions restore` | `POST /v1/builder/versions/{number}/restore` | Restore a version into the draft | | `builder versions rollback` | `POST /v1/builder/versions/{number}/rollback` | Roll back to a version | ## Tools — pages[​](#tools--pages "Direct link to Tools — pages") | Command | HTTP | Description | | ---------------------------------- | ------------------------------------ | ----------------------- | | `builder tools create-page create` | `POST /v1/builder/tools/create_page` | Create a page | | `builder tools delete-page create` | `POST /v1/builder/tools/delete_page` | Delete a page | | `builder tools get-page get` | `GET /v1/builder/tools/get_page` | Get a draft page | | `builder tools list-pages get` | `GET /v1/builder/tools/list_pages` | List the draft pages | | `builder tools move-page create` | `POST /v1/builder/tools/move_page` | Move a page in the menu | | `builder tools update-page create` | `POST /v1/builder/tools/update_page` | Update a page | ## Tools — blocks[​](#tools--blocks "Direct link to Tools — blocks") | Command | HTTP | Description | | --------------------------------------- | ------------------------------------------- | --------------------- | | `builder tools describe-block-type get` | `GET /v1/builder/tools/describe_block_type` | Describe a block type | | `builder tools duplicate-block create` | `POST /v1/builder/tools/duplicate_block` | Duplicate a block | | `builder tools insert-block create` | `POST /v1/builder/tools/insert_block` | Insert a block | | `builder tools list-actions get` | `GET /v1/builder/tools/list_actions` | List button actions | | `builder tools list-block-types get` | `GET /v1/builder/tools/list_block_types` | List block types | | `builder tools move-block create` | `POST /v1/builder/tools/move_block` | Move a block | | `builder tools remove-block create` | `POST /v1/builder/tools/remove_block` | Remove a block | | `builder tools update-block create` | `POST /v1/builder/tools/update_block` | Update a block | ## Tools — theme, files and entities[​](#tools--theme-files-and-entities "Direct link to Tools — theme, files and entities") | Command | HTTP | Description | | ----------------------------------------------- | --------------------------------------------------- | ------------------------------------- | | `builder tools get-theme get` | `GET /v1/builder/tools/get_theme` | Get the theme colors | | `builder tools preview-portal-user-mapping get` | `GET /v1/builder/tools/preview_portal_user_mapping` | Preview the portal user mapping | | `builder tools read-asset get` | `GET /v1/builder/tools/read_asset` | Read the content of a file | | `builder tools register-entity create` | `POST /v1/builder/tools/register_entity` | Register an entity from a data source | | `builder tools rename-entity-fields create` | `POST /v1/builder/tools/rename_entity_fields` | Rename the fields of an entity | | `builder tools save-computed-field create` | `POST /v1/builder/tools/save_computed_field` | Save a computed field | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get the portal builder kobana dashboards builder get --fields "draft,live_version,versions" # List the draft pages kobana dashboards builder tools list-pages get # Create a page kobana dashboards builder tools create-page create \ --json '{"name": "Faturas", "template": "list", "entity": "faturas"}' # Insert a block kobana dashboards builder tools insert-block create \ --json '{"page_id": "PAGE_ID", "type": "Text", "props": {"text": "Bem-vindo!"}}' # Publish the portal kobana dashboards builder publish \ --json '{"revision": 12, "pages": [], "note": "Nova página de faturas"}' \ --dry-run # Roll back to a version kobana dashboards builder versions rollback --params '{"number": 3}' --dry-run ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Portal settings](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-settings.md) * [Entities](https://docs.dashboards.kobana.com.br/en/en/cli/resources/entities.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Checklists The published portal's Task list blocks. Tasks are written in the builder; progress belongs to each tenant and is what `progress get` / `progress update` / `progress delete` read and change. The `progress file` commands handle the file a tenant uploads for a Request task. | Command | HTTP | Description | | --------------------------------- | ------------------------------------------ | ---------------------- | | `checklists list` | `GET /v1/checklists` | List checklists | | `checklists get` | `GET /v1/checklists/{id}` | Get checklist | | `checklists progress get` | `GET /v1/checklists/{id}/progress` | Get tenant progress | | `checklists progress update` | `PUT /v1/checklists/{id}/progress` | Update tenant progress | | `checklists progress delete` | `DELETE /v1/checklists/{id}/progress` | Reset tenant progress | | `checklists progress file get` | `GET /v1/checklists/{id}/progress/file` | Download task file | | `checklists progress file create` | `POST /v1/checklists/{id}/progress/file` | Upload task file | | `checklists progress file delete` | `DELETE /v1/checklists/{id}/progress/file` | Remove task file | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List checklists kobana dashboards checklists list --fields "id,title,page_path" # Get tenant progress kobana dashboards checklists progress get \ --params '{"id": "CHECKLIST_ID", "tenant_id": "TENANT_ID"}' # Update tenant progress kobana dashboards checklists progress update \ --params '{"id": "CHECKLIST_ID"}' \ --json '{"tenant_id": "TENANT_ID", "task_ids": ["TASK_ID"], "status": "done"}' # Download task file kobana dashboards checklists progress file get \ --params '{"id": "CHECKLIST_ID", "tenant_id": "TENANT_ID", "task_id": "TASK_ID"}' \ --output arquivo.pdf ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Comments](https://docs.dashboards.kobana.com.br/en/en/cli/resources/comments.md) * [Portal builder](https://docs.dashboards.kobana.com.br/en/en/cli/resources/builder.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Comments The messages of the portal's Comments block, exchanged between the tenant and your team. An `internal` comment is visible only in the dashboard. | Command | HTTP | Description | | ----------------- | -------------------------- | -------------- | | `comments list` | `GET /v1/comments` | List comments | | `comments create` | `POST /v1/comments` | Create comment | | `comments get` | `GET /v1/comments/{id}` | Get comment | | `comments delete` | `DELETE /v1/comments/{id}` | Delete comment | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List comments kobana dashboards comments list \ --params '{"tenant_id": "TENANT_ID"}' \ --fields "id,author_name,body,created_at" # Create comment kobana dashboards comments create \ --json '{"tenant_id": "TENANT_ID", "body": "Recebemos o seu documento."}' # Delete comment kobana dashboards comments delete --params '{"id": "COMMENT_ID"}' --dry-run ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Checklists](https://docs.dashboards.kobana.com.br/en/en/cli/resources/checklists.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Members The people on your team who use the dashboard (the dashboard users). `create` sends the invitation and `resend` sends it again; `update` creates or updates a member by e-mail or id. `workspaces get` / `workspaces update` read and set the workspaces the member can access. | Command | HTTP | Description | | ----------------------------------- | ----------------------------------------- | --------------------------------- | | `dashboard-users list` | `GET /v1/dashboard_users` | List dashboard users | | `dashboard-users create` | `POST /v1/dashboard_users` | Invite dashboard user | | `dashboard-users update` | `PUT /v1/dashboard_users` | Create or update a dashboard user | | `dashboard-users get` | `GET /v1/dashboard_users/{id}` | Get dashboard user | | `dashboard-users delete` | `DELETE /v1/dashboard_users/{id}` | Remove dashboard user | | `dashboard-users resend` | `POST /v1/dashboard_users/{id}/resend` | Resend member invitation | | `dashboard-users workspaces get` | `GET /v1/dashboard_users/{id}/workspaces` | Get member workspace access | | `dashboard-users workspaces update` | `PUT /v1/dashboard_users/{id}/workspaces` | Set member workspace access | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List dashboard users kobana dashboards dashboard-users list --fields "id,email,name,status,roles" # Invite dashboard user kobana dashboards dashboard-users create \ --json '{"email": "joao@example.com", "name": "João", "role_ids": ["ROLE_ID"]}' # Get member workspace access kobana dashboards dashboard-users workspaces get \ --params '{"id": "DASHBOARD_USER_ID"}' # Set member workspace access kobana dashboards dashboard-users workspaces update \ --params '{"id": "DASHBOARD_USER_ID"}' \ --json '{"workspace_ids": ["WORKSPACE_ID"]}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Roles](https://docs.dashboards.kobana.com.br/en/en/cli/resources/team-roles.md) * [Permissions](https://docs.dashboards.kobana.com.br/en/en/cli/resources/permissions.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Data purge The permanent purge of the organization's data across **every** workspace. `list` counts what can be deleted, `delete` deletes it — it is irreversible and only accepts machine tokens with the `delete` level; a person purges from the dashboard — and `get` tracks the job. | Command | HTTP | Description | | -------------------- | -------------------------- | ----------------------- | | `data-purges list` | `GET /v1/data_purges` | Count purgeable data | | `data-purges delete` | `DELETE /v1/data_purges` | Purge organization data | | `data-purges get` | `GET /v1/data_purges/{id}` | Get purge job | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Count purgeable data kobana dashboards data-purges list # Purge organization data kobana dashboards data-purges delete \ --json '{"resources": ["usage_history"], "confirm": "CONFIRMACAO"}' \ --dry-run # Get purge job kobana dashboards data-purges get --params '{"id": "PURGE_ID"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Backups](https://docs.dashboards.kobana.com.br/en/en/cli/resources/backups.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # 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**. `create` makes an OpenAPI, MCP or database source, according to the `kind` in the body (`catalog create` connects a Kobana product), and `test` 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 create` | `POST /v1/data_sources` | Create a data source | | `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 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 openapi analyze` | `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` | `POST /v1/data_sources/test` | Test a connection before saving | > The old commands `data-sources openapi create`, `mcp` and `database` were replaced by `data-sources create` with `kind` and hidden from help; the old line still runs. ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) 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 OpenAPI data source kobana dashboards data-sources create \ --json '{"kind": "openapi", "name": "ERP", "base_url": "https://api.example.com", "spec": "openapi: 3.0.0 ...", "auth": {"kind": "bearer"}, "credentials": {"token": "TOKEN"}}' # Create an MCP data source kobana dashboards data-sources create \ --json '{"kind": "mcp", "name": "CRM", "url": "https://mcp.example.com/mcp", "transport": "http"}' # Create a database data source kobana dashboards data-sources create \ --json '{"kind": "database", "engine": "postgres", "name": "Analytics", "host": "db.example.com", "port": 5432, "database": "analytics", "username": "readonly", "password": "SENHA", "ssl": true}' # 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[​](#next-steps "Direct link to Next steps") * [Entities](https://docs.dashboards.kobana.com.br/en/en/cli/resources/entities.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Email layouts The HTML frame (header, footer, styles) e-mail templates are placed into. `init-defaults` makes sure a default layout exists, without overwriting any. | Command | HTTP | Description | | ----------------------------- | -------------------------------------- | --------------------- | | `email-layouts list` | `GET /v1/email_layouts` | List email layouts | | `email-layouts create` | `POST /v1/email_layouts` | Create email layout | | `email-layouts get` | `GET /v1/email_layouts/{id}` | Get email layout | | `email-layouts update` | `PATCH /v1/email_layouts/{id}` | Update email layout | | `email-layouts delete` | `DELETE /v1/email_layouts/{id}` | Delete email layout | | `email-layouts init-defaults` | `POST /v1/email_layouts/init_defaults` | Create default layout | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List email layouts kobana dashboards email-layouts list --fields "id,name,is_default,is_active" # Create default layout kobana dashboards email-layouts init-defaults # Update email layout kobana dashboards email-layouts update \ --params '{"id": "LAYOUT_ID"}' \ --json '{"is_default": true}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Email templates](https://docs.dashboards.kobana.com.br/en/en/cli/resources/email-templates.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Email templates The content of each e-mail the platform sends (portal invitation, API key expiring...). `duplicate` copies a template as a draft, `init-defaults` restores the default templates (overwriting yours), and `preview get` / `preview create` render a template without sending anything. | Command | HTTP | Description | | -------------------------------- | ----------------------------------------- | ------------------------------ | | `email-templates list` | `GET /v1/email_templates` | List email templates | | `email-templates create` | `POST /v1/email_templates` | Create email template | | `email-templates get` | `GET /v1/email_templates/{id}` | Get email template | | `email-templates update` | `PATCH /v1/email_templates/{id}` | Update email template | | `email-templates delete` | `DELETE /v1/email_templates/{id}` | Delete email template | | `email-templates duplicate` | `POST /v1/email_templates/{id}/duplicate` | Duplicate email template | | `email-templates init-defaults` | `POST /v1/email_templates/init_defaults` | Reset templates to defaults | | `email-templates preview get` | `GET /v1/email_templates/{id}/preview` | Preview email template | | `email-templates preview create` | `POST /v1/email_templates/{id}/preview` | Render template with variables | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List email templates kobana dashboards email-templates list --fields "id,name,type,is_active" # Preview email template kobana dashboards email-templates preview get --params '{"id": "TEMPLATE_ID"}' # Render template with variables kobana dashboards email-templates preview create \ --params '{"id": "TEMPLATE_ID"}' \ --json '{"variables": {"name": "Ana"}}' # Duplicate email template kobana dashboards email-templates duplicate \ --params '{"id": "TEMPLATE_ID"}' \ --json '{"new_name": "Convite (versão B)"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Email layouts](https://docs.dashboards.kobana.com.br/en/en/cli/resources/email-layouts.md) * [Notifications](https://docs.dashboards.kobana.com.br/en/en/cli/resources/notifications.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Entities The record sets the portal's blocks read — each entity comes from an operation of a data source, a SQL query, a relation (`join`) between two others, or records you send. `records get` queries the synced records, `records create` and `records import` feed an entity with no connector, `aggregate` computes what KPIs and charts show, and `sync` / `tenant-syncs` trigger and track the sync. | Command | HTTP | Description | | ------------------------------ | ------------------------------------------- | ----------------------- | | `entities list` | `GET /v1/entities` | List entities | | `entities create` | `POST /v1/entities` | Create entity | | `entities get` | `GET /v1/entities/{id}` | Get entity | | `entities update` | `PATCH /v1/entities/{id}` | Update entity | | `entities delete` | `DELETE /v1/entities/{id}` | Delete entity | | `entities aggregate` | `GET /v1/entities/{id}/aggregate` | Aggregate records | | `entities usage` | `GET /v1/entities/{id}/usage` | Entity usage | | `entities join create` | `POST /v1/entities/join` | Create join entity | | `entities join update` | `PUT /v1/entities/{id}/join` | Update relation | | `entities join preview` | `POST /v1/entities/join/preview` | Preview a relation | | `entities logs list` | `GET /v1/entities/{id}/logs` | Sync log | | `entities logs get` | `GET /v1/entities/{id}/logs/{log_id}` | Get sync call | | `entities preview` | `POST /v1/entities/preview` | Preview a source | | `entities records list` | `GET /v1/entities/{id}/records` | Query records | | `entities records get` | `GET /v1/entities/{id}/records/{record_id}` | Get record | | `entities records create` | `POST /v1/entities/{id}/records` | Send records | | `entities records delete` | `DELETE /v1/entities/{id}/records` | Clear records | | `entities records import` | `POST /v1/entities/{id}/records/import` | Import records from CSV | | `entities sync get` | `GET /v1/entities/{id}/sync` | Sync state | | `entities sync create` | `POST /v1/entities/{id}/sync` | Sync entity | | `entities tenant-syncs list` | `GET /v1/entities/{id}/tenant_syncs` | Tenant syncs | | `entities tenant-syncs create` | `POST /v1/entities/{id}/tenant_syncs` | Sync one tenant | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List entities kobana dashboards entities list --fields "id,key,name,sync_mode" # Query records kobana dashboards entities records list \ --params '{"id": "ENTITY_ID", "limit": 50, "sort": "due_date:desc"}' # Aggregate records kobana dashboards entities aggregate \ --params '{"id": "ENTITY_ID", "op": "sum", "field": "valor", "group_by": "status"}' # Send records kobana dashboards entities records create \ --params '{"id": "ENTITY_ID"}' \ --json '{"records": [{"id": "42", "nome": "Ana Souza", "valor": 1250.5}], "mode": "upsert"}' # Sync entity kobana dashboards entities sync create --params '{"id": "ENTITY_ID"}' # Sync state kobana dashboards entities sync get --params '{"id": "ENTITY_ID"}' # Clear records kobana dashboards entities records delete \ --params '{"id": "ENTITY_ID"}' \ --dry-run ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Data sources](https://docs.dashboards.kobana.com.br/en/en/cli/resources/data-sources.md) * [Portal user mapping](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-user-mappings.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Events The record of the workspace's events — the same ones webhooks deliver — filterable by type, resource and period. | Command | HTTP | Description | | ------------- | --------------------- | ------------ | | `events list` | `GET /v1/events` | List events | | `events get` | `GET /v1/events/{id}` | Get an event | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List events kobana dashboards events list \ --params '{"resource_type": "portal_user", "date_from": "2026-10-01"}' \ --fields "id,type,resource_id,created_at" # Get an event kobana dashboards events get --params '{"id": "EVENT_ID"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Webhooks](https://docs.dashboards.kobana.com.br/en/en/cli/resources/webhooks.md) * [Audit logs](https://docs.dashboards.kobana.com.br/en/en/cli/resources/audit-logs.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Exports Asynchronous exports of workspace data (portal users, for now) as CSV, XLSX or JSON. `create` requests the export, `get` tracks its status and `download` fetches the file once it is ready. | Command | HTTP | Description | | ------------------ | ------------------------------- | -------------------- | | `exports list` | `GET /v1/exports` | List exports | | `exports create` | `POST /v1/exports` | Request export | | `exports get` | `GET /v1/exports/{id}` | Get export | | `exports download` | `GET /v1/exports/{id}/download` | Download export file | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Request export kobana dashboards exports create \ --json '{"resource_type": "portal_users", "format": "csv"}' # Get export kobana dashboards exports get \ --params '{"id": "EXPORT_ID"}' \ --fields "id,status,total_rows" # Download export file kobana dashboards exports download \ --params '{"id": "EXPORT_ID"}' \ --output usuarios.csv ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Imports](https://docs.dashboards.kobana.com.br/en/en/cli/resources/imports.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Imports Asynchronous CSV imports into the workspace (portal users, for now). The file goes base64-encoded in the body; `get` returns the progress and the row-by-row errors. | Command | HTTP | Description | | ---------------- | ---------------------- | ---------------------------- | | `imports list` | `GET /v1/imports` | List imports | | `imports create` | `POST /v1/imports` | Import portal users from CSV | | `imports get` | `GET /v1/imports/{id}` | Get import | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Import portal users from CSV kobana dashboards imports create \ --json '{"resource_type": "portal_users", "file_name": "usuarios.csv", "content_base64": "ZW1haWwsdGVuYW50X2lkCg=="}' # Get import kobana dashboards imports get \ --params '{"id": "IMPORT_ID"}' \ --fields "id,status,success_count,error_count,errors" ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Exports](https://docs.dashboards.kobana.com.br/en/en/cli/resources/exports.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Maintenance One-off maintenance routines. `uppercase-names create` upper-cases the name of every contact linked to a portal user in the workspace — with no way back, because the previous spelling is not kept. | Command | HTTP | Description | | ------------------------------------ | -------------------------------------- | ------------------------ | | `maintenance uppercase-names create` | `POST /v1/maintenance/uppercase_names` | Upper-case contact names | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Upper-case contact names kobana dashboards maintenance uppercase-names create --dry-run ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Settings](https://docs.dashboards.kobana.com.br/en/en/cli/resources/settings.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Token identity Who is behind `KOBANA_TOKEN`: the person (or `null`, for a machine token), the organization, the scopes and the expiry. It is the quickest way to check that the credential is right. | Command | HTTP | Description | | -------- | ------------ | ---------------------- | | `me get` | `GET /v1/me` | Current token identity | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Current token identity kobana dashboards me get ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Organization](https://docs.dashboards.kobana.com.br/en/en/cli/resources/organization.md) * [API keys](https://docs.dashboards.kobana.com.br/en/en/cli/resources/api-keys.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Notifications The notifications the platform sends by e-mail (or in-app and by webhook), with each one's status. `send` sends a scheduled notification now or sends it again; `stats get` returns counts and delivery and read rates. | Command | HTTP | Description | | ------------------------- | ---------------------------------- | ----------------------- | | `notifications list` | `GET /v1/notifications` | List notifications | | `notifications create` | `POST /v1/notifications` | Create notification | | `notifications send` | `POST /v1/notifications/{id}/send` | Send notification | | `notifications stats get` | `GET /v1/notifications/stats` | Notification statistics | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List notifications kobana dashboards notifications list \ --params '{"status": "failed"}' \ --fields "id,type,recipient,status,failure_reason" # Send notification kobana dashboards notifications send --params '{"id": "NOTIFICATION_ID"}' # Notification statistics kobana dashboards notifications stats get --params '{"days": 30}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Email templates](https://docs.dashboards.kobana.com.br/en/en/cli/resources/email-templates.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Organization The organization the token belongs to — there is no `id` to pass; it comes from the token itself. | Command | HTTP | Description | | --------------------- | ------------------------ | --------------------------- | | `organization get` | `GET /v1/organization` | Get current organization | | `organization update` | `PATCH /v1/organization` | Update current organization | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get current organization kobana dashboards organization get # Update current organization kobana dashboards organization update \ --json '{"custom_metadata": {"crm_id": "crm-123"}}' ``` Only `addresses` and `custom_metadata` are editable. Name, e-mail and phone mirror the Kobana Account: the sync with the Kobana Account writes them, and a body that carries them answers 200 without changing them. Commercial fields (such as `bypass_subscription` and `courtesy`) are set by Kobana and answer 403. ## Next steps[​](#next-steps "Direct link to Next steps") * [Settings](https://docs.dashboards.kobana.com.br/en/en/cli/resources/settings.md) * [Token identity](https://docs.dashboards.kobana.com.br/en/en/cli/resources/me.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Resources Every `dashboards` resource below is generated from the same OpenAPI spec documented in the [API Reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) — the CLI calls exactly the same endpoints, so filtering, validation and permissions are identical. Fall back on [schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) whenever a command's exact parameters are not obvious from the examples on these pages. ``` kobana dashboards [flags] ``` ## How to read these pages[​](#how-to-read-these-pages "Direct link to How to read these pages") `--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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. Almost every resource acts on a workspace: see [Authentication](https://docs.dashboards.kobana.com.br/en/en/cli/overview/authentication.md) for how to choose which. Nested names become words: `entities records list` calls `GET /v1/entities/{id}/records`. The HTTP column on each page shows the real path — the only place the API version appears. ## The catalogue[​](#the-catalogue "Direct link to The catalogue") | Resource | Command | Methods | | -------------------------------------------------------------------------------------------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [Data sources](https://docs.dashboards.kobana.com.br/en/en/cli/resources/data-sources.md) | `data-sources` | list, create, test, get, update, delete, authorize, schedule, spec, sync, catalog list, catalog create, logs list, logs get, openapi analyze, operations update | | [Entities](https://docs.dashboards.kobana.com.br/en/en/cli/resources/entities.md) | `entities` | list, create, get, update, delete, aggregate, usage, join create, join update, join preview, logs list, logs get, preview, records list, records get, records create, records delete, records import, sync get, sync create, tenant-syncs list, tenant-syncs create | | [Workspaces](https://docs.dashboards.kobana.com.br/en/en/cli/resources/workspaces.md) | `workspaces` | list, create, get, update, delete, export, usage, import | | [Portal builder](https://docs.dashboards.kobana.com.br/en/en/cli/resources/builder.md) | `builder` | get, encrypt-secret, draft update, publish, test-action, test-form, theme update, upload-og-image, tools create-page create, tools delete-page create, tools describe-block-type get, tools duplicate-block create, tools get-page get, tools get-theme get, tools insert-block create, tools list-actions get, tools list-block-types get, tools list-pages get, tools move-block create, tools move-page create, tools preview-portal-user-mapping get, tools read-asset get, tools register-entity create, tools remove-block create, tools rename-entity-fields create, tools save-computed-field create, tools update-block create, tools update-page create, versions get, versions restore, versions rollback | | [Portal settings](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-settings.md) | `portal-settings` | get, update, domain update, domain check-slug get, logo create, logo delete, verify-sender | | [Custom domains](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-custom-domains.md) | `portal-custom-domains` | list, create, delete, dns-status, verify | | [OIDC providers](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-oauth-providers.md) | `portal-oauth-providers` | list, create, update, delete, test | | [Portal users](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-users.md) | `portal-users` | list, create, get, update, delete, email-preview, resend, activity get, activity timeline list, invite | | [Portal user mapping](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-user-mappings.md) | `portal-user-mappings` | get, update, delete | | [Checklists](https://docs.dashboards.kobana.com.br/en/en/cli/resources/checklists.md) | `checklists` | list, get, progress get, progress update, progress delete, progress file get, progress file create, progress file delete | | [Comments](https://docs.dashboards.kobana.com.br/en/en/cli/resources/comments.md) | `comments` | list, create, get, delete | | [Assets](https://docs.dashboards.kobana.com.br/en/en/cli/resources/assets.md) | `assets` | list, create, get, update, delete, download, presign | | [Asset types](https://docs.dashboards.kobana.com.br/en/en/cli/resources/asset-types.md) | `asset-types` | list, create, get, update, delete | | [Email templates](https://docs.dashboards.kobana.com.br/en/en/cli/resources/email-templates.md) | `email-templates` | list, create, get, update, delete, duplicate, init-defaults, preview get, preview create | | [Email layouts](https://docs.dashboards.kobana.com.br/en/en/cli/resources/email-layouts.md) | `email-layouts` | list, create, get, update, delete, init-defaults | | [Notifications](https://docs.dashboards.kobana.com.br/en/en/cli/resources/notifications.md) | `notifications` | list, create, send, stats get | | [Webhooks](https://docs.dashboards.kobana.com.br/en/en/cli/resources/webhooks.md) | `webhooks` | list, create, get, update, delete, rotate-secret, test, deliveries retry, deliveries list | | [Webhook deliveries](https://docs.dashboards.kobana.com.br/en/en/cli/resources/webhook-deliveries.md) | `webhook-deliveries` | list, get | | [Events](https://docs.dashboards.kobana.com.br/en/en/cli/resources/events.md) | `events` | list, get | | [API keys](https://docs.dashboards.kobana.com.br/en/en/cli/resources/api-keys.md) | `api-keys` | list, create, get, update, delete, revoke, rotate | | [Members](https://docs.dashboards.kobana.com.br/en/en/cli/resources/dashboard-users.md) | `dashboard-users` | list, create, update, get, delete, resend, workspaces get, workspaces update | | [Roles](https://docs.dashboards.kobana.com.br/en/en/cli/resources/team-roles.md) | `team-roles` | list, create, update, get, delete | | [Permissions](https://docs.dashboards.kobana.com.br/en/en/cli/resources/permissions.md) | `permissions` | list | | [Organization](https://docs.dashboards.kobana.com.br/en/en/cli/resources/organization.md) | `organization` | get, update | | [Settings](https://docs.dashboards.kobana.com.br/en/en/cli/resources/settings.md) | `settings` | get, update | | [Token identity](https://docs.dashboards.kobana.com.br/en/en/cli/resources/me.md) | `me` | get | | [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/resources/usage.md) | `usage` | get | | [AI usage](https://docs.dashboards.kobana.com.br/en/en/cli/resources/ai-usage.md) | `ai-usage` | get | | [Rate limits](https://docs.dashboards.kobana.com.br/en/en/cli/resources/rate-limits.md) | `rate-limits` | get | | [Audit logs](https://docs.dashboards.kobana.com.br/en/en/cli/resources/audit-logs.md) | `audit-logs` | list, get, summary get | | [Exports](https://docs.dashboards.kobana.com.br/en/en/cli/resources/exports.md) | `exports` | list, create, get, download | | [Imports](https://docs.dashboards.kobana.com.br/en/en/cli/resources/imports.md) | `imports` | list, create, get | | [Backups](https://docs.dashboards.kobana.com.br/en/en/cli/resources/backups.md) | `backups` | list, create, get, delete, cancel, download, restore | | [Data purge](https://docs.dashboards.kobana.com.br/en/en/cli/resources/data-purges.md) | `data-purges` | list, delete, get | | [Maintenance](https://docs.dashboards.kobana.com.br/en/en/cli/resources/maintenance.md) | `maintenance` | uppercase-names create | --- # Permissions The catalog of permissions a role can grant, grouped by area. It is read-only: use its keys in `team-roles create`. | Command | HTTP | Description | | ------------------ | --------------------- | ---------------- | | `permissions list` | `GET /v1/permissions` | List permissions | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List permissions kobana dashboards permissions list --output-format table ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Roles](https://docs.dashboards.kobana.com.br/en/en/cli/resources/team-roles.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Custom domains Your company's own domains (such as `portal.yourcompany.com`) pointed at the workspace's portal. `dns-status` checks the required CNAMEs without changing anything; `verify` checks DNS and provisions the domain (certificate and CDN) once it is ready. | Command | HTTP | Description | | ---------------------------------- | ----------------------------------------------- | ---------------------------------- | | `portal-custom-domains list` | `GET /v1/portal_custom_domains` | List custom domains | | `portal-custom-domains create` | `POST /v1/portal_custom_domains` | Add custom domain | | `portal-custom-domains delete` | `DELETE /v1/portal_custom_domains/{id}` | Delete custom domain | | `portal-custom-domains dns-status` | `GET /v1/portal_custom_domains/{id}/dns_status` | Check custom domain DNS | | `portal-custom-domains verify` | `POST /v1/portal_custom_domains/{id}/verify` | Verify and provision custom domain | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List custom domains kobana dashboards portal-custom-domains list --fields "id,hostname,status" # Add custom domain kobana dashboards portal-custom-domains create \ --json '{"hostname": "portal.example.com"}' # Check custom domain DNS kobana dashboards portal-custom-domains dns-status \ --params '{"id": "DOMAIN_ID"}' # Verify and provision custom domain kobana dashboards portal-custom-domains verify --params '{"id": "DOMAIN_ID"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Portal settings](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-settings.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # OIDC providers OpenID Connect providers portal users sign in with ("Sign in with..."). `test` fetches the issuer's discovery document to validate the URL before the provider is saved. | Command | HTTP | Description | | ------------------------------- | ---------------------------------------- | -------------------- | | `portal-oauth-providers list` | `GET /v1/portal_oauth_providers` | List OIDC providers | | `portal-oauth-providers create` | `POST /v1/portal_oauth_providers` | Add OIDC provider | | `portal-oauth-providers update` | `PATCH /v1/portal_oauth_providers/{id}` | Update OIDC provider | | `portal-oauth-providers delete` | `DELETE /v1/portal_oauth_providers/{id}` | Delete OIDC provider | | `portal-oauth-providers test` | `POST /v1/portal_oauth_providers/test` | Test OIDC issuer | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List OIDC providers kobana dashboards portal-oauth-providers list # Test OIDC issuer kobana dashboards portal-oauth-providers test \ --json '{"issuer_url": "https://accounts.google.com"}' # Add OIDC provider kobana dashboards portal-oauth-providers create \ --json '{"name": "Google", "issuer_url": "https://accounts.google.com", "client_id": "CLIENT_ID", "client_secret": "CLIENT_SECRET"}' # Update OIDC provider kobana dashboards portal-oauth-providers update \ --params '{"id": "PROVIDER_ID"}' \ --json '{"enabled": false}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Portal settings](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-settings.md) * [Portal users](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-users.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Portal settings The settings of the workspace's portal: name, colors, sign-in, SSO, notifications and security headers. `domain update` sets the portal's address on the platform (and `domain check-slug get` says whether it is free), `logo create` / `logo delete` change the logo and favicon, and `verify-sender` verifies the e-mail sender in AWS SES. | Command | HTTP | Description | | --------------------------------------- | ------------------------------------------- | -------------------------------------- | | `portal-settings get` | `GET /v1/portal_settings` | Get portal settings | | `portal-settings update` | `PATCH /v1/portal_settings` | Update portal settings | | `portal-settings domain update` | `PATCH /v1/portal_settings/domain` | Set portal address | | `portal-settings domain check-slug get` | `GET /v1/portal_settings/domain/check_slug` | Check address availability | | `portal-settings logo create` | `POST /v1/portal_settings/logo` | Upload portal image | | `portal-settings logo delete` | `DELETE /v1/portal_settings/logo` | Delete portal image | | `portal-settings verify-sender` | `POST /v1/portal_settings/verify_sender` | Verify the notifications sender e-mail | > The old command `portal-settings sender-identity` was renamed to `verify-sender` and hidden from help; the old line still runs. ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get portal settings kobana dashboards portal-settings get \ --fields "company_name,title,portal_slug,portal_domain" # Update portal settings kobana dashboards portal-settings update \ --json '{"company_name": "Aurora", "title": "Portal do cliente"}' # Check address availability kobana dashboards portal-settings domain check-slug get \ --params '{"slug": "aurora", "domain": "DOMINIO"}' # Set portal address kobana dashboards portal-settings domain update \ --json '{"slug": "aurora", "domain": "DOMINIO"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Custom domains](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-custom-domains.md) * [OIDC providers](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-oauth-providers.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Portal user mapping The entity that feeds the portal users: each of its records becomes a user, by e-mail, with the tenant taken from a field. `update` replaces the mapping and syncs right away; `delete` stops syncing but keeps the users already created. | Command | HTTP | Description | | ----------------------------- | --------------------------------- | -------------------------- | | `portal-user-mappings get` | `GET /v1/portal_user_mappings` | Get portal user mapping | | `portal-user-mappings update` | `PUT /v1/portal_user_mappings` | Map entity to portal users | | `portal-user-mappings delete` | `DELETE /v1/portal_user_mappings` | Remove portal user mapping | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get portal user mapping kobana dashboards portal-user-mappings get # Map entity to portal users kobana dashboards portal-user-mappings update \ --json '{"entity_type_id": "ENTITY_ID", "tenant_id_field_key": "cnpj", "email_field_key": "email", "name_field_key": "nome"}' # Remove portal user mapping kobana dashboards portal-user-mappings delete --dry-run ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Portal users](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-users.md) * [Entities](https://docs.dashboards.kobana.com.br/en/en/cli/resources/entities.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Portal users The people who sign in to the portal on behalf of a tenant (the `tenant_id`). `create` invites a user (`invite` is the same route under a verb name), `resend` sends the invitation or verification again, `email-preview` shows the e-mail without sending it, and `activity get` / `activity timeline list` return sign-ins and visited pages. | Command | HTTP | Description | | ------------------------------------- | --------------------------------------------- | --------------------------------------- | | `portal-users list` | `GET /v1/portal_users` | List portal users | | `portal-users create` | `POST /v1/portal_users` | Create (invite) portal user | | `portal-users get` | `GET /v1/portal_users/{id}` | Get portal user | | `portal-users update` | `PATCH /v1/portal_users/{id}` | Update portal user | | `portal-users delete` | `DELETE /v1/portal_users/{id}` | Delete portal user | | `portal-users email-preview` | `GET /v1/portal_users/{id}/email-preview` | Preview portal user email | | `portal-users resend` | `POST /v1/portal_users/{id}/resend` | Resend invitation or verification email | | `portal-users activity get` | `GET /v1/portal_users/{id}/activity` | Get portal user activity | | `portal-users activity timeline list` | `GET /v1/portal_users/{id}/activity/timeline` | List portal user activity timeline | | `portal-users invite` | `POST /v1/portal_users/invite` | Invite portal user | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List portal users kobana dashboards portal-users list \ --params '{"status": "active", "per_page": 50}' \ --fields "id,email,tenant_id,last_login_at" # Create (invite) portal user kobana dashboards portal-users create \ --json '{"email": "ana@example.com", "tenant_id": "12345678000190"}' # Resend invitation or verification email kobana dashboards portal-users resend --params '{"id": "PORTAL_USER_ID"}' # Get portal user activity kobana dashboards portal-users activity get \ --params '{"id": "PORTAL_USER_ID", "days": 30}' # Update portal user kobana dashboards portal-users update \ --params '{"id": "PORTAL_USER_ID"}' \ --json '{"status": "suspended"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Portal user mapping](https://docs.dashboards.kobana.com.br/en/en/cli/resources/portal-user-mappings.md) * [Exports](https://docs.dashboards.kobana.com.br/en/en/cli/resources/exports.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Rate limits The rate limits that apply to the organization, and whether it has its own configuration instead of the defaults. | Command | HTTP | Description | | ----------------- | --------------------- | --------------- | | `rate-limits get` | `GET /v1/rate_limits` | Get rate limits | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get rate limits kobana dashboards rate-limits get ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/resources/usage.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Settings The organization's general settings: name, support e-mail, time zone and the record rules (allow creating customers and portal users, editing e-mails and documents, upper-case names). | Command | HTTP | Description | | ----------------- | ------------------ | ---------------------------- | | `settings get` | `GET /v1/settings` | Get organization settings | | `settings update` | `PUT /v1/settings` | Update organization settings | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get organization settings kobana dashboards settings get # Update organization settings kobana dashboards settings update \ --json '{"timezone": "America/Sao_Paulo", "support_email": "suporte@example.com"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Organization](https://docs.dashboards.kobana.com.br/en/en/cli/resources/organization.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Roles The team roles and the permissions each one grants members. `update` creates or updates a role by `slug` or id; the available permissions come from `permissions list`. | Command | HTTP | Description | | ------------------- | ---------------------------- | ---------------------------- | | `team-roles list` | `GET /v1/team_roles` | List team roles | | `team-roles create` | `POST /v1/team_roles` | Create custom role | | `team-roles update` | `PUT /v1/team_roles` | Create or update a team role | | `team-roles get` | `GET /v1/team_roles/{id}` | Get role | | `team-roles delete` | `DELETE /v1/team_roles/{id}` | Remove role | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List team roles kobana dashboards team-roles list --fields "id,name,slug,is_system,users_count" # Create custom role kobana dashboards team-roles create \ --json '{"name": "Integrações", "slug": "integrations_manager", "permissions": ["integrations.list", "integrations.show", "integrations.update"]}' # Get role kobana dashboards team-roles get --params '{"id": "ROLE_ID"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Permissions](https://docs.dashboards.kobana.com.br/en/en/cli/resources/permissions.md) * [Members](https://docs.dashboards.kobana.com.br/en/en/cli/resources/dashboard-users.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Usage The organization's platform usage in the period — the metrics of the dashboard's **Usage** screen. | Command | HTTP | Description | | ----------- | --------------- | ------------------ | | `usage get` | `GET /v1/usage` | Get platform usage | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # Get platform usage kobana dashboards usage get ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [AI usage](https://docs.dashboards.kobana.com.br/en/en/cli/resources/ai-usage.md) * [Rate limits](https://docs.dashboards.kobana.com.br/en/en/cli/resources/rate-limits.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Webhook deliveries The delivery log of every webhook endpoint in the workspace, with request, response and attempts. To retry a delivery, use `webhooks deliveries retry`. | Command | HTTP | Description | | ------------------------- | --------------------------------- | ----------------------- | | `webhook-deliveries list` | `GET /v1/webhook_deliveries` | List webhook deliveries | | `webhook-deliveries get` | `GET /v1/webhook_deliveries/{id}` | Get a webhook delivery | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List webhook deliveries kobana dashboards webhook-deliveries list \ --params '{"status": "failed"}' \ --fields "id,event_type,http_status,attempts,created_at" # Get a webhook delivery kobana dashboards webhook-deliveries get --params '{"id": "DELIVERY_ID"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Webhooks](https://docs.dashboards.kobana.com.br/en/en/cli/resources/webhooks.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Webhooks Endpoints that receive the workspace's events, signed. `test` sends a `test.webhook` event right away, `rotate-secret` replaces the signing secret, and `deliveries get` / `deliveries retry` list and retry an endpoint's deliveries. | Command | HTTP | Description | | --------------------------- | ------------------------------------------------------- | -------------------------------- | | `webhooks list` | `GET /v1/webhooks` | List webhook endpoints | | `webhooks create` | `POST /v1/webhooks` | Create a webhook endpoint | | `webhooks get` | `GET /v1/webhooks/{id}` | Get a webhook endpoint | | `webhooks update` | `PATCH /v1/webhooks/{id}` | Update a webhook endpoint | | `webhooks delete` | `DELETE /v1/webhooks/{id}` | Delete a webhook endpoint | | `webhooks rotate-secret` | `POST /v1/webhooks/{id}/rotate_secret` | Rotate the webhook secret | | `webhooks test` | `POST /v1/webhooks/{id}/test` | Send a test webhook | | `webhooks deliveries retry` | `POST /v1/webhooks/{id}/deliveries/{delivery_id}/retry` | Retry a webhook delivery | | `webhooks deliveries list` | `GET /v1/webhooks/{id}/deliveries` | List the deliveries of a webhook | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List webhook endpoints kobana dashboards webhooks list --fields "id,url,active,events" # Create a webhook endpoint kobana dashboards webhooks create \ --json '{"url": "https://example.com/webhooks", "events": ["portal_user.invited", "portal_user.updated"]}' # Send a test webhook kobana dashboards webhooks test --params '{"id": "WEBHOOK_ID"}' # List the deliveries of a webhook kobana dashboards webhooks deliveries list \ --params '{"id": "WEBHOOK_ID", "status": "failed"}' # Retry a webhook delivery kobana dashboards webhooks deliveries retry \ --params '{"id": "WEBHOOK_ID", "delivery_id": "DELIVERY_ID"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Webhook deliveries](https://docs.dashboards.kobana.com.br/en/en/cli/resources/webhook-deliveries.md) * [Events](https://docs.dashboards.kobana.com.br/en/en/cli/resources/events.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Workspaces The organization's workspaces — each with its own portal, connectors, entities and portal users. A workspace's `id` or `public_id` is what goes in the `X-Workspace-Id` header (see [Authentication](https://docs.dashboards.kobana.com.br/en/en/cli/overview/authentication.md)). `export` downloads a workspace's configuration as JSON, `import` restores it into a new workspace and `usage` counts what deleting it would hide. | Command | HTTP | Description | | ------------------- | -------------------------------- | -------------------------------------------- | | `workspaces list` | `GET /v1/workspaces` | List workspaces | | `workspaces create` | `POST /v1/workspaces` | Create workspace | | `workspaces get` | `GET /v1/workspaces/{id}` | Get workspace | | `workspaces update` | `PATCH /v1/workspaces/{id}` | Rename workspace | | `workspaces delete` | `DELETE /v1/workspaces/{id}` | Delete workspace | | `workspaces export` | `GET /v1/workspaces/{id}/export` | Export workspace | | `workspaces usage` | `GET /v1/workspaces/{id}/usage` | Count what deleting the workspace would hide | | `workspaces import` | `POST /v1/workspaces/import` | Import workspace | ## Examples[​](#examples "Direct link to 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](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) for the full reference. ``` # List workspaces kobana dashboards workspaces list --fields "id,public_id,name,role" # Create workspace kobana dashboards workspaces create --json '{"name": "Portal de clientes"}' # Rename workspace kobana dashboards workspaces update \ --params '{"id": "WORKSPACE_ID"}' \ --json '{"name": "Portal de parceiros"}' # Export workspace kobana dashboards workspaces export \ --params '{"id": "WORKSPACE_ID"}' \ --output workspace.json # Count what deleting the workspace would hide kobana dashboards workspaces usage --params '{"id": "WORKSPACE_ID"}' ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Members](https://docs.dashboards.kobana.com.br/en/en/cli/resources/dashboard-users.md) * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — every parameter this resource accepts. --- # Global flags | Flag | Description | | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `--params ''` | Query, path and header parameters (id, page, filters, `X-Workspace-Id`) | | `--json ''` | Request body (POST/PUT/PATCH) | | `--file ` | Sends the request as `multipart/form-data`, with the file in the given field (repeatable; `--json` fields become text parts). Only for endpoints that accept multipart — this API's endpoints take JSON and refuse the flag | | `--fields ''` | Limits which fields come back in the response | | `--dry-run` | Shows the request (URL, query, headers, body, `content_type` and `files`) without sending it | | `--page-all` | Automatic pagination, with NDJSON output | | `--page-limit ` | Maximum number of pages (default: 10) | | `--page-delay ` | Delay between pages (default: 100ms) | | `--env ` | Environment. Magic Dashboard only has `production` (default) | | `--verbose` | Request details on stderr | | `--output ` | Saves the response to a file | | `--output-format ` | Format: `json`, `table`, `csv` | | `--idempotency-key ` | Custom idempotency key | | `--lang ` | Language of the messages: `pt`, `en` or `es` (default: the system's) | ## Headers in `--params`[​](#headers-in---params "Direct link to headers-in---params") A `--params` key that the endpoint declares as a header is sent as a header, not in the URL. That is how you switch workspaces for a single call — `--params '{"X-Workspace-Id": "WORKSPACE_ID"}'` —, winning over `KOBANA_WORKSPACE_ID`. `kobana schema` lists those headers under `header_params`. ## Pagination[​](#pagination "Direct link to Pagination") Magic Dashboard lists paginate with `page`/`per_page`, and that is what `--page-all` works with. The exceptions paginate on their own — pass the parameters in `--params`: `entities records list` uses `limit`/`offset`, and `portal-users activity timeline list` uses `limit` and the `before` cursor. ## Language[​](#language "Direct link to Language") The CLI speaks Portuguese, English or Spanish: help, messages, errors and command descriptions. The language comes, in this order, from `--lang`, the `KOBANA_LANG` variable, the terminal's locale variables (`LC_ALL`, `LC_MESSAGES`, `LANG`) and, last, the system language. ``` kobana --lang pt dashboards --help export KOBANA_LANG=es ``` Command and flag names, JSON keys and exit codes never change with the language. Available since version 0.6.0. ## Next steps[​](#next-steps "Direct link to Next steps") * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/usage/overview.md) — syntax, resources, examples. * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — parameters, required fields, types and responses. --- # Helpers Helpers are commands prefixed with `+` that provide multi-step workflows the dynamic commands alone cannot: simplified interfaces, batch operations, or calls composed across multiple endpoints. They do not wrap a single API call already available through the dynamic commands — every helper flag controls orchestration logic, not a reshaped version of `--params`/`--json`. Today's helpers all belong to the **Banking Gateway**: they ship in the same binary, but they call the Banking Gateway API, with its credential. Magic Dashboard has no helper of its own yet — everything it does is in the [dynamic commands](https://docs.dashboards.kobana.com.br/en/en/cli/resources/overview.md). | Helper | Description | | ---------------- | ------------------------------------------------ | | `+emitir` | Simplified bank billet creation with named flags | | `+cancelar-lote` | Batch-cancel multiple bank billets by id | | `+cobrar` | Simplified Pix charge creation with named flags | ``` # Issue a bank billet kobana +emitir --valor 150.50 --vencimento 2026-05-01 \ --nome "Maria Silva" --cpf-cnpj "012.345.678-90" --carteira 1 # Create a Pix charge kobana +cobrar --valor 99.90 --conta-pix "UID" \ --nome "João" --cpf-cnpj "012.345.678-90" # Batch-cancel bank billets kobana +cancelar-lote --ids "123,456,789" ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/usage/overview.md) — the dynamic commands these helpers sit alongside. * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — inspect the underlying endpoints a helper calls. --- # Usage ## Syntax[​](#syntax "Direct link to Syntax") ``` kobana [flags] ``` * **``** — `banking`, `finance`, `billing`, `inbox`, `dunning` or `dashboards`. * **``** — can be nested: `entities`, `entities records`, `builder tools create-page`. * **``** — the action: `list`, `get`, `create`, `update`, `delete`, or an action specific to the resource (`sync`, `rotate`, `verify`...). The API version never appears in the command — the CLI resolves the URL from the embedded OpenAPI spec. Path, query and header parameters (such as `X-Workspace-Id`) go in `--params`; the request body goes in `--json`. The whole surface is discoverable through `--help`, at every level: ``` kobana --help # products kobana dashboards --help # Magic Dashboard resources kobana dashboards entities --help # a resource's methods ``` ## `dashboards` resources[​](#dashboards-resources "Direct link to dashboards-resources") | Resource | Description | | ------------------------ | ------------------- | | `data-sources` | Data sources | | `entities` | Entities | | `workspaces` | Workspaces | | `builder` | Portal builder | | `portal-settings` | Portal settings | | `portal-custom-domains` | Custom domains | | `portal-oauth-providers` | OIDC providers | | `portal-users` | Portal users | | `portal-user-mappings` | Portal user mapping | | `checklists` | Checklists | | `comments` | Comments | | `assets` | Assets | | `asset-types` | Asset types | | `email-templates` | Email templates | | `email-layouts` | Email layouts | | `notifications` | Notifications | | `webhooks` | Webhooks | | `webhook-deliveries` | Webhook deliveries | | `events` | Events | | `api-keys` | API keys | | `dashboard-users` | Members | | `team-roles` | Roles | | `permissions` | Permissions | | `organization` | Organization | | `settings` | Settings | | `me` | Token identity | | `usage` | Usage | | `ai-usage` | AI usage | | `rate-limits` | Rate limits | | `audit-logs` | Audit logs | | `exports` | Exports | | `imports` | Imports | | `backups` | Backups | | `data-purges` | Data purge | | `maintenance` | Maintenance | Each resource has a page of its own, with the full command table and examples — see the [catalogue](https://docs.dashboards.kobana.com.br/en/en/cli/resources/overview.md). ## Examples[​](#examples "Direct link to Examples") ``` # Data sources and the state of each one kobana dashboards data-sources list --fields "id,name,kind,status,last_synced_at" # Sync a data source now kobana dashboards data-sources sync --dry-run --params '{"id": "DATA_SOURCE_ID"}' # An entity's records, latest due date first kobana dashboards entities records list \ --params '{"id": "ENTITY_ID", "limit": 100, "sort": "due_date:desc"}' # Portal users of another workspace kobana dashboards portal-users list \ --params '{"X-Workspace-Id": "WORKSPACE_ID"}' \ --fields "id,email,tenant_id,status" # List with automatic pagination (NDJSON) kobana dashboards portal-users list --page-all --fields "id,email,tenant_id" # Table output kobana dashboards workspaces list --output-format table # Save the response to a file kobana dashboards workspaces export --params '{"id": "WORKSPACE_ID"}' --output workspace.json ``` ## Next steps[​](#next-steps "Direct link to Next steps") * [Schema introspection](https://docs.dashboards.kobana.com.br/en/en/cli/usage/schema.md) — inspect any endpoint's parameters and body. * [Global flags](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) — every flag a command accepts. * [Helpers](https://docs.dashboards.kobana.com.br/en/en/cli/usage/helpers.md) — `+verb` shortcuts for common workflows. * [Resources](https://docs.dashboards.kobana.com.br/en/en/cli/resources/overview.md) — the full catalogue, resource by resource. --- # Schema introspection ``` # List every product and its resources kobana schema --list # View the schema of a specific endpoint kobana schema dashboards.data-sources.list kobana schema dashboards.entities.records.get kobana schema dashboards.builder.tools.insert-block.create ``` Returns parameters, headers (`header_params`, where `X-Workspace-Id` shows up), required fields, types and responses — all derived from the embedded OpenAPI spec, so it is always in sync with what a command actually accepts. The path has the same shape as the command, with dots instead of spaces: `..`. This is the recommended first step for an AI agent that does not already know the exact shape of a payload: inspect the schema before issuing a mutating call, rather than guessing. ## Next steps[​](#next-steps "Direct link to Next steps") * [Global flags](https://docs.dashboards.kobana.com.br/en/en/cli/usage/global-flags.md) — `--params`, `--json`, `--dry-run` and the rest. * [Usage](https://docs.dashboards.kobana.com.br/en/en/cli/usage/overview.md) — syntax, resources, examples. --- ## [📄️Organization and workspaces](https://docs.dashboards.kobana.com.br/en/en/conceitos/organizacao-e-workspaces.md) [How your account is organized in Magic Dashboard — the organization, the workspaces and each one's portal.](https://docs.dashboards.kobana.com.br/en/en/conceitos/organizacao-e-workspaces.md) --- # From data to the portal An invoice that shows up in your customer's portal was born in your system — an ERP, a database, an API. This page shows the path that data takes to the screen, and where you configure each step. ## The path[​](#the-path "Direct link to The path") 1. **Connector** — the link to your system: the address, the credentials and the operations it offers (for example, *List invoices*). Set it up in [Connectors](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/.md). 2. **Entity** — a type of data the portal shows, such as *Invoice*. The entity says which connector operation brings the records, which fields each record has and which field indicates the **holder** — whose record it is. It keeps a copy of the records in Magic Dashboard. Set it up in [Entities](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md). 3. **Block** — in the [Builder](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/.md), you build pages with blocks: a table of invoices, the detail of an invoice, a list of tax documents to download. Each data block reads the records of an entity. See [Data in blocks](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/dados-nos-blocos.md). 4. **Published page** — the portal shows the version you published. Changes in the draft only appear after you publish. See [Publishing and versions](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/publicar-e-versoes.md). 5. **Portal user** — whoever signs in to the portal sees only the records whose holder equals their **tenant ID**. See [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md) and [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md). ## The portal reads the copy, not your system[​](#the-portal-reads-the-copy-not-your-system "Direct link to The portal reads the copy, not your system") When the user opens a page, the blocks read the records the entity has already stored. The portal does not query your system on every visit — even with the *When the user accesses* sync, it only fetches again when the stored records are past their expiry. That means: * the portal stays fast even if your system is slow; * an outage in your system does not take the portal down — it shows the data from the last sync; * new data only shows up in the portal after the entity's next sync. ## When data is updated[​](#when-data-is-updated "Direct link to When data is updated") Each entity chooses how it syncs with your system: | Sync | How it works | | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Scheduled** | Reads all records from time to time, at the time set in the connector. You can also request a sync right away. | | **Manual** | Reads all records only when you ask. | | **When the user accesses** | Reads only the records for the tenant ID of whoever is in the portal, when the person signs in and when they open a page with that entity. Records stay valid for a time you choose (from 5 minutes to 24 hours); after that, the next access fetches again, showing the stored records in the meantime. On the first fetch, when nothing is stored yet, the block shows *Fetching your data…*. | The details are in [Entity sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md). ## Example[​](#example "Direct link to Example") At Aurora Energia: 1. The **ERP Aurora Energia** connector links Magic Dashboard to the ERP's API and syncs every 2 hours. 2. The **Invoice** entity uses the *List invoices* operation and marks the field *Holder CPF/CNPJ* as the holder. 3. The **Invoices** page in the Builder has a table of the Invoice entity, with the tabs *To pay*, *Paid* and *All*. 4. The page was published. 5. A customer signs in to the portal and sees, on the Invoices page, only the invoices for her CPF. ## Beyond showing data[​](#beyond-showing-data "Direct link to Beyond showing data") The path also works in the opposite direction, in two cases: * **Users from an entity** — an entity can create the portal users: each record becomes a user, with the email and tenant ID taken from the fields you choose. See [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md). * **Buttons and forms** — an action or form block can send data out (a webhook or an email). See [Forms and actions](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/formularios-e-acoes.md). --- # Organization and workspaces In Magic Dashboard, your account has two levels: the **organization**, which is your company, and the **workspaces**, the spaces where data and portals live. ## Organization[​](#organization "Direct link to Organization") The **organization** corresponds to a Kobana account. It holds what applies to all of your portals: * the **team** that signs in to the dashboard and each person's role ([Members](https://docs.dashboards.kobana.com.br/en/en/sistema/membros.md)); * the **API tokens** and the request limits ([API and webhooks](https://docs.dashboards.kobana.com.br/en/en/sistema/api-e-webhooks/.md)); * the **email templates and layout** ([Email templates](https://docs.dashboards.kobana.com.br/en/en/sistema/notificacoes/templates-de-email.md)); * the platform's [Consumption](https://docs.dashboards.kobana.com.br/en/en/sistema/consumo.md) and the artificial intelligence usage limit. One organization's data never shows up for another. ## Workspaces[​](#workspaces "Direct link to Workspaces") Inside the organization, data lives in **workspaces**. Each workspace is a separate space, with: * its own **portal**: pages, brand, address, domain and sign-in methods; * its own **portal users**; * its own **connectors**, **entities** and **files**, where the portal's data comes from; * its own **webhooks** and delivery history; * its own artificial intelligence usage. Events, audit and notifications show what happened in the open workspace and, along with it, what applies to the whole organization. Use different workspaces when audiences or data should not mix — different brands, business units or products. In the Aurora demo organization, for example, **Aurora Energia** has the portal for energy invoices and **Aurora Imóveis** the tenants' portal, each with its own brand, users and entities. ## Managing workspaces[​](#managing-workspaces "Direct link to Managing workspaces") Workspaces live in **System › Workspaces** (`/dashboard/workspaces`). Each card shows the workspace name, whether it is the one you have open (**Active**), whether you are its **Owner** and the **API id**, used in the `X-Workspace-Id` header. ![List of workspaces in the Aurora organization](/en/assets/images/workspaces-e2b7a3b47aeebbdc04b0150522510637.png) Every organization starts with one workspace. To create another, click **New workspace**: you become its owner and can grant access to other people on the team. Renaming, downloading the settings, importing and deleting are covered in [Workspaces](https://docs.dashboards.kobana.com.br/en/en/sistema/workspaces.md). :::warning Deleting a workspace takes the portal down When you delete a workspace, its portal goes offline and the data stops showing for everyone. The organization's only workspace cannot be deleted. ::: ## Which workspace you are viewing[​](#which-workspace-you-are-viewing "Direct link to Which workspace you are viewing") The dashboard always shows one workspace at a time. Its name appears at the top of the screen; click it to switch workspaces or to go to **Manage workspaces**. Everything you create — a connector, a page, a portal user — lives in the open workspace. Anyone with access to more than one workspace chooses which one to enter right after signing in, on the **Choose a workspace** screen. ## Who accesses each workspace[​](#who-accesses-each-workspace "Direct link to Who accesses each workspace") Signing in to the dashboard and opening a workspace are different things. Each team member opens only the workspaces granted to them, as an **owner** or as a **member**. Access is set in each person's profile in [Members](https://docs.dashboards.kobana.com.br/en/en/sistema/membros.md); someone with no workspace granted sees a notice asking an administrator to grant access. ## Workspaces in the API[​](#workspaces-in-the-api "Direct link to Workspaces in the API") In the [API](https://docs.dashboards.kobana.com.br/en/en/sistema/api-e-webhooks/.md), the token identifies the organization and the `X-Workspace-Id` header says which workspace the call acts on. While the organization has a single workspace, the header is optional. --- # Holder and tenant ID Each portal user sees only the records that are **theirs**. Two values that must match decide this: * the portal user's **tenant ID**, set in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md); * the **holder ID** of each record: the value of the field the [entity](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md) marks as the holder — for example, the customer's CPF/CNPJ on an invoice. The portal shows the user the records whose holder ID equals their tenant ID. A user without a tenant ID sees no records. ## Several users, the same holder[​](#several-users-the-same-holder "Direct link to Several users, the same holder") Several users can have the same tenant ID — a company's partners, the finance team, the accountant. Each one has their own sign-in, and all of them see the same records. ## How the values are compared[​](#how-the-values-are-compared "Direct link to How the values are compared") In the entity, you choose how to compare: | Comparison | When to use | Example | | --------------------------------------- | ------------------------------------- | ------------------------------------------------------ | | **Tenant ID (exact text)** | The holder is a code from your system | `RESP-2027013` | | **Tenant ID as CPF/CNPJ (digits only)** | The holder is a tax ID | `123.456.789-09` and `12345678909` are the same holder | In the CPF/CNPJ comparison, when the value is a CPF (11 digits) or a CNPJ (14 digits), only the digits count, on both sides: a mask in the source system or in the user's profile does not block access. A value that is neither a CPF nor a CNPJ is compared as exact text. In both comparisons, leading and trailing spaces are ignored, and an empty holder belongs to no one. ## Example[​](#example "Direct link to Example") At Aurora Energia, the **Invoice** entity uses the field *Holder CPF/CNPJ* with the CPF/CNPJ comparison. A user with tenant ID `367.909.817-05` sees, in the portal, only the invoices for that CPF — and a colleague registered with the same tenant ID sees the same invoices. The full path, from the source system to the user's screen, is in [From data to the portal](https://docs.dashboards.kobana.com.br/en/en/conceitos/do-dado-ao-portal.md). --- ## [🗃Connectors](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/.md) [5 items](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/.md) --- # Files Files are the workspace's images and documents: banners for the portal pages, a PDF manual for the customer to download, a price table. They live in **Data › Files** (`/dashboard/assets`) — the same library as the **Files** tab of the Builder. ![Workspace files](/en/assets/images/arquivos-43fdae5b00e80c8f9c2106bd5efe2931.png) ## Upload files[​](#upload-files "Direct link to Upload files") 1. In **Data › Files**, click **Upload files**. 2. Drag the files into the window or click to choose them. You can upload several at once. 3. Click **Upload**. Accepted files, up to **25 MB** each: | Type | Formats | | ------------- | ---------------------------------------------------------------- | | **Images** | PNG, JPG, GIF, WebP, AVIF | | **Documents** | PDF, TXT, CSV, Markdown, JSON, XML, Word, Excel, PowerPoint, ZIP | SVG and HTML are not accepted: published on an open link, they could carry malicious code. ## Who can download[​](#who-can-download "Direct link to Who can download") Each file has an **Access** setting: | Access | Who downloads | Use for | | -------------- | --------------------------------------- | ---------------------------------------------------- | | **Public** | Anyone with the link | Banners and images of the portal pages | | **Restricted** | Only people who signed in to the portal | Documents for customers, such as the customer manual | | **Private** | Only dashboard members | Internal files — don't use them in the portal | Files are created as **restricted**. To change it, open the file and choose another access. In the **Aurora Energia** workspace, the banners are public, *manual-do-cliente.pdf* and *tabela-de-tarifas-2026.csv* are restricted, and *contrato-de-adesao.pdf* is private. ## Find and organize[​](#find-and-organize "Direct link to Find and organize") * **Grid** or **List**: the buttons next to **Upload files** switch the view. The list shows name, type, size, access, origin and upload date. * **Filters**: by type (**Images** or **Documents**) and by access. * **Search**: by file name. * **Order**: newest, oldest, name (A–Z) or largest first. Click a file to open its details. There you can: * change the **Name**; * change the **File date** — the date the portal shows beside it and sorts by (newest or oldest first). It starts as the upload day; for a monthly report, for example, use the first day of the month it covers. The Builder assistant also changes this date when you ask; * write the **Alt text** of an image — the description read by people who use a screen reader; * change the **Access**; * copy the **Link**, **Download** or **Open** the file. Click **Save** to keep the changes. The details also show where the file came from: uploaded by you (**Upload**), attached in the Builder **Chat** or **Generated by AI**. ## Types, tags and a customer's files[​](#types-tags-and-a-customers-files "Direct link to Types, tags and a customer's files") In the file details, **Type** (*Contratos*, *Relatórios de consumo*…) and **Tags** organize the files that the [User files](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/blocos/dados/arquivos-do-usuario.md) block shows in the portal: * a file **with no tenant**, with a type, shows to every customer in the blocks that list that type — like Aurora Energia's *Condições gerais de fornecimento*; * a file **of a tenant** shows only to that customer's users. You upload those in the user's **Files** tab, in **Portal › Users**. ## Use a file in the portal[​](#use-a-file-in-the-portal "Direct link to Use a file in the portal") * **Image block**: in the **Files** tab of the Builder, click an image (or drag it onto the page) and an Image block is inserted with it and with its alt text. * **Carousel and links**: copy the file's **Link** from the details and paste it into the image field of a Carousel slide, or into a button or text so the customer can download a document. Use **public** or **restricted** files in the portal. A restricted file only opens for people who signed in to the portal. ## Remove a file[​](#remove-a-file "Direct link to Remove a file") Open the file and click **Remove**. It leaves the library, but the links already published in the portal keep working. --- # Connectors A connector links the workspace to one of your systems — the ERP, the academic system, the rental database. It is where the records the portal shows come from. The portal never queries the connector at the moment the customer opens the page. The connector **syncs**: it reads the data from the source and keeps a copy in the [entities](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md). The portal blocks read that copy, and each portal user sees only the records that are theirs (see [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md)). Connectors live in **Data › Connectors** (`/dashboard/connectors`). ## Connector types[​](#connector-types "Direct link to Connector types") | Type | When to use | Page | | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- | | **API (OpenAPI)** | Your system has a REST API described in an OpenAPI/Swagger file | [API (OpenAPI)](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/api-openapi.md) | | **Kobana catalog** | You use a Kobana product (Financeiro Inteligente, Faturamento Automático, Régua de Cobrança, Gateway Bancário): the spec comes ready | [Catalog](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/catalogo.md) | | **MCP** | Your system exposes an MCP server with read tools | [MCP server](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/mcp.md) | | **Database** | You want to read straight from PostgreSQL, MySQL, MariaDB, SQL Server or MongoDB | [Database](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/banco-de-dados.md) | ## Connect a source[​](#connect-a-source "Direct link to Connect a source") 1. In **Data › Connectors**, click **Connect source**. 2. Choose the tab: | Tab | What it connects | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | **Kobana** | A Kobana product, with just the access token. See [Catalog](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/catalogo.md) | | **Catalog** | A service already set up by the Kobana team — HubSpot, Asaas, Notion, Conta Azul… —, with just the credential. See [Catalog](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/catalogo.md) | | **API** | An API of your own, from its OpenAPI file. See [API (OpenAPI)](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/api-openapi.md) | | **MCP** | An MCP server. See [MCP server](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/mcp.md) | | **Database** | PostgreSQL, MySQL, MariaDB, SQL Server or MongoDB. See [Database](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/banco-de-dados.md) | 3. Fill in the connection details. **Test connection** checks that everything is right before you save. 4. Click **Connect**. When you save, the platform tests the connection and reads what the source offers: the API endpoints, the MCP server tools or the database tables. If the test fails, the connector is saved anyway: fix it in **Edit** and test again. Saving fetches no data — that starts when you create [entities](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md) from what the source offers. ## The connector list[​](#the-connector-list "Direct link to The connector list") The list shows, for each connector: ![Workspace connector list](/en/assets/images/conectores-eaacf482d9cc9705d2d18b62753343c9.png) | Column | What it shows | | ------------- | ------------------------------------------------------------------------------- | | **Name** | The name you gave the connector | | **Type** | API (OpenAPI), Kobana catalog, MCP or Database | | **Details** | A summary of the connection, such as the transport type and the number of tools | | **Status** | The state of the connection (see below) | | **Entities** | How many entities read from this connector | | **Schedule** | How often it syncs | | **Last sync** | When the last sync happened | The tabs at the top filter by status, the search looks up the name and the **Type** filter shows only one type of connector. The **…** menu on each row has the same actions as the connector page, including **Delete**. A catalog service shows up with the type of the connection it creates — **API (OpenAPI)** or **MCP**. Only Kobana products show up as **Kobana catalog**. ## Connection status[​](#connection-status "Direct link to Connection status") | Status | What it means | | ------------- | ------------------------------------------------------------------------------------------------------------------- | | **Connected** | The last test succeeded and the connector is syncing | | **Pending** | The connector has not been tested successfully yet — for example, an MCP server waiting for you to authorize access | | **Error** | The last test or the last sync failed. Hover over the status (or open the connector) to see the **Last error** | | **Disabled** | You disabled the connector: it is not queried and scheduled syncs stop | ## The connector page[​](#the-connector-page "Direct link to The connector page") Click a connector to open its page. It has three tabs: * **Overview** — the summary (type, schedule, last sync, last test, entities, created at), the last error, when there is one, and the entities that read from the connector. **New entity** creates an entity from it. * **Endpoints**, **Tools** or **Tables and views** (the name changes with the type) — the operations the platform found in the source. Next to each read operation, **Create entity** already opens the entity with it chosen. The **Enabled** switch turns each operation on and off: a disabled operation doesn't show up when creating entities. * **Logs** — every call the connector made to the source, with method, endpoint, status and duration. Click a call to see the request and the response. The actions are at the top: | Action | What it does | | -------------------------- | ---------------------------------------------------------------------------------------------------------------- | | **Edit** | Changes the connection details. When you save, the connection is tested again | | **Test connection** | Checks the connection now and updates the status | | **Sync** and **Full sync** | Fetch the data again (see [Sync](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/sincronizacao.md)) | | **Schedule** | Sets how often the connector syncs | | **Authorize** | Only for OAuth MCP servers that have not been authorized yet | ## Disable a connector[​](#disable-a-connector "Direct link to Disable a connector") In the **Overview**, under **Danger zone**, click **Disable**. Scheduled syncs stop and the connector is no longer queried, but the records already synced keep showing in the portal. To bring it back, click **Enable**: the platform tests the connection and scheduled syncs run again. ## Delete a connector[​](#delete-a-connector "Direct link to Delete a connector") In the **Overview**, under **Danger zone**, click **Delete** (or use **Delete** in the **…** menu of the list). The connector, its operations and its sync schedule leave the workspace. The logs stay in the history. This cannot be undone. If any entity reads from the connector, the window warns you and lists those entities: they are deleted with it, along with all their records and the relations built on them. To confirm, type the connector's name. To only stop the queries and keep the data in the portal, disable the connector instead of deleting it. ## Protected credentials[​](#protected-credentials "Direct link to Protected credentials") Tokens, passwords, certificates and authentication headers are encrypted before being stored and **never come back to the screen**. When you edit a connector, leave a credential field blank to keep the saved value. In the **Logs**, authentication headers, secret parameters and tokens appear masked (`***`). --- # API (OpenAPI) If your system has a REST API, you connect it by uploading the file that describes it — the **OpenAPI** file (formerly Swagger). The platform reads the file, discovers the endpoints and knows how to call each one: parameters, pagination and where the records are in the response. In the **Aurora Energia** workspace, the **ERP Aurora Energia** connector is an API like this: the portal's invoices, tax invoices and consumer units come from it. ## Connect an API[​](#connect-an-api "Direct link to Connect an API") 1. In **Data › Connectors**, click **Connect source** and open the **API** tab. 2. Fill in the fields: | Field | What to enter | | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | **Connector name** | A name to recognize the source, such as `ERP Aurora Energia`. When you upload the spec, the file name already comes as a suggestion | | **OpenAPI spec** | The `openapi.json` or `.yaml` file — versions 2.0 or 3.x, up to 5 MB | | **Base URL** | The API address, such as `https://erp.auroraenergia.com.br/api/v2`. If the spec declares a server, it comes already filled in | | **Response format** | JSON or XML | | **Authentication type** | How the API checks who is calling (see below) | 3. Click **Test connection** to check. 4. Click **Connect**. As soon as you choose the file, the screen shows what was found: the format, the OpenAPI version and how many operations there are (and how many are read operations). Warnings about the spec appear right below. ## Authentication[​](#authentication "Direct link to Authentication") The platform suggests the authentication type from the spec. You can change it: | Type | How it works | | ---------------------- | ----------------------------------------------------------------------------------------- | | **No authentication** | The API is open | | **Header (API key)** | One or more headers with the key, such as `X-Api-Key`. Use **Add header** to include more | | **Query string** | The key goes as a URL parameter. Use **Add parameter** to include more | | **Bearer token** | The token goes in the `Authorization: Bearer …` header | | **Basic auth** | Username and password | | **Certificate (mTLS)** | A client certificate (`.pfx`, `.p12` or `.pem`) and its password, when there is one | Credentials are encrypted and never come back to the screen. ## Test the connection[​](#test-the-connection "Direct link to Test the connection") The test calls a read endpoint that needs no parameters (asking for a single record, when it paginates) and checks that the API responds, accepts the credentials and returns the records where the spec says. If the spec has no such endpoint, the test only checks that the Base URL responds. ## Endpoints[​](#endpoints "Direct link to Endpoints") On the connector page, the **Endpoints** tab lists the API operations: ![Active API (OpenAPI) connector, with operations and syncs](/en/assets/images/conector-api-707b54c96f2e9cace6c9d94a1387894b.png) | Column | What it shows | | --------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | **Name** | The operation name, such as *List invoices*. Operations marked **disabled** or **deprecated** don't show up when creating entities | | **Source** | The method and the path, such as `GET /faturas` | | **Access** | **Read** or **Write** | | **Incremental** | Whether the endpoint accepts a "changed since" filter — so the sync reads only what changed | | **Enabled** | A switch that turns the operation on and off. When off, it doesn't show up when creating entities | **Read** endpoints are the ones that become entities: click **Create entity** next to one of them. In ERP Aurora Energia, *List invoices* (`GET /faturas`) became the **Invoice** entity; *Request reconnection* (`POST /unidades/{id}/religacao`) is a write operation and doesn't become an entity. ## Replace the spec[​](#replace-the-spec "Direct link to Replace the spec") When the API changes, open the connector, click **Edit** and upload the new file in **OpenAPI spec**. The endpoints are read again, and the ones with the same key keep their settings. In **Edit** you can also change the Base URL, the response format and the authentication. ## Kobana products and known services[​](#kobana-products-and-known-services "Direct link to Kobana products and known services") For Kobana products and for services such as HubSpot, Asaas or Conta Azul, the spec comes ready: use the **Kobana** and **Catalog** tabs and enter only the credential. See [Catalog](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/catalogo.md). ## Next steps[​](#next-steps "Direct link to Next steps") * [Create the entities](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md) from the read endpoints. * Set [how often](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/sincronizacao.md) the connector syncs. --- # Database When the data is in a database and there is no API in front of it, you connect the database directly. The platform only reads: it never writes anything to it. In the **Aurora Imóveis** workspace, the **Banco do sistema de locação** connector is a PostgreSQL. The contracts, the rent payment slips and each tenant's documents come from it. ## Supported databases[​](#supported-databases "Direct link to Supported databases") | Type | Databases | | --------- | -------------------------------------- | | **SQL** | PostgreSQL, MySQL, MariaDB, SQL Server | | **NoSQL** | MongoDB | Other databases show up in the list as **coming soon**. ## Connect a database[​](#connect-a-database "Direct link to Connect a database") 1. In **Data › Connectors**, click **Connect source** and open the **Database** tab. 2. Choose the **Type** (SQL or NoSQL) and the **Database**. 3. Fill in the connection: ![PostgreSQL database connector](/en/assets/images/conector-banco-73bff582bbfc185c58118c4c193accfa.png) | Field | What to enter | | ----------------------------- | ------------------------------------------------------------------------------------------------------------ | | **Host** and **Port** | The server address, such as `db.exemplo.com.br`, and the port (the database default comes already filled in) | | **Database** | The database name, such as `locacao` | | **Username** and **Password** | The user the platform uses to read | | **Connection string** | MongoDB only: the full connection string, instead of host and port | | **SSL/TLS** | Connects with encryption | | **Verify certificate** | Checks the server certificate (only with SSL/TLS on) | 4. Click **Test connection** to check. 5. Click **Connect**. The test connects to the database and lists the tables and views (or collections, in MongoDB) the user can see. They appear in the **Tables and views** tab of the connector page. ## Always read-only[​](#always-read-only "Direct link to Always read-only") The **Read-only (always)** option comes checked and can't be turned off. Besides only running queries, the platform opens the session in read mode when the database allows it. Even so, create a **read-only user**, with `SELECT` permission only on the tables the portal needs. In the Aurora Imóveis example, the user is `portal_leitura`. ## Network[​](#network "Direct link to Network") The database must accept connections from the platform over the internet: * Allow Kobana's outbound IPs in the database firewall. * The host must point to a public address. Internal addresses (such as `localhost` or private network IPs) are refused. ## Tables or SQL queries[​](#tables-or-sql-queries "Direct link to Tables or SQL queries") An entity can read in two ways: * **A table, view or collection** — choose it from the list, in **Create entity**. You can also filter which rows come in (see [Entity sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md)). * **An SQL query** — write a `SELECT`, with `JOIN` if you need it. This is what Aurora Imóveis uses to join contracts and properties. See [SQL queries](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/consultas-sql.md). When you edit the connector, the chosen database is fixed; the rest of the connection can be changed. Leave the password (or the connection string) blank to keep the saved one. --- # Catalog For Kobana products and for dozens of well-known services, you don't need an OpenAPI file or any technical setup: the Kobana team has already set up the connection. You choose the service and enter only the access credential. In **Data › Connectors** (`/dashboard/connectors`), click **Connect source**. The catalog takes up the first two tabs of the window: **Kobana** and **Catalog**. ## Kobana products[​](#kobana-products "Direct link to Kobana products") The **Kobana** tab opens first and lists the four Kobana products, with each API's spec ready: | Product | What it brings | | -------------------------- | --------------------------------------------------------------------------------------------- | | **Financeiro Inteligente** | Financial back office: payables and receivables, customers, statements, reconciliation | | **Faturamento Automático** | Recurring billing: contracts, subscriptions, invoices, tax invoices | | **Régua de Cobrança** | Collections from due date to payment: customers, charges, dunning flows, agreements, disputes | | **Gateway Bancário** | Kobana API (v1 + v2): boletos, Pix, payments, transfers, accounts and statements | 1. Click **Connect** on the product. 2. Choose the **Environment**: **Production** or **Sandbox**. The screen shows the API address of the chosen environment. 3. Paste the **Access token**, issued by Kobana's authorization server (`account.kobana.com.br`). 4. In Financeiro Inteligente, enter the **Workspace ID** only if the organization has more than one. 5. Click **Test connection** to check the token, then **Connect** with the product name. The product operations are imported, and the connector shows up in the list with the type **Kobana catalog**. A product that is already connected shows the **Connected** badge and the **Another environment** button, to also connect the sandbox (or production). :::tip The Builder chat knows the Kobana products With a Kobana product connected, the [AI chat](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/chat-com-ia.md) knows which list brings the customers, which field links each record to the person and what each status means — and builds the pages with that. ::: ## Catalog services[​](#catalog-services "Direct link to Catalog services") The **Catalog** tab lists the services already set up by the Kobana team, grouped by category: | Category | Services | | -------------------------- | -------------------------------------------- | | **CRM and sales** | HubSpot, Pipedrive, RD Station CRM, Zoho CRM | | **Marketing** | ActiveCampaign, Mailchimp | | **Transactional e-mail** | Resend, SendGrid | | **Customer support** | Intercom, Octadesk, Zendesk Support | | **Payments and billing** | Asaas, iugu, Pagar.me, PagBank, Vindi | | **Digital products** | Eduzz, Hotmart | | **Finance** | Conta Azul, Granatum, Nibo | | **ERP** | Bling | | **Invoicing (NF-e/NFS-e)** | eNotas, NFE.io, Notazz | | **E-signature** | Clicksign, D4Sign, DocuSign, ZapSign | | **Projects and tasks** | Asana, ClickUp, Linear, monday.com, Trello | | **Productivity** | Airtable, Notion | | **Communication** | Slack | | **Scheduling** | Calendly | | **Forms** | Typeform | | **Events** | Sympla | | **E-commerce** | Wix | The catalog grows over time: the list in the window is always the most current one. Use the search at the top to find a service by name, description or category — for example, *invoices* or *CRM*. The search ignores case and accents, and every word you type must appear. ### Connect a service[​](#connect-a-service "Direct link to Connect a service") 1. Click **Connect** on the service. Each one shows whether it is an **API** or an **MCP** server and links to its documentation. 2. Fill in the credential the service asks for. The screen explains where to generate each one: | The service asks for | Field | | ----------------------------------- | ------------------------------------------------------------------------- | | A token | **Access token** | | An API key | **Access key** — the screen says which header or parameter it goes in | | Username and password | **Username** and **Password** | | Login to the service itself (OAuth) | None: when you connect, you go to the service's login to authorize access | 3. Click **Connect**. The connector is created with the type of the connection — **API (OpenAPI)** or **MCP** — and works like any other: you create the [entities](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md) from its operations and set up the [sync](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/sincronizacao.md). It keeps its own copy of the configuration, so a later change in the catalog doesn't alter a connector you have already created. Credentials are encrypted and never come back to the screen. ## Didn't find your system?[​](#didnt-find-your-system "Direct link to Didn't find your system?") Connect it through the **API** tab, with your API's OpenAPI file ([API (OpenAPI)](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/api-openapi.md)), through the **MCP** tab ([MCP server](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/mcp.md)) or straight to the database ([Database](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/banco-de-dados.md)). --- # MCP server MCP (Model Context Protocol) is a standard way for a system to offer **tools** — functions another program can call, such as `listar_mensalidades`. If your system has an MCP server, you connect it here and use the read tools as the source of entities. In the **Aurora Educação** workspace, the **Sistema acadêmico (MCP)** connector brings the tuition fees each guardian sees in the portal. ## Connect an MCP server[​](#connect-an-mcp-server "Direct link to Connect an MCP server") 1. In **Data › Connectors**, click **Connect source** and open the **MCP** tab. 2. Fill in the fields: | Field | What to enter | | ------------------ | -------------------------------------------------------------------------------------------------------------- | | **Type** | The server transport: **Streamable HTTP** or **SSE** | | **URL** | The server address, such as `https://mcp.auroraeducacao.com.br/mcp` | | **Custom headers** | Headers sent on every call, one per line, in the `Name: value` format — for example, `Authorization: Bearer …` | | **OAuth** | Whether the server asks for a login (see below) | 3. Click **Test connection** to check. 4. Click **Connect**. Already have the configuration in MCP Inspector? Click **Paste configuration**, paste the JSON exported by the Inspector and the fields are filled in. ## OAuth[​](#oauth "Direct link to OAuth") | Option | When to use | | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | **No OAuth** | The server is open or accepts a fixed token in the **Custom headers** | | **Dynamic Client Registration** | The server lets the client register itself. The platform discovers the authorization server (`/.well-known/oauth-authorization-server`) | | **Client ID / Secret** | You already have a client registered on the server: enter the **Client ID** and the **Client Secret** | With OAuth, you can also enter the **Scopes** to request. When you save, you are taken to the server's login screen to authorize access; when you come back, the dashboard tells you whether it worked. Until the authorization happens, the connector stays **Pending** and shows the **Authorize** button. ## Tools[​](#tools "Direct link to Tools") When you connect, the platform asks the server which tools it has. They appear in the **Tools** tab of the connector page, with the access of each one: **Read** or **Write**. **Read** tools become entities: click **Create entity** next to one of them. In the Sistema acadêmico, `listar_mensalidades` became the **Mensalidade** entity; `enviar_comunicado` is a write tool and doesn't become an entity. The tool arguments are filled in when you create the entity, and one of them can receive the user's tenant ID — this is how an entity [synced on access](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md) asks the server only for the records of the person who signed in to the portal. ## When authentication fails[​](#when-authentication-fails "Direct link to When authentication fails") ![MCP connector with an authentication error](/en/assets/images/conector-mcp-erro-957a1528097a8ed3c3779921c291da17.png) When the server refuses the credentials, the connector goes to **Error** and the **Overview** shows the **Last error**. In the Aurora Educação example, the server answered `401 Unauthorized` because the token sent in the `Authorization` header had expired. The **Mensalidade** entity also goes to **Error**, and the records that had already been synced stay stored in it. To fix it: * **Token in the Custom headers**: click **Edit**, fill in **Custom headers** with the new token and click **Save**. Saved headers appear by name only; filling in the field replaces all of them. * **OAuth**: click **Authorize** and sign in to the server again. When you save or authorize, the connection is tested again. If it works, the status goes back to **Connected**. tip Changing the URL or the OAuth configuration requires a new authorization on the server. --- # Sync Syncing is copying the records from the source into the [entities](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md). The portal always reads that copy — that is why it opens fast and keeps working even when your API or your database is down. The downside: the portal shows the data from the last sync. The schedule defines how stale it can get. ## Schedule[​](#schedule "Direct link to Schedule") On the connector page, click **Schedule** and choose the **Frequency**: | Frequency | Example | | ------------------- | ------------------------------------------------------- | | **On demand** | Only when someone asks | | **Every N minutes** | Every 15 minutes (minimum 5) | | **Every N hours** | Every 2 hours, at minute 0 | | **Every N days** | Every day at 06:00 | | **Business days** | Monday to Friday at 07:00 | | **Weekly** | Every Monday at 06:00 | | **Monthly** | On the 1st of each month at 06:00 | | **Custom cron** | A cron expression (`minute hour day month day-of-week`) | Also choose the **Timezone** the times apply to (the default is `America/Sao_Paulo`). The schedule shows in the connector list and in the connector summary — in ERP Aurora Energia, *Every 2 hours (minute 0)*. The schedule belongs to the connector: each run syncs its entities that are in **Scheduled** mode. **Manual** entities and those that sync **when the user opens the portal** are left out (see [Entity sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md)). A disabled connector doesn't sync, even with a schedule. ## Sync now[​](#sync-now "Direct link to Sync now") On the connector page (or in the **…** menu of the list), there are two actions: | Action | What it does | | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | **Sync** | Fetches what changed since the last sync and updates the entities that read from the connector | | **Full sync** | Reads everything again and **removes from the entities the records the source no longer has**. It can take a while and use up the source API's quota | Both ask for confirmation and go into a queue: the records show up when the sync finishes. They include the connector's **Manual** entities. ## Incremental or full[​](#incremental-or-full "Direct link to Incremental or full") Whenever possible, the sync is **incremental**: it reads only what changed since last time. This happens when the source allows filtering by "changed since" — an endpoint with an incremental filter (the **Incremental** column of the Endpoints tab) or a table with a change-date column. The sync is **full** — it reads everything — when: * it is the first time; * the source has no incremental filter (MCP tools and [SQL queries](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/consultas-sql.md), for example); * the last full sync is more than a day old — so records deleted at the source also leave the portal; * you ask for a **Full sync**. Only the full sync removes records. Records that didn't change are not rewritten. info Each run reads at most 50,000 records per entity. If the source has more, the read stops at the limit and the removal of records that disappeared from the source doesn't run that time — the entity warns you. ## Follow the runs[​](#follow-the-runs "Direct link to Follow the runs") * **On the entity**: the **Overview** shows the sync status, the last sync, the last full sync and the result of the last run — how many records were read, new, changed, unchanged and removed. If it failed, the error appears there. See [Entity sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md). * **On the connector**: the **Logs** tab lists each call made to the source, with method, endpoint, HTTP status and duration. Filter by **Method** and **Result** (success or error) or search by endpoint. Click a call to see the parameters, headers and body of the request and the response — and copy everything to send to the source system's team. ![Active API (OpenAPI) connector, with operations and syncs](/en/assets/images/conector-api-707b54c96f2e9cace6c9d94a1387894b.png) ## When it fails[​](#when-it-fails "Direct link to When it fails") A sync with an error doesn't delete anything: the portal keeps showing the records from the last successful sync. To find the cause: 1. Open the entity with the error and read the message in the **Overview**. 2. Open the connector **Logs** and look for the calls with errors: the status and the source's response usually say what happened (expired credential, timeout, invalid parameter). 3. Fix the cause — for example, in **Edit** — and click **Sync**. If you suspect the connection (credentials, network), click **Test connection** on the connector: if the test fails, the connector goes to **Error**, with the **Last error** in the Overview. --- # Entities An entity is a type of record the portal shows: **Fatura**, **Contrato**, **Boleto de aluguel**, **Mensalidade**. It says where the records come from, which fields they have and which customer each one belongs to. The records come from a [connector](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/.md): from an API endpoint, an MCP tool, a database table or an [SQL query](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/consultas-sql.md). The [sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md) copies those records to the platform, and the portal blocks read that copy — never the source. With no system to connect, create an [entity without a connector](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sem-conector.md) and send the records by CSV, API or MCP. Each portal user sees only the records whose holder equals their tenant ID (see [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md)). Entities live in **Data › Entities** (`/dashboard/entities`). ![Workspace entity list](/en/assets/images/entidades-60d2c16ec81f80abd5ab29cb1ec18c8f.png) ## The entity list[​](#the-entity-list "Direct link to The entity list") In the **Aurora Energia** workspace, three entities read from the **ERP Aurora Energia** connector — Fatura, Nota fiscal and Unidade consumidora — and one, **Leitura do medidor**, has no connector: the **Connector** column shows **No connection**. | Column | What it shows | | -------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | **Name** and **Key** | The name that shows in the dashboard and the key that blocks and the Builder chat use (`fatura`) | | **Connector** | Where the records come from | | **Fields** | How many fields the entity has | | **Owner** | The field that says which customer each record belongs to. **no owner** means no customer sees the records in the portal | | **Records** | How many records are synced | | **Last sync** and **Sync** | When the last sync happened and how it is doing: **Up to date**, **Queued**, **Syncing**, **Error** or **Never synced** | The tabs filter by sync status, the search looks up the name and the **Connector** filter shows only the entities of one connector. The **…** menu on each row syncs, edits, [clears the records](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/registros.md) of or deletes the entity. Entities that sync when the customer opens the portal have no **Sync**: they fetch the data on their own. ## Create an entity[​](#create-an-entity "Direct link to Create an entity") For an entity with a connector, you need a connector first. (For one without a connector, see [Entities without a connector](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sem-conector.md).) Then: 1. In **Data › Entities**, click **New entity** and choose **With a connector**. (On the connector page, **Create entity** next to an endpoint, tool or table already opens it with that one chosen.) 2. Choose the **Connection** and the operation the data comes from: the endpoint, the tool or the table. In an SQL database, you can also write an [SQL query](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/consultas-sql.md). 3. Fill in the **Parameters** the operation asks for, when there are any. In this step you also adjust the pagination, [when to sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md) and the [sync filters](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md). 4. Click **Fetch data**. The platform fetches a sample from the source and builds the fields from what came back. 5. Review the entity: * **Name**, **Plural name** and **Key** — for example, *Fatura*, *Faturas* and `fatura`. * **Identifier** — the field that identifies each record at the source, such as `id`. * **Title** — the field that serves as the name of each record, such as the invoice description. * **Owner ID** — the field with the customer ID, and how it is compared to the tenant ID. * The [fields](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/campos.md): which ones come in, with what name, type and role. 6. Click **Create entity with N fields**. The entity is created and the first sync goes into the queue. **See the received sample**, at the bottom of the screen, shows the first records as the source sent them. warning Without an **Owner ID**, no portal user sees the entity's records. Choose the field with the customer's CPF/CNPJ or code. ### Field limit[​](#field-limit "Direct link to Field limit") Each workspace has a field limit for a new entity (10, if nothing different was agreed). The screen shows how many you picked — for example, *8 of 10 fields* — and, at the limit, you uncheck a field to pick another. ## The entity page[​](#the-entity-page "Direct link to The entity page") Click an entity to open its page. At the top are **Sync**, **Full sync** and **Edit**. The tabs: ![Fatura entity: fields, owner and sync](/en/assets/images/entidade-detalhe-af19f41efd1c8b8eae77de3dcfbc8118.png) | Tab | What it has | | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Overview** | Where the data comes from, the identifier, the title, the owner, the sync status and the **Danger zone** | | **Records** | The synced records (see [Records](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/registros.md)) | | **Summary** | Quick calculations over the records: **Count**, **Sum**, **Average**, **Minimum** or **Maximum** of a field, with the option to **Group by** another field — the same way the portal's KPI and chart blocks calculate | | **Fields** | The fields, with key, name, type, role, source path and whether they are visible (see [Fields](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/campos.md)) | | **Portal usage** | The portal pages that use the entity, marked as **draft** or **published** | | **Tenants** | Only for entities that sync when the user opens the portal (see [Entity sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md)) | | **Logs** | The calls this entity's sync made to the connector | ## Relate entities[​](#relate-entities "Direct link to Relate entities") **Relate entities** joins the records of two entities by a common field and creates a new entity, which you use in blocks like any other. For example, joining invoices with consumer units by the unit code. 1. Click **Relate entities**. 2. Choose the **Main entity**, the entity to **Relate to** and the field of each that must be equal. Check **Compare digits only** when the field is a CPF/CNPJ or phone number. 3. Choose whether the relation keeps **every record of the main entity** (those without a match get the related fields empty) or **only the records with a match**. 4. Click **Check matches** to see how many records matched. 5. Choose the fields of the new entity, the **Owner** and the **Title**, and click **Create relation**. ## Delete an entity[​](#delete-an-entity "Direct link to Delete an entity") In the **Overview**, under **Danger zone**, click **Delete** (or use **Delete** in the **…** menu of the list). Before you confirm, the screen shows the portal pages that use the entity — they stop showing that data. The connector and the data at the source don't change. To delete only the records and keep the entity, use **Clear** (see [Records](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/registros.md)). --- # Fields Fields say what each record of an entity has — reference, amount, due date, status. When the entity is created, the platform reads a sample from the source and suggests the fields, with name, type and role. You adjust whatever you want. To see the fields, open the entity in **Data › Entities** and go to the **Fields** tab. To change them, click **Edit**. ## What each field has[​](#what-each-field-has "Direct link to What each field has") | Column | What it is | | --------------- | ---------------------------------------------------------------------------------------------------- | | **Key** | The field's technical name, which blocks use (`vencimento`). Lowercase letters, numbers and `_` only | | **Name** | The name that shows in the dashboard and the portal (*Vencimento*) | | **Type** | How the value is handled and shown (see below) | | **Role** | What the field means for the business (see below) | | **Source path** | Where the value is in the record the source sends, such as `cliente.nome` | | **Visible** | Whether the field appears in the record lists | ![Fatura entity: fields, owner and sync](/en/assets/images/entidade-detalhe-af19f41efd1c8b8eae77de3dcfbc8118.png) On the edit screen, each field shows the source path and a few values from the sample, so you can recognize what it is. Uncheck a field to leave it out. ## Types[​](#types "Direct link to Types") | Type | Example | | ------------------------------------- | --------------------------------------------------------------------------------- | | **text** | `Conta de setembro` | | **integer** and **decimal** | `312` kWh, `12.5` | | **money** | Shown as `R$ 284,90` | | **yes/no** | Shown as ✓ or ✗ | | **date** and **date and time** | Shown in the Brazilian format | | **email**, **phone** and **CPF/CNPJ** | `cliente@exemplo.com.br`, `11 98765-4321`, `367.909.817-05` | | **list** | One value among a few options, such as the status: `em_aberto`, `pago`, `vencido` | | **link** | The address of the PDF payment slip | | **file** | A document to download | | **list of items** and **object** | Values with structure (a list, a JSON object) | ## Roles[​](#roles "Direct link to Roles") The role tells the portal blocks what each field is for. It is how an indicators block knows to sum the **amount** of open invoices, and how a calendar knows which date is the **due date**. | Role | What it is for | | ----------------------------------------------- | ---------------------------------------------------------------------------- | | **identifier** | Identifies the record at the source | | **reference** | A code that links the record to another, such as the invoice's consumer unit | | **title** | The record's name in lists | | **status** | The record's status | | **due date** | The due date | | **amount** | The amount of money | | **created at** and **updated at** | The record's dates | | **email**, **document**, **phone** and **link** | Contact data, documents and addresses | A field can have no role. In the **Fatura** entity of Aurora Energia, *Referência* has no role; *Valor* is **amount**, *Vencimento* is **due date** and *Situação* is **status**. Learn more in [Data in blocks](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/dados-nos-blocos.md). ## The owner field[​](#the-owner-field "Direct link to The owner field") The **Owner ID** is the field that says which customer each record belongs to. It is chosen when editing the entity, together with the **Identifier** and the **Title**, and appears in the **Fields** tab with the role **owner ↔ user**. Right below, you choose how the value is compared to the portal user's tenant ID: | Comparison | When to use | | --------------------------------------- | -------------------------------------------------------------------------------- | | **Tenant ID (exact text)** | The owner is a code from your system, such as the guardian's registration number | | **Tenant ID as CPF/CNPJ (digits only)** | The owner is a CPF or CNPJ. Masks don't matter: only the digits are compared | In **Fatura**, the owner is the field *CPF/CNPJ do titular* (`documento_titular`), compared as CPF/CNPJ. This field is not visible: it decides who sees the record, but it doesn't need to appear. Understand the rule in [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md). ## Calculated fields[​](#calculated-fields "Direct link to Calculated fields") A calculated field builds the value from the other fields of the record, without existing at the source. Use it to join texts, format a code or do a calculation. 1. On the entity edit screen, click **Calculated field**. 2. Give the field a name, key and type. 3. In **Expression**, write the value. What is between `{{ }}` is calculated; the rest is fixed text. Examples: | Expression | Result | | --------------------------------- | ------------------------- | | `P-{{ $resource.numero.length }}` | `P-6` | | `{{ $resource.valor * 0.1 }}` | Ten percent of the amount | | `{{ $resource.consumo_kwh }} kWh` | `312 kWh` | `$resource.` reads a field of the record. The syntax is the same as n8n expressions — the screen has a link to the reference. Right below the expression, the screen shows the result on the first record of the sample (or the error, if the expression doesn't work). A calculated field sees the source fields and the calculated ones that come before it. When the expression fails on a record, the field is empty on that record. ## Edit the fields later[​](#edit-the-fields-later "Direct link to Edit the fields later") In **Edit** you rename fields, change type and role, add or remove fields and create calculated fields. When the change affects the records (fields, types, roles, expressions, owner, filters or pagination), a sync goes into the queue to read the records again with the updated fields. If you change the entity **Key**, the screen warns you which portal pages use the old key. --- # SQL queries On an SQL [database connector](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/banco-de-dados.md), an entity can read from a query instead of a table. Use it when the data the portal needs is spread across more than one table, or when you want to choose the columns and rows precisely. ![Entity read by an SQL query](/en/assets/images/entidade-sql-bfddc8da6baaf6332cdc65c0b71747db.png) In the **Aurora Imóveis** workspace, the **Contrato** entity joins two tables from the rental database — contracts and properties — in a single query: ``` SELECT c.id, c.codigo, i.descricao AS imovel, i.endereco, c.inicio, c.fim, c.valor_aluguel, c.status, c.cpf_inquilino FROM contratos c JOIN imoveis i ON i.id = c.imovel_id WHERE c.excluido_em IS NULL ``` Each column of the result becomes a field: `imovel` and `endereco` come from the properties table, the rest comes from the contract. The `WHERE` leaves out the deleted contracts. ## Create an entity from SQL[​](#create-an-entity-from-sql "Direct link to Create an entity from SQL") 1. In **Data › Entities**, click **New entity**. 2. Under **Connection**, choose the database connector and open the **SQL** tab. 3. Write the query. The editor completes table and column names with `Ctrl/Cmd` + `Space`. 4. Click **Fetch data** (or `Ctrl/Cmd` + `Enter`). The platform runs the query, brings a sample and builds a field for each column. 5. Review the entity like any other: name, key, [fields](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/campos.md), **Identifier**, **Title** and **Owner ID**. In Contrato, the identifier is `id`, the title is `codigo` and the owner is `cpf_inquilino`, compared as CPF/CNPJ. 6. Click **Create entity with N fields**. The query is recorded in the entity's **Overview**, under **SQL query**. ## Query rules[​](#query-rules "Direct link to Query rules") * **Read-only**: the query must start with `SELECT` or `WITH`. * **One query at a time**: no `;` in the middle. * **Fast**: a query that takes more than 15 seconds is interrupted. Prefer indexed columns in the `JOIN` and the `WHERE`. Besides that, the database session is opened in read mode when the database allows it. Even so, connect with a user that only has read permission. ## Tips[​](#tips "Direct link to Tips") * **Bring the owner in a column.** It is how each record is tied to its customer — in Contrato, `cpf_inquilino`. Without an owner, no portal user sees the records. * **Bring a unique identifier.** A column that doesn't repeat (like `c.id`) lets the sync recognize each record from one run to the next. * **Give the columns clear names** with `AS` (`i.descricao AS imovel`): the column name becomes the field key. * **Filter in the `WHERE`**, not afterwards: what the query doesn't bring takes no space or sync time. ## How the sync works[​](#how-the-sync-works "Direct link to How the sync works") An SQL entity syncs on the connector's schedule (or only when you ask, in **Manual** mode). Each sync runs the whole query: new records come in, changed ones are updated and those the query no longer brings leave the entity. In **Sync read**, you choose how many rows the sync reads at a time (the default is 500). The **When the user opens the portal** mode doesn't apply to SQL queries. See [Entity sync](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/sincronizacao.md). --- # Records Records are what the sync brought from the source — each invoice, each contract, each tuition fee. The portal blocks read from them. Checking the records in the dashboard is the quickest way to know whether the data arrived as you expected. ## The record list[​](#the-record-list "Direct link to The record list") Open the entity in **Data › Entities** and go to the **Records** tab. The number next to the tab name is the total of synced records — in Aurora Energia's **Fatura**, 324. * **Columns** — the entity's visible fields, in field order (up to 8). Fields marked as not visible, like *CPF/CNPJ do titular*, are left out. * **Search** — looks up the entity's title field (or the identifier, if it has no title). In Fatura, the search is by *Descrição*. * **Sorting** — click a column header. * **Pagination** — choose how many records per page. Values appear formatted by the field type: money in reais, dates in the Brazilian format, yes/no as ✓ or ✗. If the list is empty, the entity hasn't synced yet: click **Sync** at the top of the page. ## One record[​](#one-record "Direct link to One record") Click the eye icon on a row (**View record**) to open the record (`/dashboard/entities//records/`). The page has three panels: ![A record of the Fatura entity](/en/assets/images/entidade-registro-20434a7053e91bca4ac41ac02cd75e4a.png) **Fields** — all the entity's fields with this record's value, including the non-visible ones, marked as **hidden**. **Show empty fields** turns the empty fields on and off. **Sync** — where the record came from and when: | Item | What it shows | | ---------------------------- | --------------------------------------------------------------------------------- | | **Source ID** | How the source identifies the record | | **Owner** | The record's owner ID — the value that is compared to the portal users' tenant ID | | **Changed at the source on** | When the source says the record last changed, if it reports it | | **Synced on** | When the platform last stored the record | | **First synced on** | When the record first arrived | **Data received from the source** — the record as the source sent it, before the field mapping, in JSON. **Copy JSON** copies everything. Compare the two sides when a value looks wrong: if it is right in the received data and wrong in the fields, adjust the [field's path or type](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/campos.md); if it already came wrong from the source, the problem is in the source system. tip A portal user doesn't see a record they should? Open the record and compare the **Owner** with the user's tenant ID in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md). See [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md). ## Clear the records[​](#clear-the-records "Direct link to Clear the records") In the entity **Overview**, under **Danger zone**, **Clear** deletes all the synced records. The entity and the fields stay. Use it when you want to start from scratch — for example, after changing the filters a lot. The portal pages that use the entity stay empty until the next sync, which reads everything again from the source. --- # Entities without a connector Not all data lives in a system with an API. A spreadsheet of readings, a list of old contracts, a report the team produces every month — that is what the **entity without a connector** is for: you create the entity with the fields you want and send the records by **CSV import**, through the **API** or the **MCP**. In the portal, it works like any other entity. In the **Aurora Energia** workspace, the **Leitura do medidor** entity has no connector: the field team sends the month's readings in a CSV. ![Entity without a connector, with the ways to send records](/en/assets/images/entidade-sem-conector-2c3c22b76453dc258ee69ba503a14652.png) ## Create the entity[​](#create-the-entity "Direct link to Create the entity") 1. In **Data › Entities**, click **New entity**. 2. In **Where the records come from**, choose **Without a connector**. (In a workspace with no connectors, it comes already chosen.) 3. To start from a spreadsheet, click **Choose CSV** under **Start from a CSV**: the fields come from the file's columns, with the type inferred from the values, and the file name becomes the entity name. Leave **Import the file's N rows on create** ticked to bring in the records right away. 4. Check **Name**, **Plural name** and **Key** — for example, *Leitura do medidor*, *Leituras do medidor* and `leitura`. 5. Review the **Fields**: name, key, type and **Column / property** — the CSV column (or the property of the record sent through the API) the field reads. Blank means the key. Without a CSV, add the fields with **Add field**. 6. Choose the **Identifier** (required), the **Title** and the **Owner** — and whether the owner holds the customer's **External ID** or **CPF/CNPJ**. 7. Click **Create entity**. The **Identifier** decides what is a new record: a record sent again with the same identifier updates the existing one. The **Owner** is what makes each portal user see only their own records — see [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md). In the entity list, the **Connector** column shows **No connection**, and the **Connector** filter has that option. ## Add a record[​](#add-a-record "Direct link to Add a record") For a single record, without building a spreadsheet: in the entity's **Records** tab, click **Add record**. The window shows an input for each field of the entity — date, number, yes/no or a list of options depending on the type; computed fields fill themselves in. The **Identifier** (marked with \*) is required and cannot repeat another record's: to change a record that already exists, import a CSV or send it through the API. ## Import a CSV[​](#import-a-csv "Direct link to Import a CSV") On the entity page, click **Import CSV** (the same item is in the **…** menu of the list). 1. Choose the file. The window shows the columns read and warns you if any of the entity's columns is missing — those fields stay empty. **Download template** downloads a CSV with just the header. 2. Choose the mode: * **Add and update** — the records in the file are added or updated; the ones not in the file stay as they are. * **Replace everything** — the file becomes the whole set: the records not in it are removed. 3. Click **Import N rows**. The result shows how many records are new, updated, unchanged and removed, and lists the refused rows with the reason ("Row 7: Falta o identificador (id)" — the missing identifier). Row 1 is the header. warning In **Replace everything**, if any row is refused, nothing changes: fix the file and import it again. That way a spreadsheet with an error never wipes out the records that are in the portal. ### The file[​](#the-file "Direct link to The file") * Separated by comma, semicolon or tab, in UTF-8, with the column names in the first row. * Up to **20,000 rows** and **10 MB** per file. * Numbers like `1.234,56`, `1234,56` or `1234.56`; dates like `31/10/2026` or `2026-10-31`; yes/no as `sim`, `não`, `true`, `false`, `1` or `0`. * Quoted cells can contain the separator and line breaks. Empty cell = empty field. ## Send through the API or the MCP[​](#send-through-the-api-or-the-mcp "Direct link to Send through the API or the MCP") The **How to send records** card, on the entity page, shows the three ways with the right address: | Way | How | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | **Import CSV** | From the dashboard, as above. | | **API** | `POST /api/v1/entities/{id}/records` with up to 1,000 records per call. With `"mode": "replace"`, the ones left out are removed. For a CSV, `POST /api/v1/entities/{id}/records/import`. See the [reference](https://docs.dashboards.kobana.com.br/en/en/api/v1/post-entities-id-records). | | **MCP** | An assistant connected to the MCP uses `dashboards_entities_records_push`, `dashboards_entities_records_import` and `dashboards_entities_records_delete`. | Customers can create records too: a [Form](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/formularios-e-acoes.md) block with the **Save to entity** action saves each portal submission as a record of the entity. An entity without a connector can also be created through the API (`POST /api/v1/entities` with `"source_kind": "push"`) and the MCP (`dashboards_entities_create`). ## Remove a record[​](#remove-a-record "Direct link to Remove a record") Open the record and click **Remove record**. It leaves the entity and disappears from the portal — and comes back if it is sent again. Through the API, use `DELETE /api/v1/entities/{id}/records/{record_id}` (the record id or the identifier value). ## Sync[​](#sync "Direct link to Sync") An entity without a connector never syncs: the **Sync** buttons give way to **Import CSV**, and there is no logs tab. The status becomes **Up to date** after the first send (before it, **Never synced**). Each send shows in the [audit log](https://docs.dashboards.kobana.com.br/en/en/sistema/auditoria.md) as *Records sent to the entity*. --- # Entity sync Each entity chooses **when** its records are read from the source. You set this in **When to sync**, when creating or editing the entity (**Data › Entities** › the entity › **Edit**). ## The three modes[​](#the-three-modes "Direct link to The three modes") | Mode | What it does | When to use | | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | | **Scheduled** | Reads all the records from the source from time to time, on the [connector's schedule](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/sincronizacao.md) | The default. Good for most cases | | **Manual** | Reads all the records only when you ask | Data that rarely changes, such as the documents of a contract | | **When the user opens the portal** | Reads only the records of each tenant ID, when a user of that tenant signs in to the portal | Sources too big to copy whole, or that only answer per customer | In **Scheduled** and **Manual** entities, the **Sync** and **Full sync** buttons on the entity page fetch the data right away (see [incremental or full](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/sincronizacao.md)). ## When the user opens the portal[​](#when-the-user-opens-the-portal "Direct link to When the user opens the portal") In this mode, the entity never copies the whole source. When a portal user signs in, the platform asks the source only for the records of their tenant ID, stores them and shows them. In the **Aurora Educação** workspace, the **Mensalidade** entity works this way: each guardian's tuition fees are read from the academic system when they open the portal. To use this mode, the entity needs to: * read from an endpoint, tool or table (not from an [SQL query](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/consultas-sql.md)); * have an **Owner ID**; * have a [sync filter](#sync-filters) with the user's **Tenant ID** — it is what makes the source return only the records of the person who signed in. Also choose the **tenant data validity**: how long the records read are valid before being read again (5 minutes, 15 minutes, 1 hour, 6 hours or 24 hours; the default is 1 hour). Within the validity, the portal shows what is already stored, without calling the source. After it, the portal shows the stored records while it fetches the new ones. On the entity page, the sync buttons give way to the notice **Syncs when the customer opens the portal**, and the **Tenants** tab appears. It lists each tenant ID that has already synced, with the portal users who have that tenant ID, the status (**Queued**, **Syncing**, **Synced** or **Error**), the records, the result of the last read, the last sync and the last access. The menu on each row has **Sync now** and **Full sync** for that tenant. ## Sync filters[​](#sync-filters "Direct link to Sync filters") Sync filters tell the source what to send, so the entity stores only the records that matter — for example, only the invoices from the last 12 months. They are in **Sync filters**, when creating or editing the entity, and work differently for each connector type: | Connector | How the filter reaches the source | | ------------ | ----------------------------------------------------------------- | | **API** | As a parameter on every call: the API returns only what passes it | | **MCP** | As a tool argument on every call | | **Database** | As a condition on the table read (all of them must hold) | For each filter, choose the parameter, argument or column, the operator (when the source accepts more than one: equal to, different from, greater than, contains, is one of, is empty…) and the value. On date fields, the value can be a **fixed date** or a number of **days ago** or **days ahead**, counted from each sync. An entity accepts up to 20 filters. The **Tenant** button uses as the value the tenant ID of the user who signed in to the portal — it only applies to entities that sync [when the user opens the portal](#when-the-user-opens-the-portal). info A full sync removes from the entity the records that the filters leave out. The sample from **Fetch data**, when creating the entity, doesn't use the Tenant filter. ## Pagination[​](#pagination "Direct link to Pagination") APIs usually return the records in pages. In **Sync pagination**, the platform already comes with what the spec declares, and you can adjust it: | Option | How the sync reads | | --------------------------------- | --------------------------------------------------------------------------------------------------------- | | **No pagination (a single call)** | Makes one call and stores what comes back | | **By page number** | Asks for one page after another until a page smaller than the requested size (or an empty one) comes back | | **By offset** | Same, advancing by the offset | | **By cursor** | Follows the cursor the response returns until it comes back empty | For each option, enter the parameter names (page, page size, offset, limit, cursor) and the page size, up to 1,000. For the cursor, also enter the **path of the next cursor in the response**. In database entities, the option is **Sync read**: how many **rows per read** the sync reads at a time (the default is 500). ## Follow along[​](#follow-along "Direct link to Follow along") In the entity **Overview**, the **Sync** panel shows: | Item | What it shows | | ------------------------------------ | ------------------------------------------------------------------------------------------------------- | | **Status** | **Up to date**, **Queued**, **Syncing**, **Error** or **Never synced** | | **Records** | How many records the entity has | | **Last sync** and **Last full sync** | When the last sync and the last full sync happened | | **Last run** | Whether it was full or incremental, and how many records were read, new, changed, unchanged and removed | When the last sync failed, the error message appears right below. The entity **Logs** tab shows the calls the sync made to the connector — click one to see what was sent and what came back. If the read stopped at the per-run record limit, the panel warns you: in that case, the removal of records that disappeared from the source didn't run. --- # Docs MCP This documentation has **its own MCP server**. It lets an AI assistant (Claude, ChatGPT, Cursor, VS Code, Claude Code) search and read the pages of this site without you copying and pasting anything, so answers about Magic Dashboard come from the published content, in the language you choose. ``` https://docs.dashboards.kobana.com.br/mcp ``` :::warning Not the product's MCP The Docs MCP only **reads the documentation**. It does not access your account, does not see workspaces, portals or portal users, and changes nothing. For an agent to operate Magic Dashboard, use the **product MCP** (`mcp.dashboards.kobana.com.br`), which requires sign-in and follows your permissions — see [MCP › Clients](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/clients.md). ::: ## How it works[​](#how-it-works "Direct link to How it works") * **Public and read-only:** no sign-in, no token. It exposes the same content anyone sees on the site. * **Always current:** it reads the published version of the documentation. A new or changed page shows up in the MCP as soon as the site is published. * **Three languages:** Portuguese (`pt`), English (`en`) and Spanish (`es`). Without a language, it uses Portuguese. * **Transport:** Streamable HTTP, sessionless. Any MCP client that connects to a remote server by URL works. ## Tools[​](#tools "Direct link to Tools") | Tool | What it does | Parameters | | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | | `search_docs` | Searches pages by keywords in the title, path, summary and page text, ignoring accents and case. Returns the best pages with path and summary | `query` (required), `locale`, `limit` (1 to 25, default 8) | | `get_page` | Returns the full content of a page as Markdown | `path`: the path returned by `search_docs` or `list_pages` (e.g. `/en/portal/acesso`) or the full URL | | `list_pages` | Lists every page, with path and summary | `locale` | | `search_openapi` | Searches REST API operations (endpoints) by keywords in the summary, path and description. Returns the best operations with method, path and `operationId` | `query` (required), `version`, `locale`, `limit` (1 to 25, default 8) | | `get_operation` | Returns one API operation in full: description, parameters, request body and responses with their schemas | `operation_id`, or `method` and `path`; `version`, `locale` | The assistant decides on its own when to call each tool. It usually searches with `search_docs` and then reads the relevant pages with `get_page`. ## Installing[​](#installing "Direct link to Installing") The quickest way is the **Copy page** menu at the top of every page of this site. Under **Docs MCP** you'll find: * **Connect to Cursor** and **Connect to VS Code:** install the server in one click. * **Copy MCP config:** copies the JSON block for clients configured by file. * **Copy MCP command:** copies the install command for the terminal. If you'd rather configure it by hand, the steps for each client are below. ### Any client, from the terminal[​](#any-client-from-the-terminal "Direct link to Any client, from the terminal") [`add-mcp`](https://www.npmjs.com/package/add-mcp) detects the clients installed on your machine and adds the server to them: ``` npx add-mcp "https://docs.dashboards.kobana.com.br/mcp" ``` ### Claude Code[​](#claude-code "Direct link to Claude Code") ``` claude mcp add --transport http kobana-dashboards-docs https://docs.dashboards.kobana.com.br/mcp ``` ### Cursor[​](#cursor "Direct link to Cursor") Use **Connect to Cursor** in the page menu, or add this to `~/.cursor/mcp.json` (all projects) or the project's `.cursor/mcp.json`: ``` { "mcpServers": { "kobana-dashboards-docs": { "url": "https://docs.dashboards.kobana.com.br/mcp" } } } ``` ### VS Code[​](#vs-code "Direct link to VS Code") Use **Connect to VS Code** in the page menu, or create `.vscode/mcp.json` in the project. In VS Code the key is `servers`, not `mcpServers`: ``` { "servers": { "kobana-dashboards-docs": { "type": "http", "url": "https://docs.dashboards.kobana.com.br/mcp" } } } ``` ### Claude and ChatGPT[​](#claude-and-chatgpt "Direct link to Claude and ChatGPT") In **Settings › Connectors**, add a custom connector and paste the URL `https://docs.dashboards.kobana.com.br/mcp`. There is no sign-in. ### Other clients configured by file[​](#other-clients-configured-by-file "Direct link to Other clients configured by file") ``` { "mcpServers": { "kobana-dashboards-docs": { "type": "http", "url": "https://docs.dashboards.kobana.com.br/mcp" } } } ``` ## Example questions[​](#example-questions "Direct link to Example questions") With the server connected, just ask. The assistant checks the documentation before answering: * "How do I connect an external API as a connector and use its data in the portal?" * "What is the tenant ID, and how does it link a portal user to their data?" * "How do I set up SSO sign-in and a custom domain for the portal?" * "Write an example API call to create an entity, based on the documentation." ## Testing without a client[​](#testing-without-a-client "Direct link to Testing without a client") ``` curl -s https://docs.dashboards.kobana.com.br/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_docs","arguments":{"query":"webhook","locale":"en"}}}' ``` ## Limits[​](#limits "Direct link to Limits") * The per-endpoint API reference pages are not part of `search_docs`/`get_page`: they are generated from the OpenAPI spec, so the MCP reads the spec directly, with `search_openapi` and `get_operation`. The full spec is still at [API › OpenAPI](https://docs.dashboards.kobana.com.br/en/en/api/overview/openapi.md). * Search is by keywords, not semantic. If nothing comes up, try other terms or ask the assistant to use `list_pages`. * You can also read any page as Markdown by appending `.md` to its URL, or download the whole documentation at [`llms-full.txt`](https://docs.dashboards.kobana.com.br/en/llms-full.txt). --- # Getting started The **Getting Started** page (`/dashboard/getting-started`) tracks the setup of each workspace. Each step shows whether it is already done, and the checklist disappears from the menu when everything is ready — or when you decide to hide it. ![Completed getting started checklist](/en/assets/images/primeiros-passos-9657f3d361704ebf0631e12c956bd7fe.png) ## The path to a live portal[​](#the-path-to-a-live-portal "Direct link to The path to a live portal") 1. **Connect your data** — in [Data › Connectors](https://docs.dashboards.kobana.com.br/en/en/dados/conectores/.md), connect the API, MCP server or database where your customers' information lives. 2. **Create the entities** — in [Data › Entities](https://docs.dashboards.kobana.com.br/en/en/dados/entidades/.md), choose what becomes portal content (invoices, contracts…) and which field identifies the holder of each record. 3. **Build and publish the pages** — in the [Builder](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/.md), build the pages with blocks and the entities' data, check them with "View as" and publish. 4. **Apply your brand** — in [Portal › Brand](https://docs.dashboards.kobana.com.br/en/en/portal/marca.md), the portal's name, logos and icon. 5. **Set up access** — in [Portal › Access](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md), the sign-in methods and, if you want, a [custom domain](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md). 6. **Add the portal users** — in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md), with each one's tenant ID: one at a time, by [spreadsheet import](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/importar.md) or through the API. 7. **Follow the first sign-in** — the step is completed when the first user signs in to the portal. To integrate your systems, generate an [API token](https://docs.dashboards.kobana.com.br/en/en/sistema/api-e-webhooks/tokens.md) and register [webhooks](https://docs.dashboards.kobana.com.br/en/en/sistema/api-e-webhooks/webhooks.md) to receive events. --- ## [📄️AI usage](https://docs.dashboards.kobana.com.br/en/en/inteligencia-artificial/uso.md) [How much the Builder's AI assistant was used in the workspace and what it cost, day by day.](https://docs.dashboards.kobana.com.br/en/en/inteligencia-artificial/uso.md) --- # AI billing In **Artificial Intelligence › Billing** (`/dashboard/ai/billing`) you can see whether the AI assistant is available, who is paying for usage, how much of the month's allowance has been spent, whether the plan has excess and how many prepaid credits the organization has. ![Aurora\'s AI billing: US$ 50 courtesy in effect, US$ 40 cap and prepaid credits](/en/assets/images/ia-faturamento-fcf5ed21cbba3343654ded1b8c58c3b2.png) ## What belongs to the organization and what belongs to the workspace[​](#what-belongs-to-the-organization-and-what-belongs-to-the-workspace "Direct link to What belongs to the organization and what belongs to the workspace") * **The organization's:** the availability notice, the month's allowance, the excess, the month-to-date spend and the prepaid credits. They apply to all workspaces together. * **The active workspace's:** the **Usage** and **Costs** cards and the **Usage history**, always for the period chosen in the date picker (by default, the current month). ## AI credits[​](#ai-credits "Direct link to AI credits") AI usage is charged in credits: **1 credit = US$ 1**. There are two kinds: * **Subscription credits** — the monthly allowance that comes with the plan. It renews every month. If the plan includes **excess**, usage may go past the allowance, and what goes past is billed at the end of the period. * **Prepaid credits** — bought separately. They become a balance and run out as they are used. ## Who pays for usage[​](#who-pays-for-usage "Direct link to Who pays for usage") Each interaction with the assistant is paid for by one of these sources, in this order: 1. **Subscription** — the plan's monthly allowance, while there is room left this month. 2. **Courtesy** — a monthly allowance offered by Kobana, with an expiration date. 3. **Prepaid** — the credits your organization has bought, while there is a balance. 4. **Excess** — only if the plan includes the subscription excess. Usage goes on and is billed at the end of the period. The allowance comes first because it renews every month; the prepaid credits come before the excess so you spend what you already paid for before a new charge. Without excess in the plan, once the allowance, the courtesy and the credits run out, the assistant stops until you buy more credits. There is no free usage: an organization with no allowance, no courtesy and no credits cannot use the assistant until it subscribes to the plan, receives a courtesy from Kobana or buys credits. ## Assistant availability[​](#assistant-availability "Direct link to Assistant availability") The notice at the top of the screen tells you whether the assistant can answer right now and who will pay for the next interaction: | Notice | What it means | | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | The assistant is available (paid by the subscription allowance) | The month's allowance covers usage. | | The assistant is available (paid by the courtesy) | The courtesy covers usage. | | The assistant is available (paid by prepaid credits) | The allowance and the courtesy no longer cover usage; prepaid credits are paying. | | The assistant is available (paid by the subscription excess, billed at the end of the period) | The allowance, the courtesy and the credits ran out; the plan's excess is paying. | | No AI credits | No source covers usage: buy credits to continue. | | The monthly AI limit has been reached | The month's spend reached the organization's monthly cap. Nothing pays past it — neither the credits nor the excess. | | We couldn't confirm the AI plan right now | A temporary failure while checking the plan. Try again in a few minutes. | When the assistant is unavailable, the Builder chat refuses new messages until the situation changes. ## Usage and costs for the period[​](#usage-and-costs-for-the-period "Direct link to Usage and costs for the period") * **Usage:** total interactions (answered messages), input tokens (what the assistant read), output tokens (what it wrote) and the total tokens. * **Costs:** the total amount for the period, in US$, in the active workspace. Right below, the spend **month to date across all workspaces**. The day-by-day and interaction-by-interaction breakdown is in [AI usage](https://docs.dashboards.kobana.com.br/en/en/inteligencia-artificial/uso.md). ## Allowance of the month[​](#allowance-of-the-month "Direct link to Allowance of the month") The **Allowance of the month** card shows the allowance in effect now, a bar with how much of it has been used and where it comes from: * **Monthly allowance of your subscription** — the bar measures what the subscription paid this month. Right below, the card says whether the plan has **excess** (and how much it paid this month) or whether, without excess, usage past the allowance goes on with prepaid credits only. * **AI courtesy limit** (with the expiration date, when there is one), when there is no subscription allowance. * **Organization monthly cap**, when set — a maximum for the whole month's spend, adding up every source. It applies even to the prepaid credits and the excess. With neither an allowance nor a courtesy, the card shows **No limit set**. The allowance, the excess and the cap are set with Kobana; this screen only shows the values. ## Prepaid credits[​](#prepaid-credits "Direct link to Prepaid credits") The **Prepaid credits** card shows the organization's balance and how much of it was used this month. The balance goes down as credits pay for interactions and goes up when the organization buys more. To buy credits, talk to Kobana. ## Usage history[​](#usage-history "Direct link to Usage history") A daily chart for the active workspace, with the maximum and the total for the period and a table with each day's amount. Pick what to see in the selector next to the title: **Tokens**, **Interactions** or **Amount (USD)**. ## Example[​](#example "Direct link to Example") The Aurora organization has no subscription credits: it has a courtesy of US$ 50 per month and a monthly cap of US$ 40. While the courtesy covers usage, the notice says "paid by the courtesy", and the prepaid credits (what is left of a US$ 25 purchase) are kept for when it doesn't. If Aurora subscribed to a plan with a US$ 30 allowance and excess, the order would be: the month's first US$ 30 from the allowance, then the courtesy, then the prepaid credits and, only then, the excess — always stopping at the US$ 40 cap. --- # AI usage In **Artificial Intelligence › Usage** (`/dashboard/ai/usage`) you can see how much the AI assistant was used in the selected workspace and what it cost, day by day and interaction by interaction. ![AI usage for the Aurora Energia workspace in October](/en/assets/images/ia-uso-9127c693a75fe4c43a57ab4b4b664ec8.png) ## What is counted[​](#what-is-counted "Direct link to What is counted") Usage comes from the [Builder's AI Chat](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/chat-com-ia.md): every message the assistant answers is an **interaction**. For each one, the platform records: | Measure | What it is | | ----------------- | -------------------------------------------------------- | | **Input tokens** | What the assistant read in order to answer. | | **Output tokens** | What the assistant wrote. | | **Total tokens** | Input + output. | | **Amount (USD)** | What the interaction cost your organization, in dollars. | A **token** is a piece of text, usually shorter than a word. It is the unit AI models use to measure what they read and write. ## Period and workspace[​](#period-and-workspace "Direct link to Period and workspace") * **Period:** by default, from the 1st of the month until today. Change it in the date picker, in the top right corner; you can look back up to 12 months. Dates follow Brasília time. * **Workspace:** the screen shows only the usage of the active workspace. To see another one, switch workspaces at the top of the dashboard (see [Workspaces](https://docs.dashboards.kobana.com.br/en/en/sistema/workspaces.md)). The refresh button reloads the numbers without leaving the screen. ## What the screen shows[​](#what-the-screen-shows "Direct link to What the screen shows") * **Period cards:** total interactions, total tokens and amount in US$. * **Amount over time:** a chart with what usage cost each day, with the daily maximum and the total for the period. * **Daily breakdown:** one row per day with interactions, input tokens, output tokens, total and amount. * **Latest usage:** the 20 most recent interactions, with date and time, total tokens, amount and **Paid by** — who covered that interaction: | Paid by | Meaning | | ---------------- | ------------------------------------------------------------------------------------------------------ | | **Subscription** | The monthly allowance of the plan (subscription credits). | | **Courtesy** | The AI courtesy offered by Kobana. | | **Prepaid** | The prepaid credits your organization has bought. | | **Excess** | The subscription excess, after the allowance and the prepaid credits; billed at the end of the period. | ## Example[​](#example "Direct link to Example") In the **Aurora Energia** workspace, from October 1 to 24, the assistant answered 9 messages, used about 1.16 million tokens and cost US$ 5.11. The most expensive day was 10/17, at US$ 1.67. To see the month's limit, the credits and who is paying for usage right now, go to [AI billing](https://docs.dashboards.kobana.com.br/en/en/inteligencia-artificial/faturamento.md). --- # Authentication The MCP server accepts a **Bearer token** in the `Authorization` header, and nothing else — no cookie, no client certificate. :::warning Never in the URL A token in the query string (`?access_token=…`, or parameters such as `token` and `api_key`) **does not authenticate**, even next to a valid header: the request is answered `401` with `error="invalid_request"` in `WWW-Authenticate`. A token in the URL leaks into proxy and CDN logs, `Referer` and browser history — the MCP authorization spec and RFC 6750 forbid it. ::: That token is an **OAuth 2.1 access token issued by the Kobana authorization server** (`https://account.kobana.com.br`): an RS256-signed JWT issued **for this resource**, whose `aud` is `https://mcp.dashboards.kobana.com.br`. It arrives one of two ways — the OAuth flow, run by the client itself, or a **personal token** you create in your Kobana account — and it is verified the same way in both cases. ``` Authorization: Bearer eyJhbGciOiJSUzI1NiIs… ``` :::info Each surface has its own audience A token issued for the MCP server is **not valid** on the REST API (`api.dashboards.*`), and an API token is not valid here. That is what stops a token handed to an assistant from being reused against the API — and the other way round. ::: ## Two ways to connect[​](#two-ways-to-connect "Direct link to Two ways to connect") | | OAuth flow | Personal token | | ---------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | | How you get it | Paste the URL into the client; it opens the Kobana sign-in and you authorize | Create it at **Kobana account → Tokens and Access → New Personal Token**: app **Magic Dashboard**, usage **MCP**, resources and access, validity | | How the client uses it | On its own, after you authorize | You paste it into the client as `Authorization: Bearer ` | | Validity | 30 minutes, renewed by the client | 7 days to 1 year, your choice | | Scope | The access levels you kept on the consent screen (`read`, `write`, `delete`, `import`, `export`) | The resources and access you selected | | Good for | Claude, ChatGPT, IDEs and any client with OAuth | Clients without OAuth support, scripts and automations | The personal token has to be created with the **MCP** usage. A token created for the **REST API** carries the API's audience and is refused here with `401` — and the reverse holds too. ## The OAuth flow[​](#the-oauth-flow "Direct link to The OAuth flow") You run none of these steps: the MCP client (Claude, ChatGPT, an IDE) does all of it on its own, starting from the URL. They are here for when something fails halfway. 1. **Challenge.** A request without a token gets `401` with the challenge every OAuth 2.1 resource server must send ([RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728)): ``` WWW-Authenticate: Bearer realm="kobana-dashboards-mcp", error="invalid_token", resource_metadata="https://mcp.dashboards.kobana.com.br/.well-known/oauth-protected-resource" ``` 2. **Resource metadata.** The client reads the document it points at. It is public and carries no secret — only pointers: ``` curl https://mcp.dashboards.kobana.com.br/.well-known/oauth-protected-resource ``` ``` { "resource": "https://mcp.dashboards.kobana.com.br", "authorization_servers": ["https://account.kobana.com.br"], "bearer_methods_supported": ["header"], "scopes_supported": [ "dashboards/builder", "dashboards/users", "dashboards/portal", "dashboards/connectors", "dashboards/entities", "dashboards/assets", "dashboards/ai", "dashboards/workspaces", "dashboards/members", "dashboards/admin", "read", "write", "delete", "import", "export" ], "resource_documentation": "https://docs.dashboards.kobana.com.br" } ``` 3. **Authorization server metadata** ([RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414)), at `https://account.kobana.com.br/.well-known/oauth-authorization-server`. 4. **Dynamic client registration** ([RFC 7591](https://datatracker.ietf.org/doc/html/rfc7591)). The client registers itself; the consent screen warns that it is not a verified app. 5. **Authorization with PKCE and `resource`** ([RFC 8707](https://datatracker.ietf.org/doc/html/rfc8707)). You sign in to Kobana, pick the organization (if you have more than one) and authorize. 6. **Token.** The client exchanges the code for a short-lived access token and sends it on every request, refreshing it when it expires. The token carries who you are (`sub`) and the organization you authorized (`org`). `org` is what scopes the data — no tool takes an organization as an argument. A token whose organization does not exist in Magic Dashboard gets `403 unknown_organization`. ## Authorization: the permissions of whoever authorized[​](#authorization-the-permissions-of-whoever-authorized "Direct link to Authorization: the permissions of whoever authorized") What a caller sees is **narrower** than the catalog: tools are filtered by the **dashboard permissions of the person who authorized the client**, in that organization, resolved on every request. The ceiling is always what that person can do in the UI. | Situation | Result | | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | The person is not a member of the organization | **Denies every tool** (`key_owner_not_member`). Authorize again with an account that belongs to the organization. | | Active membership | The person's permissions and roles, applied tool by tool. `owner` and the `*` wildcard open everything; `portal-users.*` opens the family. | | Membership suspended, removed, or with no role | **Denies every tool** (`membership_inactive`). | | The permission lookup fails | **Denies every tool.** Fail closed. | Permissions are read on every call, so revoking a role in the dashboard takes effect on the very next tool, without waiting for the token to expire. A tool the caller cannot run is **not listed** by `tools/list`. When `tools/call` refuses, the code says **who fixes it**: | Code | Who fixes it | | ------------------------- | -------------------------------------------------------------------------------------------------------------------------- | | `insufficient_scope` | Using a token that reaches the resource with the access requested — for example, a personal token with write access to it. | | `insufficient_permission` | An organization admin, granting the permission (the error names which). | | `membership_inactive` | Reinstating the person — no permission fixes a dead membership. | | `key_owner_not_member` | Authorizing again with an account that is a member of the organization. | :::tip Recommended posture for agents Authorize the client with an account that holds only the permissions the agent needs. A client authorized by a read-only analyst exposes only the read tools, whatever the model on the other end does. ::: ## Token scope[​](#token-scope "Direct link to Token scope") On top of permissions, the MCP server applies the scope the token carries, in the `scope` claim. The two checks add up: a tool only shows up if both allow it. There are five access levels, and **none stands in for another**: | Level | What it opens | | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `read` | The read tools, the resources, the read prompts and the completions. `write` reads too. | | `write` | Every tool that creates or changes data. It does not delete, import or export. | | `delete` | The delete tools: `*_delete`, `dashboards_entities_records_clear` and `dashboards_checklists_progress_reset`. | | `import` | `dashboards_workspaces_import`, `dashboards_entities_records_import`, `dashboards_imports_create` and `dashboards_backups_restore`. | | `export` | `dashboards_workspaces_export`, `dashboards_exports_create`, `dashboards_exports_download` and `dashboards_backups_download` — the downloads included, though they are reads as far as HTTP goes. | Each tool requires exactly the level the REST API requires of the route it dispatches to, so the MCP server never opens what the API refuses the same token. **Token with resources** — the case of a personal token and of an OAuth client's token. The resources define how far the token reaches, and the verbs apply only within them: | Token scope | Result | | ------------------------------------------------ | ------------------------------------------------------------------------------------ | | `dashboards/users dashboards/members read write` | Reads and writes portal users and team members (with their roles) — and nothing else | | `dashboards/users read` | Only reads portal users | | `dashboards/all read` | Reads everything, writes nothing | A resource outside the ten groups is reachable only with `dashboards/all`. `delete`, `import` and `export` on their own do not count as writing, and `write` on its own does not delete, import or export. A bare `all` means `dashboards/all`: it reaches every resource and grants no level. **Token without resources** — a token with access levels only (`read write`), or with another app's scopes only, reaches nothing: of the tools, only `dashboards_me` answers it. :::info What a client connected through the OAuth flow asks for The `/.well-known/oauth-protected-resource` document advertises the ten resource groups and the five access levels — `read`, `write`, `delete`, `import` and `export` — and that is what the client (Claude, ChatGPT, the MCP Inspector, IDEs) asks for. On the consent screen you decide, level by level, what it gets: uncheck `delete` and the delete tools stay out of reach, even if the client asks for them. Kobana grants a client only the levels it may receive — a client registered without verification, for example, gets reading only. The token it gets carries the resources and the levels granted, so it follows the token-with-resources rule above. The MCP server lists only the tools those levels reach; a tool outside them returns `insufficient_scope`, and the way out is to authorize again granting the missing access. ::: The same rule applies to the REST API, with the resource taken from the path and the level from the route: `GET` only needs to reach the resource, `DELETE` needs `delete`, the bulk exports and imports need `export` and `import`, and the rest needs `write` — see the authentication section of the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1). Without the level the answer is `403 insufficient_scope`. ### Personal token revocation[​](#personal-token-revocation "Direct link to Personal token revocation") Revoking a personal token in your Kobana account **does not cut access right away**: Magic Dashboard verifies the token on its own, without asking Kobana on every call, and it keeps being accepted until it expires. So: * pick the **shortest validity** the use allows; * select only the **resources and access** the agent needs; * to cut an agent off immediately, suspend or remove the person's membership in the organization — permissions are read on every call and take effect at once. ## Workspaces[​](#workspaces "Direct link to Workspaces") Inside the organization, data lives in workspaces, and the token reaches only the ones the person has access to. Each call resolves its workspace like this: 1. **Per call:** every data tool takes an optional `workspace_id` argument, which applies to that call alone. 2. **Connection default:** without the argument, the workspace of the `X-Workspace-Id` header (or `?workspace_id=` on the server URL) configured in the client applies; without it, the **only** workspace the person has access to, when there is just one. 3. **Neither:** the person has access to more than one workspace and none was chosen — the call does not run. `dashboards_workspaces_list` lists the workspaces you can use, with the id of each. Tools that do not read workspace data (such as `dashboards_me`, `dashboards_workspaces_list`, `dashboards_schemas_get` and the organization and team ones) ignore all of this. A tool's workspace errors are **not** HTTP errors: they come back as an `isError` result, so the model can fix the call: | `code` | When | | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `workspace_required` | No workspace resolved and the person has access to several. Pass `workspace_id` — call `dashboards_workspaces_list` for the ids. | | `workspace_access_denied` | The `workspace_id` passed is not one of the person's, or they have access to no workspace at all. | An `X-Workspace-Id` outside the person's access is refused at the connection already, with `403 workspace_access_denied` (table below). Resources and completions take no `workspace_id` and use only the connection's workspace — see [Resources and prompts](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/resources-and-prompts.md#resources). ## Failure modes[​](#failure-modes "Direct link to Failure modes") | HTTP | `code` | Cause | | ---- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 400 | `-32022` (JSON-RPC) | Unsupported protocol version, in the `MCP-Protocol-Version` header or in `_meta`; `data.supported` lists the supported ones. See [Transport](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/transport.md#protocol-versions). | | 401 | `invalid_token` | Token missing, malformed, invalid, or issued for another resource (for example, the REST API, or for more than one resource at once). | | 401 | `token_expired` | The token expired. The client refreshes it and retries. The `WWW-Authenticate` challenge says `error="invalid_token"` in both cases; the body `code` tells them apart. | | 401 | `invalid_request` | Token sent in the query string (`?access_token=`…). Only the `Authorization: Bearer` header counts. | | 403 | `unknown_organization` | The token is valid, but the organization it names does not exist in Magic Dashboard. | | 403 | `workspace_access_denied` | The `X-Workspace-Id` header (or `?workspace_id=`) names a workspace the person cannot access. Call `dashboards_workspaces_list` for the ones they can. | | 403 | `FORBIDDEN` | `Origin` outside the allow-list (`origin_not_allowed`). | | 404 | `NOT_FOUND` | The request arrived through a host that does not serve MCP. | | 429 | `TOO_MANY_REQUESTS` | Rate limit reached, with `Retry-After` and `X-RateLimit-Limit`/`-Remaining`/`-Reset` — see [Rate limit](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/rate-limit.md). | | 503 | `SERVICE_UNAVAILABLE` | We could not reach the authorization server to verify the token. It is on our side: retry after `Retry-After`. | Every `401` carries the `WWW-Authenticate` challenge above, which sends the client back into the OAuth flow. Permission denials are **not** HTTP errors: they come back as a tool result flagged `isError`, so the model can read them and react — see [Errors](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/errors.md). ## Host and edge[​](#host-and-edge "Direct link to Host and edge") `/mcp` must be reachable **only** through `mcp.dashboards.*` — never through the app host, never through the API host, whose distributions point at the same origin. Any other path answers `404`: the endpoint does not advertise that it exists somewhere else. The OAuth resource identifier — and therefore the audience the token must carry — is derived from the **server configuration**, never from the request `Host`, so a forged `Host` cannot steer a client to a different identifier. --- # Clients Any client that speaks **Streamable HTTP** MCP and can run the MCP **OAuth 2.1** flow can connect. You only provide the URL; the client discovers where to authenticate on its own, opens the Kobana sign-in in the browser and keeps the token — see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). A client without OAuth support connects too, with a **personal token**: create it at **Kobana account → Tokens and Access → New Personal Token**, with the **Magic Dashboard** app and the **MCP** usage, and configure the client to send it in the `Authorization: Bearer ` header. ## Claude Code[​](#claude-code "Direct link to Claude Code") ``` claude mcp add --transport http kobana-dashboards https://mcp.dashboards.kobana.com.br ``` Then run `/mcp` in a session and pick **Authenticate** to sign in to Kobana. With a personal token, no OAuth flow: ``` claude mcp add --transport http kobana-dashboards https://mcp.dashboards.kobana.com.br \ --header "Authorization: Bearer " ``` ## Clients configured by file[​](#clients-configured-by-file "Direct link to Clients configured by file") Clients that read a JSON configuration file ask for the URL and the transport. Through the OAuth flow there is no authentication header: ``` { "mcpServers": { "kobana-dashboards": { "type": "http", "url": "https://mcp.dashboards.kobana.com.br" } } } ``` On the first connection the client opens the browser for you to authorize. There is no organization-selection header: you pick the organization on the consent screen, and it is recorded in the token. With a personal token, add the header — the organization is the one of the account you created the token in: ``` { "mcpServers": { "kobana-dashboards": { "type": "http", "url": "https://mcp.dashboards.kobana.com.br", "headers": { "Authorization": "Bearer " } } } } ``` Treat the file as a secret: whoever reads it uses the token. ## Clients that connect by URL[​](#clients-that-connect-by-url "Direct link to Clients that connect by URL") Claude and ChatGPT connect a remote server by pasting the URL `https://mcp.dashboards.kobana.com.br` into their connector settings. The OAuth flow runs inside the app itself. ## Recommended posture for agents[​](#recommended-posture-for-agents "Direct link to Recommended posture for agents") * **Authorize with the right account.** Tools are narrowed to the dashboard permissions of whoever authorized the client. A client authorized by a read-only analyst exposes only the read tools, whatever the model on the other end does. It is the strongest way to restrict an agent. * **One token per client.** Each client runs its own flow and gets its own token, which is valid only on MCP — it cannot call the REST API. To switch an agent off, remove its authorization in Kobana without affecting your integrations. * **Personal token: short validity, least scope.** Select only the resources and access the agent needs, and the shortest validity the use allows: revoking the token in Kobana does not cut access before it expires — see [Personal token revocation](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md#personal-token-revocation). * **Explore read-only first.** Magic Dashboard has no sandbox: destructive tools really suspend accounts, delete records and send invitations. The server asks for confirmation before each one (in the chat, or through an approval link when the client does not show the form), but for the first exploration, authorize with a read-only account or a token scoped to read only. ## Checking the connection[​](#checking-the-connection "Direct link to Checking the connection") The simplest way is to ask the assistant: "which organization am I using in Magic Dashboard?" — it calls `dashboards_organization_get`. With a token issued for MCP — a personal token with the **MCP** usage, for example — you can check with `curl`: ``` # 1. Which organization does this token reach? curl -s https://mcp.dashboards.kobana.com.br/ \ -H "Authorization: Bearer $MCP_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call", "params":{"name":"dashboards_organization_get","arguments":{}}}' # 2. How many tools does this token reach? curl -s https://mcp.dashboards.kobana.com.br/ \ -H "Authorization: Bearer $MCP_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | jq '.result.tools | length' ``` If the number is lower than you expected, it is the permissions of whoever authorized or the token scope — see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). It is not an error. --- # Endpoints ## MCP server[​](#mcp-server "Direct link to MCP server") | Environment | URL | | ----------- | -------------------------------------- | | Production | `https://mcp.dashboards.kobana.com.br` | Magic Dashboard has a single environment, production — there is no sandbox. The server URL is the **root of the host** — that whole address is what you paste into an MCP client. It is also the OAuth *resource identifier*, which is why it carries no path. ## Routes served[​](#routes-served "Direct link to Routes served") | Method | Path | Purpose | | -------- | --------------------------------------- | ------------------------------------------------------------------- | | `POST` | `/` | One JSON-RPC message per request. The entire tool surface. | | `GET` | `/.well-known/oauth-protected-resource` | Protected-resource metadata (RFC 9728). Public, unauthenticated. | | `GET` | `/` | `405` — this server is stateless and opens no server→client stream. | | `DELETE` | `/` | `204` — there are no sessions to terminate. | ## Documentation and API[​](#documentation-and-api "Direct link to Documentation and API") | | URL | | ------------- | --------------------------------------- | | Documentation | | | REST API | | :::info Separate host, on purpose The MCP server has its own host rather than a path on the API or app host. Three reasons: the OAuth discovery document has to live at the root of the host; no dashboard cookie is ever sent to this origin, which removes a whole class of confused-deputy problems by construction; and the API host has an edge policy designed for server-to-server integrations, not for a consumer app. ::: ## Local development[​](#local-development "Direct link to Local development") In development the endpoint answers at `/mcp` on the app host (`http://localhost:3070/mcp`), and the discovery document at `/.well-known/oauth-protected-resource`. Outside development the host allow-list hides the endpoint (`404`) outside `mcp.dashboards.*`. On the MCP host, any path that is neither the endpoint nor the discovery document answers a JSON `404`, whatever the method: ``` { "error": { "code": "NOT_FOUND", "message": "Not found." } } ``` --- # Errors Failures arrive on **two different channels**, and the difference matters: one is a broken request, the other is something the model is meant to read and react to. ## Tool errors[​](#tool-errors "Direct link to Tool errors") Anything the caller can act on — validation, not found, insufficient scope, insufficient permission, an endpoint error — comes back as a **successful JSON-RPC response** whose result is flagged `isError`, carrying the API's own error envelope as text: ``` { "jsonrpc": "2.0", "id": 2, "result": { "isError": true, "content": [{ "type": "text", "text": "{ \"error\": { \"code\": \"NOT_FOUND\", \"message\": \"Portal user not found\" } }" }] } } ``` The `code` vocabulary is the REST API's, unchanged. The ones you will meet most: | `code` | When | | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `VALIDATION_ERROR` | The arguments failed the endpoint's validation; the details name the fields. | | `NOT_FOUND` | No such record, or it belongs to another organization. | | `CONFLICT` / `DUPLICATE_ERROR` | `external_id` already in use, or a duplicated business key. | | `BAD_REQUEST` | Business rule violated — for example, resending the invitation of a portal user who is already active. | | `FORBIDDEN` | The operation is not allowed on this resource in the state it is in. | | `EXTERNAL_SERVICE_ERROR` | An external service the operation depends on refused or did not answer. | | `USER_DECLINED` | On the `2026-07-28` era, the user declined or cancelled the confirmation of a destructive tool. Nothing was changed. | | `confirmation_required` | The tool is destructive, the client cannot confirm (2025 era, or no elicitation forms) and the token names no person who could approve by link. Use a client on revision `2026-07-28` with elicitation, or a person's token. Nothing was executed. | | `confirmation_replayed` | The confirmation sent had already been used — each one runs a call once. Call the tool again to be asked again. Nothing was executed. | | `confirmation_unavailable` | The server could not record the confirmation right now, so it refused the tool. Nothing was executed; try again later. | And the four MCP adds of its own, because they are about *authorization*, not about the resource: | `code` | Who resolves it | | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `insufficient_scope` | The token scope does not reach the tool: the resource is not in the token, or the verb the tool needs (`write`, `delete`, `import`, `export`) is missing. Use a token that reaches the resource with that access: through the OAuth flow, authorize again keeping the missing level checked on the consent screen. The message says exactly what to add to the token's scopes. The approval tools (`dashboards_operation_approvals_*`) need reach only: any `dashboards/…` or `all` (with none, `dashboards/all` is missing). | | `insufficient_permission` | An organization admin, by granting the permission the error names. | | `membership_inactive` | Reinstating the person who authorized the client — no permission fixes a dead membership. | | `key_owner_not_member` | Authorizing the client again with an account that is a member of the organization. | Those four are separate **on purpose**: they are different conversations, with different people. A single error would say "you may not" without saying whom to ask. See [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). ### `input_required` is not an error[​](#input_required-is-not-an-error "Direct link to input_required-is-not-an-error") On the `2026-07-28` era, the first `tools/call` to a destructive tool may come back with `resultType: "input_required"` and a confirmation request for the user. That is the normal flow, not a failure: the client shows the question and re-sends the same call with the answer. See [Confirming destructive tools](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/resources-and-prompts.md#confirming-destructive-tools). ### `approval_required` is not an error[​](#approval_required-is-not-an-error "Direct link to approval_required-is-not-an-error") A client that does not show the form gets, for a destructive tool, a successful result with `"status": "approval_required"` and the approval URL: nothing ran yet, the person decides on the link. Show the URL and do not call the tool again; once the person says they decided, read the outcome with `dashboards_operation_approvals_get` and the `approval.id`. See [Approval by link](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/resources-and-prompts.md#approval-by-link). ## Protocol errors[​](#protocol-errors "Direct link to Protocol errors") A malformed message gets a JSON-RPC error object instead of a result: | Code | Meaning | | -------- | ------------------------------------------------------------------------------------------------------------------- | | `-32700` | Parse error — the body is not valid JSON | | `-32600` | Invalid request — not a JSON-RPC object, or an array (batching is not supported) | | `-32601` | Method not found | | `-32602` | Invalid params — unknown tool, prompt or argument, `name` missing; on the `2026-07-28` era, also resource not found | | `-32002` | Resource not found — 2025 era only (`2026-07-28` uses `-32602`) | | `-32603` | Internal error — an unexpected failure while running the tool | ``` { "jsonrpc": "2.0", "id": 3, "error": { "code": -32601, "message": "Method not found: tools/describe" } } ``` ## Transport errors[​](#transport-errors "Direct link to Transport errors") Rejections that happen **before** the JSON-RPC message is read are plain HTTP responses with the API's error envelope: missing or invalid token, unsupported protocol version, disallowed `Origin`, rate limit, a body over **2 MB** (`413`, with JSON-RPC error `-32600` `Request body too large`). They are listed in [Authentication → Failure modes](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md#failure-modes). ## Why `isError` and not a JSON-RPC error[​](#why-iserror-and-not-a-json-rpc-error "Direct link to why-iserror-and-not-a-json-rpc-error") A `404` on a portal user is not a defect in the MCP client — it is information about the world, and the model on the other side needs it to correct itself. Burying it in a protocol error would make the client treat it as a transport failure, hide the text and, at best, retry identically. Hence the rule: **if the caller can act on it, it is a result; if the request is broken, it is an error.** ## Observability[​](#observability "Direct link to Observability") Every `tools/call` writes a structured line with the tool, the organization, the token, the status and the duration. **Writes** also appear in the organization's audit trail, written by the dispatched endpoint itself and attributed to the person who authorized the client — what an agent did shows up next to what a person did, on the same screen. --- # Idempotency The tools that **create a resource** accept an optional `idempotency_key` argument. It is sent to the endpoint as the `X-Idempotency-Key` header the REST API already honors. ``` { "name": "dashboards_portal_users_create", "arguments": { "email": "joao@example.com", "tenant_id": "cliente-1042", "idempotency_key": "7c4a8d09-ca37-4f21-b1f0-3d2f2b8c9a11" } } ``` | | | | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | **Format** | Opaque string, 1 to 255 characters. A UUID is the usual choice. | | **Retry with the same body** | Returns the original response without running the operation again. | | **Retry with a different body** | Conflict. | | **Same key on another call** | Conflict — another person or token, another workspace, another endpoint or other query parameters never reuse the response. | | **Lifetime** | 24 hours. The stored response is encrypted; if it can no longer be read, the retry answers a conflict instead of running the operation again. | ## Why an agent needs this more than your backend[​](#why-an-agent-needs-this-more-than-your-backend "Direct link to Why an agent needs this more than your backend") An MCP client that times out and retries, or a model that decides "I'm not sure that worked, I'll do it again", is exactly the pattern that creates the second role, the second invitation and the second user. Your backend has a retry loop you wrote; the agent has judgment. **Send a key whenever the operation creates something or sends an invitation.** Reads and updates are naturally idempotent and need no key. ## Tools that accept it[​](#tools-that-accept-it "Direct link to Tools that accept it") | Family | Tools | | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | `portal-users` | `dashboards_portal_users_create`, `dashboards_portal_users_invite` | | `users`, `roles` | `dashboards_dashboard_users_create`, `dashboards_dashboard_users_upsert`, `dashboards_team_roles_create`, `dashboards_team_roles_upsert` | :::caution Invitations `dashboards_portal_users_invite` sends an email to the portal user — an effect in the world that no `_delete` undoes. Send `idempotency_key` with it even when you think you won't retry. ::: ## Upsert is not idempotency[​](#upsert-is-not-idempotency "Direct link to Upsert is not idempotency") `*_upsert` matches an existing record by `id`, then `external_id`, then by the resource's business key, and creates only when nothing matches. That solves "I don't know if it already exists", a different problem from "I don't know if my call arrived". The two combine well: an `upsert` with an `idempotency_key` is safe on both counts. --- # Introduction The **Magic Dashboard MCP server** is a remote [Model Context Protocol](https://modelcontextprotocol.io) server that exposes the operations of the public API — organization, portal users and team — as **tools** an AI client can call. You connect it by URL; there is nothing to install. It is served on its own host, `mcp.dashboards.kobana.com.br`, with **Streamable HTTP** transport in stateless mode and **Bearer token** authentication. No client certificate is involved. :::info Availability The server and its **292 tools** are implemented, and authentication goes through the Kobana authorization server: via the **OAuth 2.1** flow, where the client is given only the URL and signs in on its own, or via a **personal token** created in your Kobana account. The dedicated edge (the `mcp.dashboards.*` distribution, WAF and DNS) is still being provisioned. ::: ## When to use it[​](#when-to-use-it "Direct link to When to use it") | | REST API (`/v1`) | MCP server (this) | | --------- | ------------------------------- | ---------------------------------------------------- | | Consumer | your backend | an AI client (Claude, ChatGPT, an IDE) | | Setup | a token, out of band | one URL | | Transport | HTTPS/REST | Streamable HTTP (JSON-RPC 2.0) | | Auth | Bearer token issued for the API | OAuth 2.1 or a personal token, always issued for MCP | | Surface | 177 routes | 292 tools over the same endpoints | The MCP server **does not replace** the REST API. Every tool dispatches in-process to the endpoint that implements the operation, so filters, upsert matching, validation, proration and tenant isolation are exactly the same. If you are writing code, use the [REST API](https://docs.dashboards.kobana.com.br/en/en/api/overview/introduction.md). If you are connecting an assistant, use this. ## The principle[​](#the-principle "Direct link to The principle") **A capability exists in MCP only if it exists in the public API.** There is no second implementation of anything. The tool calls the endpoint's handler with the identity the caller's token already proved — the same person, the same organization — so it runs the way it would for any HTTP request, and the audit trail it writes is attributed to whoever authorized the client. A tool does what the endpoint does over REST — never more. The practical consequence: what exists only in the dashboard today does not become a tool before it becomes an endpoint. ## What you see is narrower than the catalogue[​](#what-you-see-is-narrower-than-the-catalogue "Direct link to What you see is narrower than the catalogue") `tools/list` returns only the tools **this caller can actually run**, filtered by the dashboard permissions of whoever authorized the client. An agent is not told about capabilities that would only earn it a refusal. The rules are in [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). ## Getting started[​](#getting-started "Direct link to Getting started") 1. **Point your client at the server URL** — see [Endpoints](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/endpoints.md) and [Clients](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/clients.md). 2. **Authorize.** The client opens the Kobana sign-in; sign in with an account of the organization and authorize access. See [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). 3. **List the tools** to confirm what your access reaches — ask the assistant, or, with a token issued for MCP at hand: ``` curl https://mcp.dashboards.kobana.com.br/ \ -H "Authorization: Bearer $MCP_TOKEN" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H "MCP-Protocol-Version: 2025-06-18" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }' ``` 4. **Explore the documentation** — the full catalogue is in [Tools](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/overview.md). ## Next steps[​](#next-steps "Direct link to Next steps") * [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md) — the OAuth flow, the personal token, the scope and permissions applied, and the failure modes. * [Endpoints](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/endpoints.md) — URLs per environment and the routes served. * [Transport](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/transport.md) — JSON-RPC, headers and methods. * [Resources and prompts](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/resources-and-prompts.md) — documents by URI, ready-made prompts, autocomplete, and the confirmation of destructive tools. * [Clients](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/clients.md) — connecting Claude Code and file-configured clients. * [Listing, sorting and fields](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/pagination.md) — `page`, `sort_by`, `fields`. * [Errors](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/errors.md) — the two failure channels, and why the difference matters. * [Tools](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/overview.md) — the catalogue of all 292 tools. --- # Listing, Sorting and Fields The `*_list` tools use the same pagination as the REST API: **by page number**. | Argument | Default | Max | | ---------- | ------- | ----- | | `page` | `1` | — | | `per_page` | `20` | `100` | ``` { "name": "dashboards_portal_users_list", "arguments": { "status": "active", "page": 2, "per_page": 50 } } ``` The result carries the usual envelope: ``` { "data": [ /* ... */ ], "meta": { "total": 142, "page": 2, "per_page": 50, "total_pages": 3 } } ``` When `page > total_pages`, `data` comes back empty — that is not an error. :::note Collections that do not paginate Some collections are **small configuration lists**. Those answer with the whole set and **do not accept `page`** — and the matching tool does not offer the argument either. That is intentional: a tool advertising `page` on a route that ignores it would make the model page forever through a list that never moves. ::: ## Sorting[​](#sorting "Direct link to Sorting") | Argument | Values | Default | | ------------ | ------------------------------------------------------- | ------------------- | | `sort_by` | A column name in **snake\_case** (`created_at`, `name`) | varies per resource | | `sort_order` | `asc` or `desc`, in any case | varies per resource | ``` { "name": "dashboards_portal_users_list", "arguments": { "sort_by": "created_at", "sort_order": "asc" } } ``` Two rules worth knowing, different from each other on purpose: * **A column the resource does not sort by falls back to the default.** Sorting by a field that does not exist is a request the server cannot honour, but it is not a reason to fail the whole call; `dashboards_schemas_get` lists the accepted ones under `sortable_fields`. * **A direction that is not a direction is a `400`.** `sort_order: "descending"` is an error, not a silent `desc` — returning the right order by accident would hide the bug until the day the accident landed the other way. ## Fields (`fields`)[​](#fields-fields "Direct link to fields-fields") Every read tool accepts `fields`, an array of column names. Omitted, the whole resource comes back; given, only that: ``` { "name": "dashboards_portal_users_list", "arguments": { "status": "active", "fields": ["email", "status", "created_at"] } } ``` | Rule | Why | | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **`id` always comes back** | A projection you cannot follow is useless, and dropping `id` silently would break the next call, not this one. | | **Top level only** | `fields: ["person"]` returns the whole nested object; there is no `person.name` syntax. | | **Reads only** | A create answers with an envelope the caller did not choose; projecting it would hide half the receipt for an operation that already happened. | | **An unknown name is a `400`** | With the list of what exists. Ignoring it would return fewer fields than asked for and look like the resource does not have them — a wrong answer wearing a right one's face. | `fields` is the cheapest way to cut the context an agent spends: a list of 300 portal users with three columns fits where the same list in full would not. ## `dashboards_schemas_get` — the field catalogue[​](#dashboards_schemas_get--the-field-catalogue "Direct link to dashboards_schemas_get--the-field-catalogue") `fields` only helps if you know what to ask for, and a model left guessing will try `portal_user.mail_address` when the contract says `email`. `dashboards_schemas_get` answers that directly: ``` { "name": "dashboards_schemas_get", "arguments": {} } { "name": "dashboards_schemas_get", "arguments": { "resource": "portal_user" } } ``` With no argument it returns the resource catalogue. With `resource`, it returns every field of that resource — name, type, enum, nullability, description — and, separately, its `sortable_fields`. It comes from the same schemas that generate the published OpenAPI, so the list the tool reports and the one this documentation publishes cannot diverge. ## Data contract[​](#data-contract "Direct link to Data contract") What holds for the v1 API holds here, because it is the same code: * **snake\_case everywhere**, arguments and responses. * **Dates in ISO 8601**, processed in UTC. * **Writes accept `idempotency_key`** — see [Idempotency](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/idempotency.md). --- # Rate Limiting The MCP server shares the **same limits as the REST API**, counted **per person and organization** — the token's `sub` and `org`, not the token itself. Switching tokens does not reset the budget: a new token, whether from a fresh OAuth authorization or a new personal token, for the same person in the same organization lands in the same bucket. The same person in another organization has a budget of its own. A tool call is **never cheaper than the endpoint it mirrors**: the request is counted once in the MCP's own bucket and, when it is a `tools/call`, again by the bucket of the endpoint it dispatches to. That is deliberate — an agent looping over listings should not be able to dodge the limit the same sweep would pay over REST. Attempts with an invalid token are throttled **by IP**, not by token, the same way the REST edge does it: a token that does not verify cannot have a bucket of its own. A request with no token at all — every client's first step, before OAuth — does not count as an attempt. ## When the limit is hit[​](#when-the-limit-is-hit "Direct link to When the limit is hit") The server answers `429` — **the JSON-RPC message is not processed at all**: ``` HTTP/1.1 429 Too Many Requests Retry-After: 37 X-RateLimit-Limit: 100 X-RateLimit-Remaining: 0 X-RateLimit-Reset: 37 Content-Type: application/json { "error": { "code": "TOO_MANY_REQUESTS", "message": "Rate limit exceeded" }, "retry_after": 37 } ``` Wait the `Retry-After` seconds before the next request. The per-account, per-request-type limits are on the [API rate-limit page](https://docs.dashboards.kobana.com.br/en/en/api/overview/rate-limit.md) — they are the same ones. ### When the endpoint's limit is hit[​](#when-the-endpoints-limit-is-hit "Direct link to When the endpoint's limit is hit") The second bucket — the one of the endpoint the tool dispatches to — looks different. The MCP request already got through, so the HTTP answer is `200` and the JSON-RPC message is processed normally: what comes back is a **tool result with `isError: true`**, carrying the same `429` body as API v1: ``` { "content": [{ "type": "text", "text": "{\"error\":{\"code\":\"TOO_MANY_REQUESTS\",\"message\":\"Rate limit exceeded\"},\"retry_after\":37}" }], "isError": true } ``` The model reads `retry_after` (seconds) and waits before calling the tool again. Other tools, on other endpoints, stay available meanwhile. ## Spending less[​](#spending-less "Direct link to Spending less") An agent burns the same budget as your backend, and additionally pays context for every row it brings back. Two habits cover almost everything: * **Filter before paginating.** `dashboards_portal_users_list { status: "suspended" }` costs one request; sweeping every portal user to filter in the model costs dozens. * **Ask only for the columns you need.** `fields: ["email", "status", "last_login_at"]` does not reduce the number of requests, but it greatly reduces the context spent — see [Listing, sorting and fields](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/pagination.md). --- # Resources and prompts Besides tools, the server offers three things the **client** uses on its own: **resources** (documents the user attaches to the conversation), **prompts** (ready-made scripts the user picks) and **completions** (autocomplete for the arguments of both). In the `2026-07-28` era, it also asks for **confirmation** before running a destructive tool. None of this opens a new path to your data: everything goes through the same tools, under the same permissions and the same [token scope](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md#token-scope). With a read-only token, resources and completions stay available, but a prompt that writes — like `review_portal_access`, which resends invitations — does not show up. ## Resources[​](#resources "Direct link to Resources") A resource is a document identified by a URI. The user picks, say, a portal user, and the MCP client reads the document and puts it in context, without the model having to call a tool. | URI | What comes back | | ---------------------------------------- | ----------------------------------------------------------------------------- | | `kobana://dashboards/organization` | The token's organization (JSON) | | `kobana://dashboards/schemas` | The API resource catalogue (JSON) | | `kobana://dashboards/schemas/{resource}` | A resource's fields: type, enum, meaning, which ones sort (JSON) | | `kobana://dashboards/portal_users/{id}` | One portal user, with its status and the tenant ID it sees records for (JSON) | `resources/list` returns the fixed URIs and `resources/templates/list` the templates with `{id}`. * **Permissions.** Each resource is read by the matching tool (`kobana://dashboards/portal_users/{id}` is `dashboards_portal_users_get`). It is only listed, and only read, if you can run that tool. * **Not found.** An unknown URI, or a record that does not exist in this organization, is `-32002` in the 2025 era and `-32602` in `2026-07-28` — see [Errors](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/errors.md). * **Workspace.** A URI carries no `workspace_id`: data resources (`kobana://dashboards/portal_users/{id}`) read the **connection's** workspace — `X-Workspace-Id`, `?workspace_id=` or the person's only workspace. If the person has access to several and the connection chose none, the read is refused with `-32602` and `data.code: "workspace_required"`, with a `data.hint` explaining how to choose; configure `X-Workspace-Id` in the client (see [Workspaces](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md#workspaces)). * **No change subscriptions.** The server is stateless: there is no `resources/subscribe` and no list-changed notice. ## Prompts[​](#prompts "Direct link to Prompts") A prompt is a ready-made instruction you pick in the client that becomes the first message of the conversation. It only shows up if you can run **every** tool it relies on. | Prompt | Arguments | What it does | | ---------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------ | | `tenant_overview` | `tenant_id` | Who signs in to the portal for one tenant ID: the portal users that share it, and their status. | | `review_portal_access` | `tenant_id` (optional) | Finds portal users still waiting on an invitation and offers to resend it, one confirmation at a time. | | `team_access_review` | — | Who is on the dashboard team, with which role and permissions. | A missing required argument is `-32602`. ## Completions[​](#completions "Direct link to Completions") `completion/complete` suggests values while you type an argument: * **Ids** (the `{id}` of portal users): searches the matching listing, under its permission. If you cannot list, there is no suggestion. * **`{resource}` of `kobana://dashboards/schemas/{resource}`**: the catalogue names, by prefix. Id suggestions search the connection's workspace; with no workspace resolved (the person has access to several and the connection chose none), the list comes back empty. With no source of suggestions, the answer is an empty list, and you keep typing. ## Confirming destructive tools[​](#confirming-destructive-tools "Direct link to Confirming destructive tools") Destructive tools — the ones that delete, close, suspend or deactivate a record, or send an email or invitation — are marked with `destructiveHint`. The **server** does not rely on the client alone: in the `2026-07-28` era it asks for the confirmation itself: 1. The first `tools/call` runs nothing. It comes back with `resultType: "input_required"` and a one-question form: run this action, with these arguments? 2. The client shows the question and re-sends the same call with your answer. 3. Only an explicit **yes** runs it. Declining or cancelling returns an `isError` result with `USER_DECLINED`, and nothing changes. The confirmation holds **only for that call**: the same tool, the same arguments, the same person and organization, for **5 minutes**. An answer cannot be reused for another record or another action; if anything does not match, the server simply asks again. And it is **single-use**: re-sending a call that was already confirmed returns `isError` with `confirmation_replayed`, and nothing runs — to repeat the action, call the tool again and confirm again. A client that **cannot show the form** — on the 2025 era, or on `2026-07-28` without declaring elicitation forms (like the Claude app on a phone) — does not run the tool right away: it waits for your **approval by link**, explained below. Every other tool keeps working. If the server cannot record the confirmation at that moment, the tool is refused with `confirmation_unavailable`; try again later. ### Approval by link[​](#approval-by-link "Direct link to Approval by link") When the client does not show the form, the call runs nothing. The server stores the operation as **pending** and answers, as a normal result (not an error), a text holding this JSON: ``` { "status": "approval_required", "approval": { "id": "0b8f…", "url": "https://app.dashboards.kobana.com.br/approvals/…", "expires_at": "2026-10-31T12:15:00.000Z" }, "message": "Nothing was executed yet. Show this URL to the user…" } ``` The assistant shows the link. You open it, sign in to Magic Dashboard if needed (and come back to the same link), check what will happen — the title says the action, for example "Delete the portal user", with the record as it is now and every argument — and choose: * **Continue**: the operation runs right then, with your current permissions, and the page shows "Confirmed and executed" (or the failure, with what it returned). * **Cancel**: nothing is executed. The link is valid for **15 minutes** and decides **only once**: two clicks on Continue run once, and a canceled or expired link runs nothing. Only **you** — the person whose account authorized the assistant — can open the link; for anyone else, even in your organization, it does not exist. If you lost the permission between the request and Continue, the operation fails and nothing changes. Do not ask the assistant to call the tool again — that creates another approval. Once you have decided, tell it so: it reads the outcome with `dashboards_operation_approvals_get`, passing the `approval.id` of the answer, and learns whether the operation ran, failed, was canceled or expired. ### Reading the outcome[​](#reading-the-outcome "Direct link to Reading the outcome") Two read-only tools answer for the approvals **of the token's person** — in the call's workspace and the organization-level ones. They decide nothing: none approves, cancels or reopens an approval. | Tool | Arguments | Returns | | ------------------------------------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- | | `dashboards_operation_approvals_get` | `id` (the `approval.id`) | `{ "data": approval }` | | `dashboards_operation_approvals_list` | `status`, `created_after`, `created_before`, `page`, `per_page` (all optional) | `{ "data": [...], "meta": { total, page, per_page, total_pages } }`, newest first | Each approval carries `id`, `status` (`pending`, `approved` = being processed, `executed`, `failed`, `declined`, `expired` — a lapsed pending already reads `expired`), `action` (the tool asked for), `title` (the translated title, in the language of the request's `Accept-Language`), `resource`, `operation`, `amount` (always `null` here: no Magic Dashboard operation moves money), `requested_at`, `expires_at`, `decided_at`, `executed_at`, `error` (`{ code, message }` when `failed`), `result` (what the executed tool returned, secrets masked — the clear value shows only once, on the screen) and `result_hidden`. It never carries the link, the link's token or the screen's card. Any token of a person reads its own approvals, with no scope of its own. But `result` and `error` are data of the resource the operation acted on: they come back only when the token reads that resource **and** you still have the permission to read it in the dashboard; otherwise they are `null`, with `"result_hidden": true`. Another person's, another organization's or another workspace's approval answers `NOT_FOUND`, the same as an id that does not exist. ``` { "data": { "id": "0b8f…", "status": "executed", "action": "dashboards_portal_users_delete", "title": "Delete the portal user", "resource": "portal_users", "operation": "delete", "amount": null, "requested_at": "2026-10-31T12:00:00.000Z", "expires_at": "2026-10-31T12:15:00.000Z", "decided_at": "2026-10-31T12:03:10.000Z", "executed_at": "2026-10-31T12:03:11.000Z", "error": null, "result": { "data": { "deleted": true, "outcome": "suspended" } }, "result_hidden": false } } ``` Your approvals are listed under **System › Approvals** in the dashboard, by status. Clicking one opens the same screen, read-only: while it is pending, it reminds you that the decision is made through the link the assistant showed. A token that names no person has nobody to open the link: the tool returns `isError` with `confirmation_required` and nothing is executed. --- # Transport **Streamable HTTP, stateless.** One JSON-RPC 2.0 message per `POST`, one JSON response. There is no `Mcp-Session-Id`, no resumability and no server→client stream: the application runs several replicas, and every long operation already answers immediately and finishes in a background worker rather than on the MCP channel. ## Protocol versions[​](#protocol-versions "Direct link to Protocol versions") The server speaks two eras of the protocol on the same endpoint: | Version | Era | Status | | ------------ | ----------------------------------------------------------------------- | --------- | | `2026-07-28` | Stateless, no handshake — discovered through `server/discover` | Supported | | `2025-06-18` | `initialize` handshake — the version `initialize` settles on by default | Supported | | `2025-03-26` | `initialize` handshake | Supported | The era is decided **by the request body**, with the headers as a cross-check: * **`params._meta` carries `io.modelcontextprotocol/protocolVersion`** → `2026-07-28` era (see below). * **No such envelope**, with a 2025 `MCP-Protocol-Version` or no header at all → 2025 era, with `initialize`. * **`MCP-Protocol-Version: 2026-07-28` without the envelope** → `400` with `-32602`. The server does not silently fall back to the old era: you asked for stateless semantics and would get the other ones. A version the server does not speak — in the header or in the envelope, in either era — is answered `400` with the JSON-RPC error `-32022`, listing the supported ones: ``` { "jsonrpc": "2.0", "id": 1, "error": { "code": -32022, "message": "Unsupported protocol version", "data": { "supported": ["2026-07-28", "2025-06-18", "2025-03-26"], "requested": "1999-01-01" } } } ``` The version in use comes back on the `MCP-Protocol-Version` response header. ### The `2026-07-28` era[​](#the-2026-07-28-era "Direct link to the-2026-07-28-era") There is no handshake: **every** request carries its own version and the client's capabilities in `params._meta`, and the server remembers nothing from one request to the next. | `params._meta` key | Required | Meaning | | -------------------------------------------- | ----------- | --------------------------------------------------- | | `io.modelcontextprotocol/protocolVersion` | yes | `2026-07-28` | | `io.modelcontextprotocol/clientCapabilities` | yes | The client's capabilities (an object; `{}` will do) | | `io.modelcontextprotocol/clientInfo` | recommended | The client's `name` and `version` | The headers repeat what the body says, so intermediaries can route without reading it — which is why they have to agree with it: | Header | Must equal | | ---------------------- | ------------------------------------------------------------- | | `MCP-Protocol-Version` | The envelope version | | `Mcp-Method` | The message `method` | | `Mcp-Name` | On `tools/call` only: `params.name`, raw or as `=?base64?…?=` | Any disagreement is `400` with `-32020` (`Header mismatch: …`). Missing `clientCapabilities` is `400` with `-32602`. Results in this era always carry `resultType: "complete"` and the server in `_meta["io.modelcontextprotocol/serverInfo"]`. `server/discover`, `tools/list`, `resources/list`, `resources/templates/list`, `resources/read` and `prompts/list` also carry `ttlMs: 0` and `cacheScope: "private"`: what comes back is filtered by the caller's permissions, so it must not be reused or shared. A `tools/call` to a destructive tool may come back with `resultType: "input_required"` — see [Confirming destructive tools](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/resources-and-prompts.md#confirming-destructive-tools). ## Request headers[​](#request-headers "Direct link to Request headers") | Header | Required | Meaning | | ---------------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `Authorization` | yes | `Bearer ` issued for MCP — see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md) | | `Content-Type` | yes | `application/json` | | `Accept` | recommended | `application/json` | | `MCP-Protocol-Version` | yes in the `2026-07-28` era; recommended in the 2025 one | Protocol revision | | `Mcp-Method` | yes in the `2026-07-28` era | The message method | | `Mcp-Name` | yes on `tools/call` in the `2026-07-28` era | The tool name | | `Origin` | conditional | Sent by browser-based clients; validated against an allow-list | There is no tenant-selection header: the organization comes from the token itself, and no tool takes an organization argument. The request body is capped at **2 MB** — the same as the REST API. Above that — by the declared `Content-Length` or by what actually arrives — the answer is `413` with `{ "jsonrpc": "2.0", "id": null, "error": { "code": -32600, "message": "Request body too large (limit 2097152 bytes)" } }`. The tools that take a file in `content_base64` (library assets, a checklist task file, CSV imports, data sources) relay it to API endpoints that accept up to that same limit; keep in mind base64 takes about 4/3 of the original file. ## Response headers[​](#response-headers "Direct link to Response headers") | Header | Meaning | | ---------------------- | ----------------------------------------------------------------------------------------------------------- | | `MCP-Protocol-Version` | Revision in use | | `Cache-Control` | Always `no-store` | | `Retry-After` | On `429` only — see [Rate limiting](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/rate-limit.md) | ## Methods[​](#methods "Direct link to Methods") | Method | `2026-07-28` era | 2025 era | Purpose | | -------------------------- | ---------------- | -------- | ----------------------------------------------------------------------------------- | | `server/discover` | yes | — | Supported versions, server capabilities and instructions | | `initialize` | — | yes | Version negotiation, server capabilities and instructions | | `ping` | — | yes | Liveness check; answers an empty result | | `tools/list` | yes | yes | The tools this caller can run, with their JSON Schema and annotations | | `tools/call` | yes | yes | Runs one tool | | `resources/list` | yes | yes | The fixed-URI documents this caller can read | | `resources/templates/list` | yes | yes | The URI templates (`kobana://dashboards/portal_users/{id}`, …) this caller can read | | `resources/read` | yes | yes | Reads one document by URI | | `prompts/list` | yes | yes | The ready-made prompts this caller can use | | `prompts/get` | yes | yes | Renders one prompt with the given arguments | | `completion/complete` | yes | yes | Suggestions for a prompt or template argument | Resources, prompts and completions are covered in [Resources and prompts](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/resources-and-prompts.md). Any other method is `-32601 Method not found` — with HTTP `404` in the `2026-07-28` era, in the body of a `200` in the 2025 one. **JSON-RPC batching is not supported** — it was removed in the `2025-06-18` revision, and an array body is answered `400`. A **notification** (a message with no `id`, such as `notifications/initialized`) is accepted with `202` and an empty body, in both eras. Authentication comes **before** any method, `server/discover` included: with no token, the answer is the `401` with the challenge that sends the client to the OAuth login — see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). ### `server/discover` (`2026-07-28` era)[​](#serverdiscover-2026-07-28-era "Direct link to serverdiscover-2026-07-28-era") ``` POST / HTTP/1.1 Authorization: Bearer Content-Type: application/json MCP-Protocol-Version: 2026-07-28 Mcp-Method: server/discover ``` ``` { "jsonrpc": "2.0", "id": 1, "method": "server/discover", "params": { "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {}, "io.modelcontextprotocol/clientInfo": { "name": "my-client", "version": "1.0.0" } } } } ``` ``` { "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "supportedVersions": ["2026-07-28", "2025-06-18", "2025-03-26"], "capabilities": { "tools": {}, "resources": {}, "prompts": {}, "completions": {} }, "instructions": "Tools for Magic Dashboard: ...", "ttlMs": 0, "cacheScope": "private", "_meta": { "io.modelcontextprotocol/serverInfo": { "name": "kobana-dashboards", "title": "Magic Dashboard", "version": "1.0.0" } } } } ``` ### `initialize` (2025-era handshake)[​](#initialize-2025-era-handshake "Direct link to initialize-2025-era-handshake") ``` { "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "protocolVersion": "2025-06-18" } } ``` ``` { "jsonrpc": "2.0", "id": 1, "result": { "protocolVersion": "2025-06-18", "capabilities": { "tools": { "listChanged": false }, "resources": { "subscribe": false, "listChanged": false }, "prompts": { "listChanged": false }, "completions": {} }, "serverInfo": { "name": "kobana-dashboards", "title": "Magic Dashboard", "version": "1.0.0" }, "instructions": "Tools for Magic Dashboard: ..." } } ``` ### `tools/list`[​](#toolslist "Direct link to toolslist") Returns **only** the tools the caller can run, filtered by the dashboard permissions of whoever authorized the client. Every tool carries `annotations`, which is what makes the client ask the user to confirm: | Annotation | Meaning | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `readOnlyHint` | The tool only reads | | `destructiveHint` | The tool deletes, closes, suspends or deactivates a record, or sends an email or invitation. The server asks for confirmation on the `2026-07-28` era; to a client that does not show the form, it answers an approval link (`approval_required`) | | `idempotentHint` | Repeating the call has the same effect | | `openWorldHint` | Always `false` — the tool reaches nothing outside Magic Dashboard | ### `tools/call`[​](#toolscall "Direct link to toolscall") ``` { "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "dashboards_portal_users_list", "arguments": { "status": "active", "per_page": 10, "fields": ["email", "status", "created_at"] } } } ``` The result carries the endpoint's JSON response as text content: ``` { "jsonrpc": "2.0", "id": 2, "result": { "content": [{ "type": "text", "text": "{ \"data\": [ ... ], \"meta\": { \"total\": 42, ... } }" }] } } ``` Errors the caller can act on come back with `isError: true` **inside** the result, not as a JSON-RPC error — see [Errors](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/errors.md). ## In-process dispatch[​](#in-process-dispatch "Direct link to In-process dispatch") Every tool dispatches **in-process** to the `/api/v1` route handler that implements the operation. There is no second HTTP round trip and no second implementation: listing filters, upsert matching, validation, soft-delete and tenant isolation are the same code the REST API runs. A tool cannot drift from the endpoint it mirrors. --- # Access The users who sign in to the portal — each with the tenant ID of the records they see — and the team that uses the organization dashboard. ## Families on this page[​](#families-on-this-page "Direct link to Families on this page") | Family | Tools | read | write | destructive | | ----------------------------------------------- | ----- | ---- | ----- | ----------- | | `portal-users` — Portal users | 13 | 6 | 2 | 5 | | `checklists` — Checklists (progress per tenant) | 8 | 4 | 2 | 2 | | `comments` — Comments (conversation per tenant) | 4 | 2 | 1 | 1 | | `users` — Dashboard users | 10 | 4 | 2 | 4 | | `roles` — Team roles | 6 | 2 | 3 | 1 | ## `portal-users`[​](#portal-users "Direct link to portal-users") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------------- | ------------------------------------------------- | -------- | --------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_portal_users_list` | read | `read` | `portal-users.list` | `GET /v1/portal_users` | List the portal users of the workspace. | | `dashboards_portal_users_get` | read | `read` | `portal-users.show` | `GET /v1/portal_users/:id` | Fetch one portal user by id or `external_id`. | | `dashboards_portal_users_create` | destructive | `write` | `portal-users.create` | `POST /v1/portal_users` | Create a portal user in the workspace as `pending_invitation` and send the invitation e-mail. | | `dashboards_portal_users_invite` | destructive | `write` | `portal-users.create` | `POST /v1/portal_users/invite` | Invite a portal user — same as `dashboards_portal_users_create`, through the verb route: creates the user and sends the invitation e-mail. | | `dashboards_portal_users_update` | write · confirmation (depending on the arguments) | `write` | `portal-users.update` | `PATCH /v1/portal_users/:id` | Update a portal user — e-mail, `tenant_id`, `external_id`, `sso_only`, `custom_metadata`, status (`active` ↔ `suspended` only), or `unlock: true` to end a login lockout (too many wrong passwords). | | `dashboards_portal_users_delete` | destructive | `delete` | `portal-users.delete` | `DELETE /v1/portal_users/:id` | Delete a portal user: a pending invitation is deleted, anyone else is suspended and loses portal access immediately; an already suspended user is left unchanged. | | `dashboards_portal_users_resend_invite` | destructive | `write` | `portal-users.update` | `POST /v1/portal_users/:id/resend` | Re-send the invitation e-mail (pending invitation, rotating the link) or the verification e-mail (pending verification). | | `dashboards_portal_users_email_preview` | read | `read` | `portal-users.show` | `GET /v1/portal_users/:id/email-preview` | Render the invitation or verification e-mail of a pending portal user without sending it — subject and message, as the recipient would see it. | | `dashboards_portal_users_activity` | read | `read` | `portal-users.show` | `GET /v1/portal_users/:id/activity` | Usage analytics of one portal user: sign-ins and pages viewed (all time), distinct pages, `last_activity_at`, a per-day `series` of views and sign-ins over the last `days` days (São Paulo days) and the most opened pages (`top_pages`). | | `dashboards_portal_users_activity_timeline` | read | `read` | `portal-users.show` | `GET /v1/portal_users/:id/activity/timeline` | What a portal user did, newest first: sign-ins (`kind: login`, with the sign-in `method`: credentials, magic-link or sso) and pages opened (`kind: page_view`, with `path` and `page_name`). | | `dashboards_portal_user_mappings_get` | read | `read` | `portal-users.list` | `GET /v1/portal_user_mappings` | Show which entity feeds the workspace portal users (`mapping`, null when none, with the last sync outcome) and the entities that could, with their fields. | | `dashboards_portal_user_mappings_update` | write · confirmation | `write` | `portal-users.create` | `PUT /v1/portal_user_mappings` | Map an entity to the workspace portal users — one user per e-mail of its records, tenant ID from a field — and sync now. | | `dashboards_portal_user_mappings_delete` | destructive | `delete` | `portal-users.create` | `DELETE /v1/portal_user_mappings` | Stop syncing portal users from the mapped entity. | ## `checklists`[​](#checklists "Direct link to checklists") | Tool | Kind | Scope | Permission | Endpoint | What it does | | --------------------------------------- | -------------------- | -------- | --------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_checklists_list` | read | `read` | `portal-users.list` | `GET /v1/checklists` | List the checklists (Lista de Tarefas blocks) of the published portal, page by page: id, title, page and the stages with their visible tasks (title, description, due date, assignee, action). | | `dashboards_checklists_get` | read | `read` | `portal-users.show` | `GET /v1/checklists/:id` | Fetch one checklist of the published portal: its stages and visible tasks. | | `dashboards_checklists_progress_get` | read | `read` | `portal-users.show` | `GET /v1/checklists/:id/progress` | A tenant's progress on a checklist, task by task: status (`pending`, `in_progress`, `done`), when it was done, the file sent to a Solicitação, which portal user changed it last; plus done/total per stage and overall. | | `dashboards_checklists_progress_update` | write | `write` | `portal-users.update` | `PUT /v1/checklists/:id/progress` | Set the status of one or more tasks of a checklist for a tenant (creates the tenant's progress on first use). | | `dashboards_checklists_progress_reset` | destructive | `delete` | `portal-users.update` | `DELETE /v1/checklists/:id/progress` | Reset a tenant's progress on a checklist: the tasks of `task_ids` (all of them when omitted) go back to pending and forget the file sent. | | `dashboards_checklists_file_download` | read | `read` | `portal-users.show` | `GET /v1/checklists/:id/progress/file` | Get the file a tenant sent to a Solicitação task of a checklist. | | `dashboards_checklists_file_upload` | write · confirmation | `write` | `portal-users.update` | `POST /v1/checklists/:id/progress/file` | Send the file of a Solicitação task for a tenant (in `content_base64`), replacing the one sent before. | | `dashboards_checklists_file_delete` | destructive | `delete` | `portal-users.update` | `DELETE /v1/checklists/:id/progress/file` | Take back the file a tenant sent to a Solicitação task of a checklist. | ## `comments`[​](#comments "Direct link to comments") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ---------------------------- | ------------------------------------------------- | -------- | --------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_comments_list` | read | `read` | `portal-users.show` | `GET /v1/comments` | List comments, newest first, page by page: one tenant's conversation (`tenant_id` or `portal_user_id`) or, without either, every conversation of the workspace. | | `dashboards_comments_get` | read | `read` | `portal-users.show` | `GET /v1/comments/:id` | Fetch one comment: its tenant, author, body and whether it is internal. | | `dashboards_comments_create` | write · confirmation (depending on the arguments) | `write` | `portal-users.update` | `POST /v1/comments` | Add a comment to a tenant's conversation, as the team. | | `dashboards_comments_delete` | destructive | `delete` | `portal-users.update` | `DELETE /v1/comments/:id` | Remove a comment from its conversation (soft delete): it leaves the portal and the dashboard for everyone. | ## `users`[​](#users "Direct link to users") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------------- | ------------------------------------------------- | -------- | ------------------- | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_dashboard_users_list` | read | `read` | `users.list` | `GET /v1/dashboard_users` | List the dashboard (team) users of the organization. | | `dashboards_dashboard_users_get` | read | `read` | `users.show` | `GET /v1/dashboard_users/:id` | Fetch one dashboard user with the roles they hold. | | `dashboards_dashboard_users_create` | destructive | `write` | `users.create` | `POST /v1/dashboard_users` | Add a dashboard user to the organization and assign a role. | | `dashboards_dashboard_users_upsert` | destructive | `write` | `users.create` | `PUT /v1/dashboard_users` | Create or update a dashboard user matched on `id` → `external_id` → `email`. | | `dashboards_dashboard_users_update` | write · confirmation (depending on the arguments) | `write` | `users.update` | `PATCH /v1/dashboard_users/:id` | Update a dashboard user — name, role or status. | | `dashboards_dashboard_users_delete` | destructive | `delete` | `users.delete` | `DELETE /v1/dashboard_users/:id` | Remove a dashboard user. | | `dashboards_dashboard_users_workspaces_get` | read | `read` | `users.grant` | `GET /v1/dashboard_users/:id/workspaces` | List every workspace of the organization flagged with whether a team member holds a grant on it (`granted`) and their role there. | | `dashboards_dashboard_users_workspaces_set` | write · confirmation | `write` | `users.grant` | `PUT /v1/dashboard_users/:id/workspaces` | Replace the set of workspaces a team member can open: `workspace_ids` is the final set, removed grants are paused. | | `dashboards_dashboard_users_resend_invite` | destructive | `write` | `users.create` | `POST /v1/dashboard_users/:id/resend` | Re-send the invitation e-mail, with a fresh sign-in link, to a team member whose invitation is still pending. | | `dashboards_permissions_list` | read | `read` | `users.permissions` | `GET /v1/permissions` | List the dashboard permissions a team member or role can carry, grouped by resource, with a label and description for each key. | ## `roles`[​](#roles "Direct link to roles") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------ | -------------------- | -------- | -------------- | --------------------------- | --------------------------------------------------------------------- | | `dashboards_team_roles_list` | read | `read` | `roles.list` | `GET /v1/team_roles` | List the roles a dashboard user can hold, with their permission sets. | | `dashboards_team_roles_get` | read | `read` | `roles.show` | `GET /v1/team_roles/:id` | Fetch one role with its permissions. | | `dashboards_team_roles_create` | write · confirmation | `write` | `roles.create` | `POST /v1/team_roles` | Create a custom role with an explicit permission list. | | `dashboards_team_roles_upsert` | write · confirmation | `write` | `roles.create` | `PUT /v1/team_roles` | Create or update a role matched on `id` → `external_id` → `slug`. | | `dashboards_team_roles_update` | write · confirmation | `write` | `roles.update` | `PATCH /v1/team_roles/:id` | Update a custom role. | | `dashboards_team_roles_delete` | destructive | `delete` | `roles.delete` | `DELETE /v1/team_roles/:id` | Delete a custom role. | *** The fields of each resource are in the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) and in `dashboards_schemas_get`. A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- # Sources and entities The data sources of the workspace — OpenAPI APIs, MCP servers, databases and Kobana products — and the entities the portal reads from them: records, aggregates and syncs. ## Families on this page[​](#families-on-this-page "Direct link to Families on this page") | Family | Tools | read | write | destructive | | ----------------------------- | ----- | ---- | ----- | ----------- | | `integrations` — Data sources | 17 | 5 | 9 | 3 | | `entities` — Entities | 23 | 10 | 10 | 3 | ## `integrations`[​](#integrations "Direct link to integrations") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------------- | -------------------- | -------- | --------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_data_sources_list` | read | `read` | `integrations.list` | `GET /v1/data_sources` | List the data sources of the workspace — OpenAPI APIs, MCP servers and read-only databases — newest first, with status, config and `operations_count`. | | `dashboards_data_sources_get` | read | `read` | `integrations.show` | `GET /v1/data_sources/:id` | Fetch one data source with its operations (endpoints, tools or tables it can read), each with its fields and whether it is enabled. | | `dashboards_data_sources_catalog_list` | read | `read` | `integrations.list` | `GET /v1/data_sources/catalog` | List the Kobana products that can be connected as a data source with just a token (key, name, docs, base URLs). | | `dashboards_data_sources_connect_catalog` | write | `write` | `integrations.create` | `POST /v1/data_sources/catalog` | Connect a Kobana product from the catalog: saves an OpenAPI data source from the spec shipped with the app and tests it. | | `dashboards_data_sources_analyze_spec` | write | `write` | `integrations.create` | `POST /v1/data_sources/openapi/analyze` | Analyze an OpenAPI spec without saving anything: title, servers, security schemes, suggested auth and the operations that would be imported. | | `dashboards_data_sources_create` | write · confirmation | `write` | `integrations.create` | `POST /v1/data_sources` | Save a data source and test the connection. | | `dashboards_data_sources_test_draft` | write · confirmation | `write` | `integrations.create` | `POST /v1/data_sources/test` | Test a connection before saving it. | | `dashboards_data_sources_update` | write · confirmation | `write` | `integrations.update` | `PATCH /v1/data_sources/:id` | Update a data source — name, `is_active`, and the connection fields of its kind (OpenAPI, MCP or database). | | `dashboards_data_sources_delete` | destructive | `delete` | `integrations.delete` | `DELETE /v1/data_sources/:id` | Delete a data source with its operations and its sync schedule. | | `dashboards_data_sources_test` | write | `write` | `integrations.update` | `POST /v1/data_sources/:id/test` | Test a saved data source and record the outcome (status, last error); for an MCP server it also refreshes the tool list. | | `dashboards_data_sources_sync` | destructive | `write` | `integrations.update` | `POST /v1/data_sources/:id/sync` | Queue a sync of every entity fed by the data source (`full: true` re-reads everything). | | `dashboards_data_sources_update_schedule` | write | `write` | `integrations.update` | `PUT /v1/data_sources/:id/schedule` | Set how often the data source syncs: a 5-field `cron` (at most every 5 minutes) and `timezone`, or `cron: null` for on demand only. | | `dashboards_data_sources_replace_spec` | destructive | `write` | `integrations.update` | `PUT /v1/data_sources/:id/spec` | Replace the OpenAPI spec of a data source and re-sync its operations; operations that keep their key keep their settings, the others are removed. | | `dashboards_data_sources_authorize` | write | `write` | `integrations.update` | `POST /v1/data_sources/:id/authorize` | Restart the OAuth authorization of an MCP data source. | | `dashboards_data_sources_logs_list` | read | `read` | `integrations.show` | `GET /v1/data_sources/:id/logs` | List the calls a data source made (HTTP requests, database queries), newest first, without headers nor bodies. | | `dashboards_data_sources_logs_get` | read | `read` | `integrations.show` | `GET /v1/data_sources/:id/logs/:log_id` | Fetch one call of a data source: request and response headers and bodies (each body clipped to 2000 characters), with secrets masked. | | `dashboards_data_sources_operations_update` | write | `write` | `integrations.update` | `PATCH /v1/data_sources/:id/operations/:operation_id` | Turn one operation of a data source on or off (`enabled`). | ## `entities`[​](#entities "Direct link to entities") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ---------------------------------------- | ----------- | -------- | ---------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_entities_list` | read | `read` | `portal-config.view` | `GET /v1/entities` | List every entity of the workspace with its fields, source (data source, operation or SQL or join) and sync state. | | `dashboards_entities_get` | read | `read` | `portal-config.view` | `GET /v1/entities/:id` | Fetch one entity by id: its fields, source, sync mode, owner field and sync state. | | `dashboards_entities_preview` | write | `write` | `portal-config.update` | `POST /v1/entities/preview` | Call a read operation of a data source (or run a SQL query) and return a sample of records with the entity inferred from them (proposed fields, types, owner). | | `dashboards_entities_create` | write | `write` | `portal-config.update` | `POST /v1/entities` | Register an entity from a data source operation (or SQL query) with the fields to keep, and queue its first full sync — or, with `source_kind: "push"`, an entity with no connection whose records are sent in. | | `dashboards_entities_update` | write | `write` | `portal-config.update` | `PATCH /v1/entities/:id` | Update an entity: name, key, special fields, owner match, sync mode, pagination, sync filters and the field list (matched by key; send the whole list). | | `dashboards_entities_delete` | destructive | `delete` | `portal-config.update` | `DELETE /v1/entities/:id` | Soft-delete an entity and its fields. | | `dashboards_entities_join_preview` | write | `write` | `portal-config.update` | `POST /v1/entities/join/preview` | Preview a relation between two entities before saving it: how many records match on the given fields and the first combined rows. | | `dashboards_entities_join_create` | write | `write` | `portal-config.update` | `POST /v1/entities/join` | Register an entity that relates two others (a join) with the fields picked from each, and queue its first sync. | | `dashboards_entities_join_update` | write | `write` | `portal-config.update` | `PUT /v1/entities/:id/join` | Replace the relation of a join entity and the fields it brings, then re-sync its records. | | `dashboards_entities_records_list` | read | `read` | `portal-config.view` | `GET /v1/entities/:id/records` | Query the synced records of an entity, with field filters, sort and limit/offset paging (not page/per\_page). | | `dashboards_entities_records_get` | read | `read` | `portal-config.view` | `GET /v1/entities/:id/records/:record_id` | Fetch one synced record of an entity — its values by field key and the record as the source sent it — with the entity. | | `dashboards_entities_records_push` | write | `write` | `portal-config.update` | `POST /v1/entities/:id/records` | Send records to an entity with no connection (`source.source_kind: "push"`), up to 1000 per call. | | `dashboards_entities_records_import` | write | `import` | `portal-config.update` | `POST /v1/entities/:id/records/import` | Import a CSV into an entity with no connection (`push`): header row with the column names (the fields' `source_path`), `,` or `;` as delimiter, one record per row, typed by the field (numbers, dates, booleans). | | `dashboards_entities_records_delete` | destructive | `delete` | `portal-config.update` | `DELETE /v1/entities/:id/records/:record_id` | Remove one record of an entity with no connection (`push`), by its record id or by the identifier it was sent with. | | `dashboards_entities_records_clear` | destructive | `delete` | `portal-config.update` | `DELETE /v1/entities/:id/records` | Remove every synced record of an entity and reset its sync state, so the next sync reads the source from scratch. | | `dashboards_entities_aggregate` | read | `read` | `portal-config.view` | `GET /v1/entities/:id/aggregate` | Count, sum, average, min or max over the synced records of an entity, optionally grouped by a field — what KPI and chart blocks show. | | `dashboards_entities_usage` | read | `read` | `portal-config.view` | `GET /v1/entities/:id/usage` | List the portal pages (draft and published) whose blocks read an entity, with the block types — what breaks if it is removed or its key changes. | | `dashboards_entities_logs_list` | read | `read` | `integrations.show` | `GET /v1/entities/:id/logs` | List the calls the sync of an entity made to its data source, newest first (method, endpoint, HTTP status, duration). | | `dashboards_entities_logs_get` | read | `read` | `integrations.show` | `GET /v1/entities/:id/logs/:log_id` | Fetch one call of the sync of an entity whole: request and response headers and bodies (secrets masked when recorded). | | `dashboards_entities_sync` | write | `write` | `portal-config.update` | `POST /v1/entities/:id/sync` | Queue a sync of one entity from its data source; `full: true` reads everything and drops what the source no longer has. | | `dashboards_entities_sync_get` | read | `read` | `portal-config.view` | `GET /v1/entities/:id/sync` | Where the sync of an entity stands: status, last error, last (full) sync time, record count and stats. | | `dashboards_entities_tenant_syncs_list` | read | `read` | `portal-config.view` | `GET /v1/entities/:id/tenant_syncs` | On an `on_access` entity, list where each tenant's sync stands (status, records, portal users carrying the tenant ID), most recently accessed first. | | `dashboards_entities_tenant_syncs_queue` | write | `write` | `portal-config.update` | `POST /v1/entities/:id/tenant_syncs` | Queue one tenant's sync of an `on_access` entity now (`full: true` re-reads everything of the tenant). | *** The fields of each resource are in the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) and in `dashboards_schemas_get`. A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- # Templates and notifications The templates and layouts of the e-mails the platform sends, and the notifications — created, sent and tracked. ## Families on this page[​](#families-on-this-page "Direct link to Families on this page") | Family | Tools | read | write | destructive | | ------------------------------- | ----- | ---- | ----- | ----------- | | `templates` — E-mail templates | 15 | 5 | 7 | 3 | | `notifications` — Notifications | 4 | 2 | 0 | 2 | ## `templates`[​](#templates "Direct link to templates") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------------ | ----------- | -------- | ------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_email_templates_list` | read | `read` | `templates.list` | `GET /v1/email_templates` | List the organization's own e-mail templates, ordered by type and name. | | `dashboards_email_templates_get` | read | `read` | `templates.show` | `GET /v1/email_templates/:id` | Fetch one e-mail template by id — subject, HTML and text bodies, BCC list, variables and active flag. | | `dashboards_email_templates_create` | write | `write` | `templates.create` | `POST /v1/email_templates` | Create an e-mail template for a notification type (api\_key\_expiring, account\_suspended or account\_activated — e-mails carrying a sign-in link or code always use the platform content, 422 TEMPLATE\_TYPE\_NOT\_EDITABLE). | | `dashboards_email_templates_update` | write | `write` | `templates.update` | `PATCH /v1/email_templates/:id` | Update one of the organization's e-mail templates — name, subject, bodies, BCC, variables or active flag. | | `dashboards_email_templates_delete` | destructive | `delete` | `templates.delete` | `DELETE /v1/email_templates/:id` | Delete an inactive e-mail template of the organization for good. | | `dashboards_email_templates_duplicate` | write | `write` | `templates.create` | `POST /v1/email_templates/:id/duplicate` | Copy an e-mail template as an inactive draft, named `new_name` or "\ (Cópia)". | | `dashboards_email_templates_preview` | read | `read` | `templates.show` | `GET /v1/email_templates/:id/preview` | Render an e-mail template with built-in sample data, wrapped in the organization layout, without sending anything. | | `dashboards_email_templates_render` | write | `write` | `templates.update` | `POST /v1/email_templates/:id/preview` | Render an e-mail template with your own `variables` (no layout), without sending anything. | | `dashboards_email_templates_init_defaults` | destructive | `write` | `templates.create` | `POST /v1/email_templates/init_defaults` | Reset the organization's template of every notification type to the shipped default and activate it — creating missing ones and OVERWRITING the content of existing ones. | | `dashboards_email_layouts_list` | read | `read` | `templates.list` | `GET /v1/email_layouts` | List the organization's e-mail layouts (the HTML shell e-mails are wrapped in — never those carrying a sign-in link or code, which use the platform layout), default first. | | `dashboards_email_layouts_get` | read | `read` | `templates.show` | `GET /v1/email_layouts/:id` | Fetch one e-mail layout by id — name, HTML, default and active flags. | | `dashboards_email_layouts_create` | write | `write` | `templates.create` | `POST /v1/email_layouts` | Create an e-mail layout. | | `dashboards_email_layouts_update` | write | `write` | `templates.update` | `PATCH /v1/email_layouts/:id` | Update an e-mail layout — name, HTML (must keep `{{content}}`), default or active flag. | | `dashboards_email_layouts_delete` | destructive | `delete` | `templates.delete` | `DELETE /v1/email_layouts/:id` | Delete an e-mail layout for good. | | `dashboards_email_layouts_init_defaults` | write | `write` | `templates.create` | `POST /v1/email_layouts/init_defaults` | Make sure the organization has a default e-mail layout: returns the current default, or creates the built-in one. | ## `notifications`[​](#notifications "Direct link to notifications") | Tool | Kind | Scope | Permission | Endpoint | What it does | | --------------------------------- | ----------- | ------- | ---------------------- | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_notifications_list` | read | `read` | `notifications.list` | `GET /v1/notifications` | List the notifications (e-mails and other messages) of the workspace and the organization, newest first. | | `dashboards_notifications_stats` | read | `read` | `notifications.list` | `GET /v1/notifications/stats` | Count the notifications created in the last `days` days (default 30) by status, type and channel, with the delivery and read rates. | | `dashboards_notifications_create` | destructive | `write` | `notifications.update` | `POST /v1/notifications` | Send a notification to `recipient`: renders the organization's active template of `type` (or the platform default) with `variables`, stores it and sends it right away — the returned notification is `sent`, or `failed` with its `failure_reason`. | | `dashboards_notifications_send` | destructive | `write` | `notifications.update` | `POST /v1/notifications/:id/send` | Send a stored notification now — the first send of a `pending` (scheduled) or `skipped` one, or a resend of a sent, delivered, read or failed one. | *** The fields of each resource are in the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) and in `dashboards_schemas_get`. A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- # Operations API keys, exports, imports, backups, data purge, maintenance and the organization usage — of the platform, of AI and of the rate limits. ## Families on this page[​](#families-on-this-page "Direct link to Families on this page") | Family | Tools | read | write | destructive | | --------------------------- | ----- | ---- | ----- | ----------- | | `api-keys` — API keys | 7 | 2 | 2 | 3 | | `exports` — Exports | 4 | 3 | 1 | 0 | | `imports` — Imports | 3 | 2 | 0 | 1 | | `backups` — Backups | 7 | 3 | 1 | 3 | | `data-purges` — Data purge | 2 | 2 | 0 | 0 | | `maintenance` — Maintenance | 1 | 0 | 0 | 1 | | `usage` — Usage | 1 | 1 | 0 | 0 | | `ai-usage` — AI usage | 1 | 1 | 0 | 0 | | `rate-limits` — Rate limits | 1 | 1 | 0 | 0 | ## `api-keys`[​](#api-keys "Direct link to api-keys") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ---------------------------- | -------------------- | -------- | ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_api_keys_list` | read | `read` | `api-keys.list` | `GET /v1/api_keys` | List the organization API keys (`kb_…`) with their status, prefix, expiry and who created/enabled/revoked them. | | `dashboards_api_keys_get` | read | `read` | `api-keys.show` | `GET /v1/api_keys/:id` | Fetch one organization API key by id — metadata and lifecycle stamps, never the secret. | | `dashboards_api_keys_create` | write · confirmation | `write` | `api-keys.create` | `POST /v1/api_keys` | Create an organization API key (active, valid for one year unless `expires_at` says otherwise). | | `dashboards_api_keys_update` | write · confirmation | `write` | `api-keys.update` | `PATCH /v1/api_keys/:id` | Edit an API key (name, description, source, notification e-mails, expiry) and/or enable or disable it with `enabled`. | | `dashboards_api_keys_revoke` | destructive | `write` | `api-keys.delete` | `POST /v1/api_keys/:id/revoke` | Permanently revoke an API key. | | `dashboards_api_keys_rotate` | destructive | `write` | `api-keys.update` | `POST /v1/api_keys/:id/rotate` | Rotate an active API key: issues a successor (plaintext `key` returned ONCE) and keeps the old one working for `grace_days` (default 7, max 30). | | `dashboards_api_keys_delete` | destructive | `delete` | `api-keys.delete` | `DELETE /v1/api_keys/:id` | Remove a REVOKED API key from the list (soft delete; history kept). | ## `exports`[​](#exports "Direct link to exports") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ----------------------------- | ----- | -------- | ---------------- | ------------------------------ | ------------------------------------------------------------------------------- | | `dashboards_exports_list` | read | `read` | `exports.list` | `GET /v1/exports` | List the export requests of the workspace (status, format, row count, expiry). | | `dashboards_exports_get` | read | `read` | `exports.list` | `GET /v1/exports/:id` | Fetch one export request — poll it until `status` is `completed` (or `failed`). | | `dashboards_exports_create` | write | `export` | `exports.create` | `POST /v1/exports` | Request an export of the workspace portal users as CSV, XLSX or JSON. | | `dashboards_exports_download` | read | `export` | `exports.list` | `GET /v1/exports/:id/download` | Download the file of a completed export (CSV, XLSX or JSON bytes). | ## `imports`[​](#imports "Direct link to imports") | Tool | Kind | Scope | Permission | Endpoint | What it does | | --------------------------- | ----------- | -------- | ---------------- | --------------------- | --------------------------------------------------------------------------------------- | | `dashboards_imports_list` | read | `read` | `imports.list` | `GET /v1/imports` | List the import requests of the workspace with their status and success/error counters. | | `dashboards_imports_get` | read | `read` | `imports.list` | `GET /v1/imports/:id` | Fetch one import — status, processed/success/error counters and the per-row errors. | | `dashboards_imports_create` | destructive | `import` | `imports.create` | `POST /v1/imports` | Import portal users into the workspace from a CSV sent as base64. | ## `backups`[​](#backups "Direct link to backups") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ----------------------------- | ----------- | -------- | ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_backups_list` | read | `read` | `settings.view` | `GET /v1/backups` | List the organization backups and restores (metadata only) plus `backup_allowed` / `next_backup_at` (one backup per 12 hours). | | `dashboards_backups_get` | read | `read` | `settings.view` | `GET /v1/backups/:id` | Fetch one backup or restore — status, progress, resource counts. | | `dashboards_backups_create` | write | `write` | `settings.update` | `POST /v1/backups` | Request a full backup (ZIP) of the organization, every workspace included. | | `dashboards_backups_download` | read | `export` | `backups.export` | `GET /v1/backups/:id/download` | Download the ZIP of a backup. | | `dashboards_backups_restore` | destructive | `import` | `settings.update` | `POST /v1/backups/restore` | Restore a backup into the workspace — rewrites portal users matched by e-mail/public id. | | `dashboards_backups_cancel` | destructive | `write` | `settings.update` | `POST /v1/backups/:id/cancel` | Cancel a pending or running restore. | | `dashboards_backups_delete` | destructive | `delete` | `settings.update` | `DELETE /v1/backups/:id` | Delete a backup or restore record and its file from storage. | ## `data-purges`[​](#data-purges "Direct link to data-purges") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------- | ---- | ------ | ------------ | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_data_purges_counts` | read | `read` | `data.purge` | `GET /v1/data_purges` | Count the rows each purgeable resource (portal\_users, people, usage\_history) holds across every workspace — what a purge would wipe. | | `dashboards_data_purges_get` | read | `read` | `data.purge` | `GET /v1/data_purges/:id` | Progress and result of a data purge job, by the `job_id` the purge returned. | ## `maintenance`[​](#maintenance "Direct link to maintenance") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ---------------------------------------- | ----------- | ------- | ----------------- | -------------------------------------- | ------------------------------------------------------------------------------ | | `dashboards_maintenance_uppercase_names` | destructive | `write` | `settings.update` | `POST /v1/maintenance/uppercase_names` | Upper-case the name of every contact linked to a portal user of the workspace. | ## `usage`[​](#usage "Direct link to usage") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ---------------------- | ---- | ------ | ------------ | --------------- | ------------------------------------------------------------------------------------------------------------------------- | | `dashboards_usage_get` | read | `read` | `usage.view` | `GET /v1/usage` | Platform usage of the organization ("Consumo"): per metric, the daily series in the range, the latest value and the peak. | ## `ai-usage`[​](#ai-usage "Direct link to ai-usage") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------- | ---- | ------ | -------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_ai_usage_get` | read | `read` | `portal-config.view` | `GET /v1/ai_usage` | AI consumption (price only) of the workspace for a period — totals, per day, latest turns — plus the organization month to date, limits, credit balance and whether the next turn is allowed. | ## `rate-limits`[​](#rate-limits "Direct link to rate-limits") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ---------------------------- | ---- | ------ | --------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_rate_limits_get` | read | `read` | `settings.view` | `GET /v1/rate_limits` | Read the API rate limits in force for the organization (per minute/hour, burst), whether they are custom, and the platform defaults. | *** The fields of each resource are in the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) and in `dashboards_schemas_get`. A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- # Organization and schemas The organization profile itself, `dashboards_workspaces_list` — the workspaces you can pass as `workspace_id` —, `dashboards_schemas_get`, the field catalogue that tells you what to ask for in `fields` and in `sort_by`, and your approvals by link: `dashboards_operation_approvals_get` tells what happened to an operation after you decided on the link. ## Families on this page[​](#families-on-this-page "Direct link to Families on this page") | Family | Tools | read | write | destructive | | ----------------------------------------- | ----- | ---- | ----- | ----------- | | `settings` — Organization and schemas | 6 | 4 | 2 | 0 | | `workspaces` — Workspaces | 9 | 5 | 3 | 1 | | `operation-approvals` — Approvals by link | 2 | 2 | 0 | 0 | ## `settings`[​](#settings "Direct link to settings") | Tool | Kind | Scope | Permission | Endpoint | What it does | | -------------------------------- | ------------------------------------------------- | --------- | ----------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_organization_get` | read | `read` | `settings.view` | `GET /v1/organization` | Fetch the organization the access token acts for — name, contact details and settings. | | `dashboards_organization_update` | write | `write` | `settings.update` | `PATCH /v1/organization` | Update the organization profile: its addresses and custom metadata. | | `dashboards_settings_get` | read | `read` | `settings.view` | `GET /v1/settings` | Read the organization settings: name, support e-mail, timezone and the records toggles (upper-case names, who may create/edit portal users…). | | `dashboards_settings_update` | write · confirmation (depending on the arguments) | `write` | `settings.update` | `PUT /v1/settings` | Change organization settings. | | `dashboards_me` | read | any token | `settings.view` | — (local) | Return the identity behind this connection's access token: the person (user), the organization and the token itself (type, scopes, access levels, expiry). | | `dashboards_schemas_get` | read | `read` | `settings.view` | — (local) | Describe the fields of a resource: every field name, its type, whether it is nullable, its enum values and what it means. | ## `workspaces`[​](#workspaces "Direct link to workspaces") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------ | -------------------- | -------- | ------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_workspaces_search` | read | `read` | `workspaces.list` | `GET /v1/workspaces` | List the workspaces of the organization you can open, with your role (`owner`/`member`) in each — filter by a name substring with `search`. | | `dashboards_workspaces_get` | read | `read` | `workspaces.show` | `GET /v1/workspaces/:id` | Fetch one workspace you can open, with your role in it and its entity field limit. | | `dashboards_workspaces_create` | write | `write` | `workspaces.create` | `POST /v1/workspaces` | Create a new, empty workspace in the organization; you become its owner. | | `dashboards_workspaces_update` | write | `write` | `workspaces.update` | `PATCH /v1/workspaces/:id` | Rename a workspace (workspace owners only). | | `dashboards_workspaces_delete` | destructive | `delete` | `workspaces.delete` | `DELETE /v1/workspaces/:id` | Delete a workspace (workspace owners only): its portal goes offline, its connectors stop syncing and its members lose access. | | `dashboards_workspaces_usage` | read | `read` | `workspaces.show` | `GET /v1/workspaces/:id/usage` | Count what deleting a workspace would hide — its portal users, connectors and webhooks — and whether it is empty. | | `dashboards_workspaces_export` | read | `export` | `workspaces.show` | `GET /v1/workspaces/:id/export` | Export a workspace configuration (portal builder, portal access and settings, user mapping, connectors and entities) as JSON, without secrets or data — workspace owners only. | | `dashboards_workspaces_import` | write · confirmation | `import` | `workspaces.create` | `POST /v1/workspaces/import` | Create a NEW workspace, owned by you, from a file produced by `dashboards_workspaces_export`. | | `dashboards_workspaces_list` | read | `read` | `workspaces.list` | — (local) | List the workspaces you can act on. | ## `operation-approvals`[​](#operation-approvals "Direct link to operation-approvals") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------- | ---- | --------------------------- | --------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------- | | `dashboards_operation_approvals_get` | read | any `dashboards/…` or `all` | `settings.view` | — (local) | Get one of your operation approvals by id — the `approval.id` a destructive tool answered with `status: "approval_required"`. | | `dashboards_operation_approvals_list` | read | any `dashboards/…` or `all` | `settings.view` | — (local) | List your operation approvals, newest first, in this workspace and at organization level. | *** The fields of each resource are in the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) and in `dashboards_schemas_get`. A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- # Tools The server exposes **220 tools** over **30 resource families**. Each one dispatches in-process to the `/v1` endpoint that already implements the operation, so filters, validation, upsert matching and tenant isolation are exactly the REST API's — the tool *is* the endpoint. The exceptions, `dashboards_schemas_get`, `dashboards_workspaces_list`, `dashboards_me` and the two approval-by-link tools (`dashboards_operation_approvals_get` and `_list`), answer locally and are marked as such. Inside the organization, data lives in workspaces: every data tool takes an optional `workspace_id`. ## How to read these pages[​](#how-to-read-these-pages "Direct link to How to read these pages") Every tool carries five facts, in this order: > `dashboards_portal_users_resend_invite` · **destructive** · scope `write` · resource `portal-users` · permission `portal-users.update` · `POST /v1/portal_users/:id/resend` | Field | Meaning | | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **read** / **write** / **destructive** | The annotation the MCP client reads. A `destructive` tool (deletes, suspends, closes, deactivates, sends an e-mail or invite) runs only after the user confirms in the form the server sends, on revision 2026-07-28; a client that does not show the form gets an approval link (`approval_required`), and the tool runs only when the person chooses Continue on it. | | **write · confirmation** | A write that deletes nothing but makes the server call an address you choose, creates or reveals a secret, changes who can sign in to the portal or what runs in it, or changes what a team member can reach (API keys, webhooks, data source connections, workspace imports, sign-in providers, portal settings, team roles and access, drafts with a webhook or e-mail recipients, public files). It asks for the same confirmation as a `destructive` tool, without announcing itself as destructive. **depending on the arguments**: it asks only when the call carries the sensitive field (a portal user's `email`, for example). | | **scope** | The scope verb the token must carry for the tool: `read`, `write`, `delete`, `import` or `export` — on the endpoint's `dashboards/{resource}` group, when the token carries resource scopes. One verb never stands in for another: `write` does not delete, import or export. An OAuth client asks for every level (`read`, `write`, `delete`, `import`, `export`) and gets the ones the person keeps checked on the consent screen. | | **resource** | The resource family of the tool — what groups the tools in these docs. | | **permission** | The dashboard permission the person who authorized the client must hold in the organization. | | **`METHOD /path`** | The `/v1` endpoint the tool dispatches to, to cross-reference with the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1). | ## Common arguments[​](#common-arguments "Direct link to Common arguments") These appear across many tools and always mean the same thing. | Argument | Type | Description | | ----------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `page` | integer | 1-based page number. Default `1`. | | `per_page` | integer | Page size. Default `20`, max `100`. | | `sort_by` | string | Sort column, snake\_case. `dashboards_schemas_get` lists the accepted ones. | | `sort_order` | `asc` \| `desc` | Direction. A value that is not a direction is an error, not a silent `desc`. | | `fields` | string\[] | Columns to return. Omit for the whole resource; `id` always comes back. | | `filters` | object | Additional filters, forwarded to the endpoint. Does not take pagination, sorting (`page`, `per_page`, `sort_by`, `sort_order`, `limit`, `cursor`, `sort`) or a filter the tool already names — pass those as named arguments; inside `filters` they are refused with `VALIDATION_ERROR`. | | `idempotency_key` | string | Replay guard, sent as `X-Idempotency-Key`. | | `custom_metadata` | object | Free-form JSON owned by you, echoed on every read and webhook. | ## The catalogue[​](#the-catalogue "Direct link to The catalogue") | Family | Tools | read | write | destructive | | ------------------------------------------------------------------------------------------------------------------ | ----- | ---- | ----- | ----------- | | [`ai-usage` — AI usage](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 1 | 1 | 0 | 0 | | [`api-keys` — API keys](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 7 | 2 | 2 | 3 | | [`assets` — Assets](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/portal.md) | 12 | 5 | 5 | 2 | | [`audit-logs` — Audit log](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/webhooks.md) | 3 | 3 | 0 | 0 | | [`backups` — Backups](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 7 | 3 | 1 | 3 | | [`checklists` — Checklists (progress per tenant)](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/access.md) | 8 | 4 | 2 | 2 | | [`comments` — Comments (conversation per tenant)](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/access.md) | 4 | 2 | 1 | 1 | | [`data-purges` — Data purge](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 2 | 2 | 0 | 0 | | [`entities` — Entities](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/data.md) | 23 | 10 | 10 | 3 | | [`events` — Events](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/webhooks.md) | 2 | 2 | 0 | 0 | | [`exports` — Exports](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 4 | 3 | 1 | 0 | | [`imports` — Imports](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 3 | 2 | 0 | 1 | | [`integrations` — Data sources](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/data.md) | 17 | 5 | 9 | 3 | | [`maintenance` — Maintenance](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 1 | 0 | 0 | 1 | | [`notifications` — Notifications](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/messaging.md) | 4 | 2 | 0 | 2 | | [`operation-approvals` — Approvals by link](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/organization.md) | 2 | 2 | 0 | 0 | | [`portal-builder` — Portal builder](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/portal.md) | 31 | 10 | 14 | 7 | | [`portal-custom-domains` — Custom domains](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/portal.md) | 5 | 2 | 1 | 2 | | [`portal-oauth-providers` — Sign-in providers](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/portal.md) | 5 | 1 | 2 | 2 | | [`portal-settings` — Portal settings](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/portal.md) | 7 | 2 | 3 | 2 | | [`portal-users` — Portal users](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/access.md) | 13 | 6 | 2 | 5 | | [`rate-limits` — Rate limits](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 1 | 1 | 0 | 0 | | [`roles` — Team roles](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/access.md) | 6 | 2 | 3 | 1 | | [`settings` — Organization and schemas](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/organization.md) | 6 | 4 | 2 | 0 | | [`templates` — E-mail templates](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/messaging.md) | 15 | 5 | 7 | 3 | | [`usage` — Usage](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/operations.md) | 1 | 1 | 0 | 0 | | [`users` — Dashboard users](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/access.md) | 10 | 4 | 2 | 4 | | [`webhook-deliveries` — Webhook deliveries](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/webhooks.md) | 2 | 2 | 0 | 0 | | [`webhooks` — Webhooks](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/webhooks.md) | 9 | 3 | 2 | 4 | | [`workspaces` — Workspaces](https://docs.dashboards.kobana.com.br/en/en/mcp/tools/organization.md) | 9 | 5 | 3 | 1 | A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- # Portal The portal site — draft, publishing and versions of its pages, and the file library it shows — and its configuration: branding, domain, custom domains and sign-in providers. ## Families on this page[​](#families-on-this-page "Direct link to Families on this page") | Family | Tools | read | write | destructive | | -------------------------------------------- | ----- | ---- | ----- | ----------- | | `portal-builder` — Portal builder | 31 | 10 | 14 | 7 | | `assets` — Assets | 12 | 5 | 5 | 2 | | `portal-settings` — Portal settings | 7 | 2 | 3 | 2 | | `portal-custom-domains` — Custom domains | 5 | 2 | 1 | 2 | | `portal-oauth-providers` — Sign-in providers | 5 | 1 | 2 | 2 | ## `portal-builder`[​](#portal-builder "Direct link to portal-builder") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------------------ | ------------------------------------------------- | ------- | ---------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_builder_get` | read | `read` | `portal-config.view` | `GET /v1/builder` | Read the portal builder of the workspace: portal identity, the draft (pages with their badge against the live version, `revision`, `dirty`), the live version number, the published versions, the theme and the SEO defaults. | | `dashboards_builder_draft_save` | write · confirmation (depending on the arguments) | `write` | `portal-config.update` | `PUT /v1/builder/draft` | Save the whole portal draft (pages in menu order, editor state, optional theme and SEO defaults), guarded by `revision`. | | `dashboards_builder_publish` | destructive | `write` | `portal-config.update` | `POST /v1/builder/publish` | Save the draft as sent and publish it as the next portal version — visitors see it immediately. | | `dashboards_builder_versions_get` | read | `read` | `portal-config.view` | `GET /v1/builder/versions/:number` | Fetch one published portal version by number, with the pages it froze. | | `dashboards_builder_versions_rollback` | destructive | `write` | `portal-config.update` | `POST /v1/builder/versions/:number/rollback` | Put a published version back on the air as the next version number — visitors see it immediately. | | `dashboards_builder_encrypt_secret` | write | `write` | `portal-config.update` | `POST /v1/builder/encrypt_secret` | Encrypt a value a block keeps in the page JSON (e.g. | | `dashboards_builder_upload_og_image` | write | `write` | `portal-config.update` | `POST /v1/builder/upload_og_image` | Upload an og:image (PNG, JPEG or WebP, base64, at most \~1.5 MB) for a page or the portal defaults. | | `dashboards_builder_test_form` | destructive | `write` | `portal-config.update` | `POST /v1/builder/test_form` | Test a form block from your draft: really sends the configured e-mail (fires the chosen webhook, or writes the record to the chosen entity), marked as a preview. | | `dashboards_builder_test_action` | destructive | `write` | `portal-config.update` | `POST /v1/builder/test_action` | Test an action-button block from your draft: really sends its webhook request (POST/PUT/PATCH to an https URL), marked as a preview. | | `dashboards_builder_versions_restore` | destructive | `write` | `portal-config.update` | `POST /v1/builder/versions/:number/restore` | Copy a published portal version into the DRAFT, replacing the draft pages (to keep editing from an older version). | | `dashboards_builder_theme_update` | write | `write` | `portal-config.update` | `PATCH /v1/builder/theme` | Change colors of the portal pages' theme (the builder's Visual tab) on the draft, per mode, in hex: primary, primary\_foreground, accent, background, foreground, card, muted, muted\_foreground, border. | | `dashboards_builder_list_block_types` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | Lists the block catalog: every block type the portal can render, with what it is for. | | `dashboards_builder_describe_block_type` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | The props of one block type: JSON Schema, defaults and slots. | | `dashboards_builder_list_actions` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | What an ActionButton can do (its actionType): open a link (a portal page or a URL) or fire a webhook, and the {{variables}} its webhook URL, headers and body may use. | | `dashboards_builder_get_theme` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | The colors of the portal pages (the Visual tab of the draft), in hex, for light and dark mode: what each color is for and its current value. | | `dashboards_builder_list_pages` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | Lists the pages of the draft in menu order: id, name, path, title and block count. | | `dashboards_builder_get_page` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | One page of the draft: its settings (name, path, title, SEO) and its block tree, each block with id, type, props and slots. | | `dashboards_builder_read_asset` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | Opens a file of the Assets library to look at its content: an image or a PDF is shown to you, a text file (txt, csv, json, md, xml) or an .xlsx spreadsheet comes as text. | | `dashboards_builder_preview_portal_user_mapping` | read | `read` | `portal-config.view` | `GET /v1/builder/tools/:name` | Checks a portal user mapping before saving it with `dashboards_portal_user_mappings_update`: the entity whose records would become the portal users, its tenant ID, e-mail and name fields, how many users that is, and how the tenant IDs match the owners of the other entities' records. | | `dashboards_builder_create_page` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Creates a page in the draft and adds it to the portal menu. | | `dashboards_builder_update_page` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Changes the settings of a page: menu name, route, browser title, whether it is listed in the portal menu, and SEO / Open Graph tags. | | `dashboards_builder_delete_page` | destructive | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Removes a page (and its blocks) from the draft and from the menu. | | `dashboards_builder_move_page` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Moves a page to another place in the portal menu. | | `dashboards_builder_insert_block` | write · confirmation (depending on the arguments) | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Inserts a block of the catalog in a page: at the page root, or inside a slot of a Columns/Tabs block (parent\_block\_id + slot). | | `dashboards_builder_update_block` | write · confirmation (depending on the arguments) | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Changes props of a block. | | `dashboards_builder_move_block` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Moves a block inside its page: to another position at the root (parent\_block\_id null) or into a slot of a Columns/Tabs block. | | `dashboards_builder_remove_block` | destructive | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Removes a block (and the blocks inside it) from its page. | | `dashboards_builder_duplicate_block` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Copies a block (with the blocks inside it) right after itself, with new ids. | | `dashboards_builder_register_entity` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Registers an entity (data blocks bind to it) from an operation of a connected data source (describe\_data\_source), with the fields inferred from a sample of its records, and starts its first sync. | | `dashboards_builder_rename_entity_fields` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Changes an existing entity: renames its fields — the labels the blocks show (table headers, card labels) — and, optionally, the entity itself, and can set its owner field (the titular: whose record it is). | | `dashboards_builder_save_computed_field` | write | `write` | `portal-config.update` | `POST /v1/builder/tools/:name` | Adds a computed field to an entity — a value derived from the other fields by an expression (n8n style) — or changes the expression of a computed field it already has (same key). | ## `assets`[​](#assets "Direct link to assets") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------- | ------------------------------------------------- | -------- | ---------------------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_assets_list` | read | `read` | `portal-config.view` | `GET /v1/assets` | List the files of the workspace library (images and documents), newest first by default. | | `dashboards_assets_get` | read | `read` | `portal-config.view` | `GET /v1/assets/:id` | Fetch one file of the library: name, link, visibility, type, size and alternative text. | | `dashboards_assets_download` | read | `read` | `portal-config.view` | `GET /v1/assets/:id/download` | Get the bytes of a file, whatever its visibility. | | `dashboards_assets_presign` | write | `write` | `portal-config.update` | `POST /v1/assets/presign` | Get a short-lived signed URL to PUT a file straight to storage (for files over \~1.5 MB). | | `dashboards_assets_create` | write · confirmation (depending on the arguments) | `write` | `portal-config.update` | `POST /v1/assets` | Add a file to the library: either the `key` of a file sent through `dashboards_assets_presign`, or the file itself in `content_base64` (small files). | | `dashboards_assets_update` | write · confirmation (depending on the arguments) | `write` | `portal-config.update` | `PATCH /v1/assets/:id` | Rename a file, change its date, its alternative text, its visibility (making it public opens its storage URL to anyone; private or restricted closes it), its tenant, type or tags. | | `dashboards_assets_delete` | destructive | `delete` | `portal-config.update` | `DELETE /v1/assets/:id` | Remove a file from the library. | | `dashboards_asset_types_list` | read | `read` | `portal-config.view` | `GET /v1/asset_types` | List the file types of the workspace (Propostas, Contratos…), by name, with how many files each has. | | `dashboards_asset_types_get` | read | `read` | `portal-config.view` | `GET /v1/asset_types/:id` | Fetch one file type of the workspace: its name and dates. | | `dashboards_asset_types_create` | write | `write` | `portal-config.update` | `POST /v1/asset_types` | Create a file type (unique name in the workspace, ignoring case). | | `dashboards_asset_types_update` | write | `write` | `portal-config.update` | `PATCH /v1/asset_types/:id` | Rename a file type; the files keep it under the new name. | | `dashboards_asset_types_delete` | destructive | `delete` | `portal-config.update` | `DELETE /v1/asset_types/:id` | Remove a file type. | ## `portal-settings`[​](#portal-settings "Direct link to portal-settings") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------------ | -------------------- | -------- | ---------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_portal_settings_get` | read | `read` | `portal-config.view` | `GET /v1/portal_settings` | Read the workspace portal's configuration: branding (company name, title, logos, theme colors), languages, address (`signup_slug`, `portal_slug`/`portal_domain`), login and SSO options, notification settings and sender identity, and site settings (security headers, SEO, tracking/chat integrations, custom code). | | `dashboards_portal_settings_update` | write · confirmation | `write` | `portal-config.update` | `PATCH /v1/portal_settings` | Update the workspace portal's configuration. | | `dashboards_portal_settings_logo_upload` | write | `write` | `portal-config.update` | `POST /v1/portal_settings/logo` | Upload a portal image — the logo, the dark-background logo or the favicon — sent inline as base64. | | `dashboards_portal_settings_logo_delete` | destructive | `delete` | `portal-config.update` | `DELETE /v1/portal_settings/logo` | Remove a portal image (logo, dark-background logo or favicon); the portal falls back to its default. | | `dashboards_portal_settings_domain_update` | write | `write` | `portal-config.update` | `PATCH /v1/portal_settings/domain` | Set the portal's platform address `https://{slug}.{domain}` (`domain` must be one of `available_domains` from `dashboards_portal_settings_get`), or clear it with both `null`. | | `dashboards_portal_settings_check_slug` | read | `read` | `portal-config.view` | `GET /v1/portal_settings/domain/check_slug` | Check whether a portal address `slug.domain` is free for this workspace. | | `dashboards_portal_settings_verify_sender` | destructive | `write` | `portal-config.update` | `POST /v1/portal_settings/verify_sender` | Request or re-check the AWS SES verification of the notification sender e-mail. | ## `portal-custom-domains`[​](#portal-custom-domains "Direct link to portal-custom-domains") | Tool | Kind | Scope | Permission | Endpoint | What it does | | --------------------------------------------- | ----------- | -------- | ---------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_portal_custom_domains_list` | read | `read` | `portal-config.view` | `GET /v1/portal_custom_domains` | List the custom domains of the workspace's portal, each with its `status`, certificate dates and the `dns_records` the customer must publish. | | `dashboards_portal_custom_domains_create` | write | `write` | `portal-config.update` | `POST /v1/portal_custom_domains` | Register a custom domain (e.g. | | `dashboards_portal_custom_domains_delete` | destructive | `delete` | `portal-config.update` | `DELETE /v1/portal_custom_domains/:id` | Remove a custom domain from the portal, tearing down its CloudFront tenant and certificate when provisioned. | | `dashboards_portal_custom_domains_verify` | destructive | `write` | `portal-config.update` | `POST /v1/portal_custom_domains/:id/verify` | Check the DNS of a custom domain and provision it on AWS (certificate + CloudFront tenant) while pending, or refresh its status once provisioned. | | `dashboards_portal_custom_domains_dns_status` | read | `read` | `portal-config.view` | `GET /v1/portal_custom_domains/:id/dns_status` | Read-only DNS probe of a custom domain: whether the ownership TXT (`_dashmagico-verify.{hostname}`, `ownership_ok`) and the routing and certificate-validation CNAMEs (`routing_ok`, `validation_ok`) are in place, and what is wrong when not. | ## `portal-oauth-providers`[​](#portal-oauth-providers "Direct link to portal-oauth-providers") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------------ | -------------------- | -------- | ---------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_portal_oauth_providers_list` | read | `read` | `portal-config.view` | `GET /v1/portal_oauth_providers` | List the portal's OpenID Connect login providers (name, issuer, client id, scopes, enabled). | | `dashboards_portal_oauth_providers_create` | write · confirmation | `write` | `portal-config.update` | `POST /v1/portal_oauth_providers` | Add an OpenID Connect login provider to the portal. | | `dashboards_portal_oauth_providers_update` | write · confirmation | `write` | `portal-config.update` | `PATCH /v1/portal_oauth_providers/:id` | Update an OpenID Connect login provider. | | `dashboards_portal_oauth_providers_delete` | destructive | `delete` | `portal-config.update` | `DELETE /v1/portal_oauth_providers/:id` | Remove an OpenID Connect login provider from the portal; its login button disappears and its users can no longer sign in through it. | | `dashboards_portal_oauth_providers_test` | destructive | `write` | `portal-config.update` | `POST /v1/portal_oauth_providers/test` | Pre-flight check of an OIDC issuer URL: fetches its discovery document from the third-party issuer and returns its endpoints (`ok: true`) or why it failed (`ok: false`). | *** The fields of each resource are in the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) and in `dashboards_schemas_get`. A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- # Webhooks, events and audit The endpoints that receive the organization events, the deliveries and their retries, the event history and the audit log. ## Families on this page[​](#families-on-this-page "Direct link to Families on this page") | Family | Tools | read | write | destructive | | ----------------------------------------- | ----- | ---- | ----- | ----------- | | `webhooks` — Webhooks | 9 | 3 | 2 | 4 | | `webhook-deliveries` — Webhook deliveries | 2 | 2 | 0 | 0 | | `events` — Events | 2 | 2 | 0 | 0 | | `audit-logs` — Audit log | 3 | 3 | 0 | 0 | ## `webhooks`[​](#webhooks "Direct link to webhooks") | Tool | Kind | Scope | Permission | Endpoint | What it does | | -------------------------------------- | -------------------- | -------- | ----------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_webhooks_list` | read | `read` | `webhooks.list` | `GET /v1/webhooks` | List the webhook endpoints of the workspace, newest first, each with its `delivery_count`. | | `dashboards_webhooks_get` | read | `read` | `webhooks.show` | `GET /v1/webhooks/:id` | Fetch one webhook endpoint by id: URL, subscribed events, auth type, active flag and delivery count. | | `dashboards_webhooks_create` | write · confirmation | `write` | `webhooks.create` | `POST /v1/webhooks` | Create an active webhook endpoint in the workspace subscribed to the given event types. | | `dashboards_webhooks_update` | write · confirmation | `write` | `webhooks.update` | `PATCH /v1/webhooks/:id` | Update a webhook endpoint — URL, description, subscribed events, `active` (pause/resume), or authentication (`auth_type` with its `auth_config`). | | `dashboards_webhooks_delete` | destructive | `delete` | `webhooks.delete` | `DELETE /v1/webhooks/:id` | Delete a webhook endpoint for good, together with its delivery log. | | `dashboards_webhooks_test` | destructive | `write` | `webhooks.update` | `POST /v1/webhooks/:id/test` | Send a signed `test.webhook` event to the endpoint's URL now and record it in its delivery log. | | `dashboards_webhooks_rotate_secret` | destructive | `write` | `webhooks.update` | `POST /v1/webhooks/:id/rotate_secret` | Replace the signing secret of a webhook endpoint. | | `dashboards_webhooks_deliveries_list` | read | `read` | `webhooks.show` | `GET /v1/webhooks/:id/deliveries` | List the delivery log of one webhook endpoint, newest first: status, HTTP status, attempts, request and response. | | `dashboards_webhooks_deliveries_retry` | destructive | `write` | `webhooks.update` | `POST /v1/webhooks/:id/deliveries/:delivery_id/retry` | Queue a webhook delivery to be sent again to its endpoint (it goes back to `pending`). | ## `webhook-deliveries`[​](#webhook-deliveries "Direct link to webhook-deliveries") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------------ | ---- | ------ | --------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | `dashboards_webhook_deliveries_list` | read | `read` | `webhooks.list` | `GET /v1/webhook_deliveries` | List webhook deliveries across every endpoint of the workspace, newest first, each with its `event_type` and endpoint summary. | | `dashboards_webhook_deliveries_get` | read | `read` | `webhooks.show` | `GET /v1/webhook_deliveries/:id` | Fetch one webhook delivery by id: event type, endpoint, status, HTTP status, attempts, the (redacted) request and the response body. | ## `events`[​](#events "Direct link to events") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------ | ---- | ------ | ------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | `dashboards_events_list` | read | `read` | `events.list` | `GET /v1/events` | List the event log — the events webhooks are dispatched from — of the workspace plus organization-level events, newest first. | | `dashboards_events_get` | read | `read` | `events.show` | `GET /v1/events/:id` | Fetch one event by id, with its full payload (`data`) and metadata. | ## `audit-logs`[​](#audit-logs "Direct link to audit-logs") | Tool | Kind | Scope | Permission | Endpoint | What it does | | ------------------------------- | ---- | ------ | -------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `dashboards_audit_logs_list` | read | `read` | `audit.list` | `GET /v1/audit_logs` | List the audit trail — who changed what, when, from which IP — of the workspace plus organization-level entries, newest first. | | `dashboards_audit_logs_get` | read | `read` | `audit.show` | `GET /v1/audit_logs/:id` | Fetch one audit entry by id, with its previous and new values, changes and request metadata. | | `dashboards_audit_logs_summary` | read | `read` | `audit.export` | `GET /v1/audit_logs/summary` | Summarize audit activity over the last `hours` hours (default 24): total entries, the 10 most frequent actions with counts, and the 20 most recent entries. | *** The fields of each resource are in the [API reference](https://docs.dashboards.kobana.com.br/en/en/api/v1) and in `dashboards_schemas_get`. A tool you cannot run is not listed by `tools/list` at all. If one from this page is missing, see [Authentication](https://docs.dashboards.kobana.com.br/en/en/mcp/overview/authentication.md). --- ## [🗃Builder](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/.md) [7 items](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/.md) --- ## [📄️Signing in to the portal](https://docs.dashboards.kobana.com.br/en/en/portal-do-cliente/entrar.md) [How portal users sign in: email and password, magic link, Google/Microsoft, SSO and invitation.](https://docs.dashboards.kobana.com.br/en/en/portal-do-cliente/entrar.md) --- # Signing in to the portal This page shows what the **portal user** — your customer — sees when signing in. The available sign-in methods are the ones you turn on in [Access](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md). ## The portal address[​](#the-portal-address "Direct link to The portal address") Each portal has its own address, through any of these paths: | Address | Example (Aurora Energia) | | ------------------------------------------ | ----------------------------------- | | The platform address | `/portal/aurora-energia/login` | | The address on the shared domain you chose | `aurora-energia.kpanel.io/login` | | Your own domain, when one is active | `portal.auroraenergia.com.br/login` | The ready-to-copy addresses are in [Access](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md), under **Portal URLs**, along with the custom domain. The sign-in screen uses the portal's brand and colors. ![Aurora Energia portal sign-in screen](/en/assets/images/portal-login-f51f8ee61bb10629c09f4e91372dc5fc.png) In the top corner of the screen, the user switches the theme (light or dark) and opens the **Accessibility** panel, with settings such as text size, contrast and a dyslexia-friendly font. The screen speaks the portal's language, set in [Advanced](https://docs.dashboards.kobana.com.br/en/en/portal/avancado.md). ## Signing in with email[​](#signing-in-with-email "Direct link to Signing in with email") 1. The user types their email and clicks **Continue**. 2. On the next screen, they type their password and click **Sign in**. The password screen has two shortcuts: * **Sign in with magic link** — the portal sends an access link to the email. By clicking the link, the person signs in without typing a password. The link is valid for 15 minutes and works only once. * **Forgot password?** — the portal sends a link to create a new password. The link is valid for 1 hour. The new password must have at least 8 characters, with an uppercase letter, a lowercase letter and a number. If the portal uses only the magic link (no password), the email goes straight to sending the link. :::info For security, the portal doesn't say whether the email exists The answer is the same for any email: *"Link sent!"* or *"Invalid email or password"*. That way no one can find out who is registered in the portal. If the user doesn't receive the link, check that their email is registered in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md) and that they are not an **SSO only** user — those sign in only through your system. ::: ### Lockout after failed attempts[​](#lockout-after-failed-attempts "Direct link to Lockout after failed attempts") After **5 wrong passwords in a row**, the account is locked for **15 minutes**. During the lockout, even the right password is refused, with the same incorrect-password message. Once the time is up, the user signs in normally. To avoid waiting, they can use the magic link or **Forgot password?**. ## Signing in with Google, Microsoft and others[​](#signing-in-with-google-microsoft-and-others "Direct link to Signing in with Google, Microsoft and others") If you registered sign-in providers (OIDC) in [Access](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md), the sign-in screen starts with the question **Choose how to sign in**: a button for each provider (**Continue with Google**, for example) and the **Sign in with email** button. The user must already be registered in the portal with the **same email** as the provider account. If not, they see the **Access not authorized** screen, asking them to contact the company responsible for the portal. The provider must also share the person's email: if they deny any requested permission, the portal explains that all of them must be authorized. ## Signing in through your system (SSO)[​](#signing-in-through-your-system-sso "Direct link to Signing in through your system (SSO)") With [SSO](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md), the user doesn't go through the sign-in screen: they click a link inside your system and arrive at the portal already authenticated. While the portal checks the access, *Authenticating…* appears. If the link has expired or was already used, the portal shows the error and a button to go back to sign-in. ## First access[​](#first-access "Direct link to First access") ### By invitation[​](#by-invitation "Direct link to By invitation") When you invite a user in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md), they receive an email with the invitation link: 1. The person clicks the link and lands on the **Create your password** screen. 2. They set a password of at least 8 characters and confirm it. 3. They click **Create account** and are taken to sign-in. The invitation is valid for **7 days**. After that, send a new invitation from the dashboard. ### By email verification[​](#by-email-verification "Direct link to By email verification") A user who is waiting for email verification receives a verification link, valid for **24 hours**. By clicking it, they complete their registration — full name, mobile phone and password — and sign in to the portal right away. Until they verify, password sign-in shows *"Please verify your email before signing in."* ## Messages the user may see[​](#messages-the-user-may-see "Direct link to Messages the user may see") | Message | What it means | | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | **Invalid email or password** | The password doesn't match, the email isn't registered in this portal or the account is locked from failed attempts. | | **Your account has been suspended** | The user was suspended in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md). | | **Login unavailable** | Portal sign-in is turned off in [Access](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md). Only SSO keeps working. | | **Your session has expired** | The session ended. Just sign in again. | ## How long the person stays signed in[​](#how-long-the-person-stays-signed-in "Direct link to How long the person stays signed in") After signing in, the user stays signed in for up to **14 days** in that browser. They can sign out at any time from the account menu — see [Using the portal](https://docs.dashboards.kobana.com.br/en/en/portal-do-cliente/navegar.md). Changing the password or the email ends the sessions open elsewhere. --- # Using the portal This page shows the portal from the **portal user's** point of view, after they [sign in](https://docs.dashboards.kobana.com.br/en/en/portal-do-cliente/entrar.md). Everything they see is what you built and published in the [Builder](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/.md): the pages, the blocks and the menu order. ## The home page[​](#the-home-page "Direct link to The home page") After signing in, the user lands on the published portal's home page. At Aurora Energia, it greets the customer by name and shows a summary of invoices, a chart of amounts per month, the due-date calendar and their consumer units. ![Aurora Energia portal home page](/en/assets/images/portal-inicio-dcf7b65c8077de6367ba38869ec03511.png) While the workspace hasn't published any version of the portal, the home page shows only a greeting (*Hello, name!*) and the user's **Tenant ID**. ## Only each user's data[​](#only-each-users-data "Direct link to Only each user's data") Each user sees only the records that are theirs: those whose holder equals their **tenant ID**. Two customers opening the same **Invoices** page see different lists, each with their own invoices. An address pointing to someone else's record shows nothing. See [Holder and tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md). ## The header[​](#the-header "Direct link to The header") The portal header brings together: * the portal's **brand**; * the **menu**, with the published pages you marked to appear in the menu (or the links you defined in the Builder). On mobile, the menu opens with the three-line button; * the **theme button**, with the sun or the moon, to switch between light and dark mode; * the **account menu**, opened by the user's initials, with the name, the email and the **Change password** and **Sign out** options. What appears in the header depends on how you configured the Header block in the Builder. ## Tables[​](#tables "Direct link to Tables") Lists of records — invoices, orders, contracts — appear in tables. ![Invoices page with tabs and a table](/en/assets/images/portal-faturas-cadc0e9d93bb7da8daa1a4ca1db101ba.png) * **Search** — the *Search…* field looks for the text in all fields of the records. * **Tabs** — when the page has tabs, each one filters the records. At Aurora Energia, the Invoices page has *To pay*, *Paid* and *All*. * **Pagination** — tables show a fixed number of rows at a time, with buttons for the next pages. * **Open** — the link at the end of the row leads to that record's detail page, when the page has one. With no records, the table says there is nothing linked to the user's document yet. ## Record detail[​](#record-detail "Direct link to Record detail") The detail page shows a record's fields, such as an invoice's amount, due date and payment line. ![Invoice detail in the portal](/en/assets/images/portal-detalhe-6346c96e772dfc9aec14d4ddf9437dc1.png) ## Documents to download[​](#documents-to-download "Direct link to Documents to download") File lists — payment slips, tax documents, contracts — have a **Download** button on each row. The file opens in another browser tab. ![List of tax documents to download](/en/assets/images/portal-documentos-504f3acbecca026bea32fbe55a4d5dfb.png) ## Forms and action buttons[​](#forms-and-action-buttons "Direct link to Forms and action buttons") A page can have forms — a support request, for example — and buttons that trigger an action. The user fills in the fields and submits; some fields come pre-filled with their name and email. Some actions ask for confirmation before going ahead. If submitting fails, the portal says so and the user can try again. ![Help page with frequently asked questions and a contact form](/en/assets/images/portal-ajuda-7968793866bc3e4ac15c499113871851.png) See [Forms and actions](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/formularios-e-acoes.md) to learn how to configure what happens with the submission. ## Other blocks[​](#other-blocks "Direct link to Other blocks") Besides tables and details, pages can have summary cards, charts, a calendar, a timeline, frequently asked questions, images and texts. Each portal is built its own way: the Aurora Imóveis portal, for example, has a different brand, its menu in a side bar instead of a header, different pages and different entities. ![Aurora Imóveis portal, with a different brand and different entities](/en/assets/images/portal-imoveis-1fc23c907cd0d2f7980f88787dd42789.png) The available blocks are in [Blocks](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/blocos/.md). ## When the data is still arriving[​](#when-the-data-is-still-arriving "Direct link to When the data is still arriving") If an entity fetches data at the moment of access, the block may show *Fetching your data…* for a few moments. If the fetch fails, *"We couldn't fetch your data right now. Try again in a few minutes."* appears. See [From data to the portal](https://docs.dashboards.kobana.com.br/en/en/conceitos/do-dado-ao-portal.md). ## Theme, accessibility and language[​](#theme-accessibility-and-language "Direct link to Theme, accessibility and language") * **Theme** — the portal starts in the system mode (light or dark) and the user switches with the header button. The choice is kept in that browser. * **Accessibility** — on the sign-in screens, the **Accessibility** panel adjusts text size, contrast, spacing, cursor and other items. * **Language** — the portal speaks the language you set in [Advanced](https://docs.dashboards.kobana.com.br/en/en/portal/avancado.md). The user doesn't switch the language. ## Changing the password[​](#changing-the-password "Direct link to Changing the password") In **Change password**, in the account menu, the user enters the current password and the new one. The new password must have at least 8 characters, with an uppercase letter, a lowercase letter and a number. The option only appears when the portal allows the change and the user signs in with their own password. Whoever signs in through [SSO](https://docs.dashboards.kobana.com.br/en/en/portal-do-cliente/entrar.md) doesn't see the option. ## Signing out and expired session[​](#signing-out-and-expired-session "Direct link to Signing out and expired session") * **Sign out**, in the account menu, ends the session and goes back to the portal's sign-in screen. * The session lasts up to **14 days** in that browser. When it ends, the next click leads to the sign-in screen; after signing in again, the user continues where they left off. --- # Access In **Portal › Access** (`/dashboard/portal/access`) you decide **where** the workspace portal lives and **how** users sign in to it. The screen has four tabs: | Tab | What you configure | | -------------- | ----------------------------------------------------------------------- | | **Overview** | The portal address and the sign-in methods | | **Domain** | A domain of your company, such as `portal.yourcompany.com` | | **SSO** | Single sign-on: the user arrives from your system already authenticated | | **OAuth/OIDC** | Buttons such as **Sign in with Google** on the sign-in screen | Each workspace has its own portal, and each portal has its own access configuration. ## Overview[​](#overview "Direct link to Overview") ### Portal URL[​](#portal-url "Direct link to Portal URL") The **Portal Slug** is the portal's identifier in the addresses — at Aurora Energia, `aurora-energia`. Use only lowercase letters, numbers and hyphens, up to 30 characters. If the field is empty, the **Suggest** button creates a slug from the company name (set in [Brand](https://docs.dashboards.kobana.com.br/en/en/portal/marca.md)). Without a slug, the portal has no sign-in address. The screen warns you while it is empty. Under **Shared Domain** is the platform's free domain, `kpanel.io`. The portal answers at `https://.kpanel.io` — for Aurora Energia, `https://aurora-energia.kpanel.io` —, and the screen shows the full address right below. Under **Portal URLs**, you can copy or open the ready-made addresses: * the sign-in screen on the portal address (`.../login`); * the sign-in screen on the platform address (`/portal//login`); * with SSO turned on, the SSO entry addresses (`.../sso?token=...`). When a [custom domain](#domain) is active, the portal answers on it, and the slug and the shared domain are locked. To go back to the shared address, remove the custom domain. ### Sign-in[​](#sign-in "Direct link to Sign-in") | Option | What it does | | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Enable Login** | The master switch of the sign-in screen. When off, the screen shows that sign-in is disabled — and hides e-mail, password, magic link and the OIDC buttons. [SSO](#sso-single-sign-on) keeps working | | **Password Login** | The user signs in with e-mail and password, with the **Forgot password** option | | **Magic Link Login** | The user receives by e-mail a link that signs them in without a password. The link is valid for 15 minutes | | **Allow Changing Password** | Shows **Change password** in the portal's account menu, for those who sign in with a password | ![Portal sign-in methods](/en/assets/images/portal-acesso-2933fe07f2e5a154a77d032eda05dd26.png) **Password Login** and **Magic Link Login** only apply with **Enable Login** turned on. With both turned off and no OIDC provider, the sign-in screen warns that sign-in is disabled. Changes on this tab are saved automatically, a moment after the last change. ## Domain[​](#domain "Direct link to Domain") With a custom domain, the portal lives at an address of your company — at Aurora Energia, `portal.auroraenergia.com.br`. The HTTPS certificate is issued and renewed by the platform. ### Registering a domain[​](#registering-a-domain "Direct link to Registering a domain") 1. On the **Domain** tab, click **Add Domain**. 2. Type the full domain, such as `portal.yourcompany.com`, and click **Add and see DNS records**. 3. The domain screen shows **two CNAME records**: one for **Routing** (takes the address to the portal) and one for **SSL** (proves the domain is yours, so the certificate can be issued). Copy the **Host** and the **Value** of each one. 4. Publish both records at your domain's DNS provider (Registro.br, Cloudflare, Route 53...). 5. Done. The platform checks the DNS every 5 minutes and, when both records are live, it issues the certificate and activates the domain on its own. Don't want to wait? On the domain screen, **Refresh DNS status** checks the records right away (the screen also checks every 15 seconds while it is open) and **Validate and issue SSL** starts the certificate issuance. DNS propagation can take a few minutes. :::warning Domain with www A domain starting with `www.` is usually the company's main website. Pointing it to the portal takes the website offline. The screen asks for confirmation before registering it. ::: ### Domain status[​](#domain-status "Direct link to Domain status") | Status | What it means | | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Verifying DNS** | The platform is waiting for the CNAME records. If the last check failed, the domain screen shows the reason — for example, "The CNAME doesn't point to the portal yet" | | **DNS Verified** | The records are correct; the certificate will be issued | | **Waiting for SSL** / **Generating Certificate** | The certificate is being issued. It takes 1 to 5 minutes | | **Active** | The portal already answers on the domain | | **Certificate Failed** | The certificate couldn't be issued. The platform tries again | | **Verification Failed** | The DNS check failed. Check the records; the platform keeps trying | ![Portal custom domain, active](/en/assets/images/portal-acesso-dominio-3f006461a85d52f8e6cc174be702b29a.png) ![Custom domain waiting for DNS verification](/en/assets/images/portal-acesso-dominio-pendente-be255775a99845db2ad21e96ee33fc70.png) In the Aurora Imóveis workspace, the domain `inquilino.auroraimoveis.com.br` is in **Verifying DNS**: the CNAME doesn't point to the portal yet. With the domain **Active**, its screen shows the **SSL Certificate**. It renews itself before it expires — you don't need to do anything. To remove a domain, use the trash icon in the list or **Remove domain** on its screen. The portal stops answering at that address. ## SSO (Single Sign-On)[​](#sso-single-sign-on "Direct link to SSO (Single Sign-On)") With SSO, anyone already signed in to **your** system enters the portal without typing a password. Your system generates a signed token (a JWT), and the portal checks the signature with the public key you register. ### Setting it up[​](#setting-it-up "Direct link to Setting it up") ![SSO configuration with JWT](/en/assets/images/portal-acesso-sso-fbc06cc5236e7c4301698070ad0b8025.png) 1. Generate a key pair (private and public). The **How does it work?** button, on the tab, brings the OpenSSL commands for RSA and ECDSA. 2. Turn on **Enable Single Sign-On**. 3. Fill in: | Field | What it is | | ---------------- | ------------------------------------------------------------------------------------------------------ | | **Issuer (iss)** | Who issues the token — usually your system's URL. Required | | **Algorithm** | How the token is signed: RS256 (recommended), RS384, RS512, ES256, ES384, ES512, PS256, PS384 or PS512 | | **Public Key** | The public key in PEM format, with the `BEGIN PUBLIC KEY` and `END PUBLIC KEY` lines. Required | 4. Click **Save SSO configuration**. The private key stays only on your server. Never paste it into the dashboard. ### How the user signs in[​](#how-the-user-signs-in "Direct link to How the user signs in") Your system signs a token and sends the user to: * `https:///sso?token=` — on the custom or shared domain; or * `/portal//sso?token=` — on the platform address. The ready-made addresses appear in **Overview › Portal URLs**. ### What goes in the token[​](#what-goes-in-the-token "Direct link to What goes in the token") | Claim | Required | What it is | | ------------------------------ | -------- | ---------------------------------------------------------------------------------------------------- | | `iss` | Yes | The same Issuer you registered | | `aud` | Yes | `dashboards/prd` in production | | `sub` | Yes | The user's [tenant ID](https://docs.dashboards.kobana.com.br/en/en/conceitos/titular-e-tenant-id.md) | | `user_id` | Yes | A UUID that identifies the user in your system. It becomes the portal user's public ID | | `jti` | Yes | A unique identifier. Each token can only be used once | | `iat` / `exp` | Yes | Issued-at and expiration. The token can be valid for 5 minutes at most | | `tenant_id` | No | The tenant ID, when `sub` carries something else | | `name` / `email` | No | Name and e-mail, used to create or update the user | | `upsert` | No | `true` creates the user if they don't exist yet | | `workspace_id` / `portal_slug` | No | Ties the token to this portal. Recommended | The portal looks for the user by `user_id` and, if it finds none, by e-mail. With `upsert`, a user who doesn't exist is created already **Active** and marked as **SSO only** (no password). Without `upsert`, they must be registered beforehand in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md). A user without a tenant ID gets the one in the token. An existing tenant ID is never replaced by SSO. **Suspended** or **Locked** users can't sign in, even with a valid token. SSO works even with **Enable Login** turned off — so you can leave SSO as the portal's only door. ## OAuth/OIDC[​](#oauthoidc "Direct link to OAuth/OIDC") With an OIDC provider, the sign-in screen gets buttons such as **Sign in with Google**. In the Aurora Imóveis workspace, the portal has the **Sign in with Google** button. ### Adding a provider[​](#adding-a-provider "Direct link to Adding a provider") ![OIDC provider (Sign in with Google)](/en/assets/images/portal-acesso-oidc-16bfcc3a88123a8946101d8109510a35.png) 1. On the **OAuth/OIDC** tab, click **Add provider**. 2. Under **Provider**, choose a known one — Google, Microsoft, Apple, Auth0, Okta, Keycloak or Amazon Cognito — to fill in the fields, or **Custom**. 3. Fill in the fields: | Field | What it is | | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Enabled** | Shows or hides the button on the sign-in screen | | **Name** | An internal name, such as `google` | | **Button label** | What appears on the button, such as "Sign in with Google" | | **Issuer URL** | The provider's base address, without `/.well-known`. E.g.: `https://accounts.google.com` | | **Client ID** and **Client Secret** | The credentials of the app created at the provider. The secret is stored encrypted; when editing, leave it empty to keep the current one. If you change the **Issuer URL**, enter the secret again: it belongs to the old provider, and the screen doesn't save without the new one | | **Scopes** | Usually `openid email profile` | | **Email claim** | The provider field that carries the e-mail. Usually `email` | 4. Click **Test connection** to check the Issuer URL and then **Save**. 5. Copy the **Redirect URI** that appears and register it in the provider's app (the name may be "Redirect URI" or "Callback URL"). The Redirect URI uses the portal address: the active custom domain or, without one, the shared domain. Set up the portal address first. ### Who can sign in[​](#who-can-sign-in "Direct link to Who can sign in") OIDC sign-in doesn't create users. The e-mail the provider returns must belong to a user already registered in [Portal users](https://docs.dashboards.kobana.com.br/en/en/portal/usuarios/.md). If it doesn't, the person sees an access denied screen. ## Security[​](#security "Direct link to Security") * After 5 wrong passwords in a row, password sign-in is blocked for 15 minutes. * E-mail verification links are valid for 24 hours; invitations, for 7 days; the magic link, for 15 minutes. * Changing the password or e-mail ends the user's open sessions. * Passwords are stored hashed, never as plain text. --- # Advanced In **Portal › Advanced** (`/dashboard/portal/settings/advanced`) there are three technical settings for the portal: the portal language, the security headers and free JavaScript code. ![Portal advanced settings](/en/assets/images/portal-avancado-3eba3288f9620bfc3a45ca420e8d87bc.png) ## Portal language[​](#portal-language "Direct link to Portal language") Under **Language**, choose the portal language: **Português**, **English** or **Español**. The default is Português. Your choice is saved as soon as you select it. The language applies to two things: * **Entry screens** (sign-in, password recovery, access link): they appear in this language for everyone, whatever the visitor's browser language. They have no language selector. * **The pages' `lang` attribute**: screen readers use the language to pronounce the text, automatic translators to know what to translate from, and search engines to know who to show the portal to. The page content is not translated: it stays as you wrote it in the [Builder](https://docs.dashboards.kobana.com.br/en/en/portal/construtor/.md). ## Security[​](#security "Direct link to Security") Headers that the portal address (custom or shared domain) sends to the browser to protect your customers. Each switch is saved as soon as you change it. | Option | What it does | Default | | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | | **Enable HSTS for subdomains** | The browser starts requiring HTTPS on all subdomains of the portal domain as well. Only turn it on if all of them have HTTPS | Off | | **Enable HSTS preload header** | A requirement to join browsers' HSTS preload list. It is hard to undo: use it only if you are sure | Off | | **Use secure frame headers** | Prevents other sites from showing the portal inside an iframe, which protects against *clickjacking* (when a fake site hides the portal under its own buttons). Turn it off only if you need to embed the portal in another site | On | Both HSTS options only apply on a [custom domain](https://docs.dashboards.kobana.com.br/en/en/portal/acesso.md). Without an active custom domain, they are locked, and the screen shows the **Set up your own domain** shortcut. ## Custom code[​](#custom-code "Direct link to Custom code") Free JavaScript that runs on every portal page and on the entry screens, after the page loads. It is for what the [Tracking](https://docs.dashboards.kobana.com.br/en/en/portal/tracking.md) and [Chat](https://docs.dashboards.kobana.com.br/en/en/portal/chat.md) pages don't cover — for example, a measurement tool that isn't on the list. 1. Paste the code into **JavaScript** — only the code, without the surrounding `