Set up Metabase from code with the API
Blog post from Metabase
Metabase can be provisioned programmatically on all editions through its API by retrieving an initial setup token, creating the first administrator, authenticating with a session or API key, and then adding a database connection, native SQL question, dashboard, and dashboard email or Slack subscription. The described workflow was validated against Metabase versions 0.63.19 and 0.64.1 and is designed to reuse existing setup information where possible, although later steps create duplicate content on repeated runs. It explains relevant API documentation locations, authentication behavior, PostgreSQL connection fields, card and dashboard payload formats, dashboard layout requirements, subscription scheduling and recipient permissions, and operational settings such as SMTP configuration and site URL. API keys are recommended for automation because sessions expire, while keys remain valid until regenerated or deleted. For version-controlled analytics content, Pro and Enterprise editions provide serialization to export and import selected collections, dashboards, questions, models, and metrics as YAML, while excluding infrastructure-sensitive items such as users, permissions, subscriptions, and database connection strings; these plans also offer Remote Sync and startup configuration options.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.