Skip to content
Metabase logo

Connectors / Data and analytics · HTTP Connector

Metabase integration and API

Create a question, create a dashboard and add a database connection in Metabase, and start a workflow when Metabase sends “Alert triggered”.

What can you do with Metabase on Tray.ai?

Metabase is a business intelligence tool, available open source or as a hosted service, that connects to your databases so teams can ask questions, build charts, and share dashboards. Tray.ai connects to Metabase through the HTTP Connector, so your workflows can call the Metabase API alongside the rest of your stack.

  • When Metabase sends “Alert triggered”, post the result to the right channel in your team chat.
  • Create a user in Metabase when a new analyst joins and is added to your identity provider.
  • Disable a user as soon as their offboarding ticket is closed in your IT service desk.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://{your-metabase-host}/api

Set it up

Connect Metabase to Tray.ai

Each step uses Metabase's own API details, from its documentation.

Save Metabase's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://{your-metabase-host}/api as the base URL. Or paste a cURL example from Metabase's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List questions”

It's one of 9 documented actions, under Questions. The response comes back as data the next step can map into your other apps.

Start workflows from Metabase events

Give Metabase the URL of a Tray.ai webhook trigger. “Alert triggered” can then start a workflow.

Workflows to build with Metabase

Connect Metabase with Slack, Okta and BambooHR

Each one uses actions and events from Metabase's own API documentation.

Post Metabase alerts to Slack

When

Alert triggered

Then

  1. List questions to find the alerting question
  2. Post the alert and question link to the team channel in Slack

With Slack

Create Metabase users from Okta

When

A user is added to the analytics group in Okta

Then

  1. Create a user with their name and email
  2. Post a welcome note to the user in Slack

With Okta and Slack

Disable Metabase users when they leave in BambooHR

When

An employee is terminated in BambooHR

Then

  1. Find the employee's work email in BambooHR
  2. Disable a user

With BambooHR

Apps you can build on Metabase data

Internal tools your team can build with an AI assistant, each one using Metabase calls from its API documentation.

Question catalog

Lists saved questions and lets an analyst add one to a dashboard.

Alert triage board

Collects triggered Metabase alerts in one list next to the saved questions.

Give your AI agents Metabase tools

Build an MCP server on Metabase in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List questions
  • Create a dashboard
  • Add a database connection
  • Create a user
  • Create a question
  • Add a question to a dashboard
  • Validate connection details
  • Update a user

What the Metabase API covers

4 resources and 9 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Questions

  • List questions
  • Create a question

Dashboards

  • Create a dashboard
  • Add a question to a dashboard

Databases

  • Add a database connection
  • Validate connection details

Users

  • Create a user
  • Update a user
  • Disable a user

Events Metabase can send to a Tray.ai webhook trigger

  • Alert triggered

Checked against Metabase's own documentation on 2026-10-22

www.metabase.com/learn/metabase-basics/administration/adm…

Frequently asked questions

What can a Tray.ai workflow do in Metabase?

The Metabase API documents 9 actions across 4 resources (Questions, Dashboards, Databases, Users). For example: List questions; Create a dashboard; Add a database connection. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Metabase?

The Metabase API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Metabase events can start a Tray.ai workflow?

Metabase sends one event to a webhook URL, for example: Alert triggered. A Tray.ai webhook trigger receives them and starts a workflow.

See Metabase working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.