Metabase

Fast analytics with the friendly UX and integrated tooling to let your company explore data on their own.

Go to site
Explore
/
Apps
/
Metabase

Metabase API Integrations

Build and run workflows using the Metabase API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    metabase: {
      type: "app",
      app: "metabase",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.metabase.$auth.server_address}/api/user/current`,
      headers: {
        "X-Metabase-Session": `${this.metabase.$auth.oauth_access_token}`,
      },
    })
  },
})

Authentication

Metabase uses OAuth authentication. When you connect your Metabase account, Pipedream will open a popup window where you can sign into Metabase and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Metabase API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. accessToken
    POST{{custom_fields.server_address}}/api/sessioncontent-type: application/x-www-form-urlencodedaccept: application/json
    username={{custom_fields.username}}&password={{custom_fields.password}}
  2. refreshToken
    POST{{custom_fields.server_address}}/api/sessioncontent-type: application/x-www-form-urlencodedaccept: application/json
    username={{custom_fields.username}}&password={{custom_fields.password}}