These are the docs for Metabase v0.62. Check out the docs for the current stable version, Metabase v0.63.
Example markdown astro page
Liquid include examples
Authenticated embeds are only available on Pro and Enterprise plans (both self-hosted and on Metabase Cloud).
⚠️ This feature is in beta. Feel free to play around with it, but be aware that things might change (and may not work as expected).
Custom include_file examples
Whole file (remove snippet comments):
import jwt from "jsonwebtoken";
const user = {
email: "rene@example.com",
firstName: "Rene",
lastName: "Descartes",
group: "Customer",
};
const METABASE_JWT_SHARED_SECRET = process.env.METABASE_JWT_SHARED_SECRET || "";
const METABASE_INSTANCE_URL = process.env.METABASE_INSTANCE_URL || "";
export async function GET() {
const token = jwt.sign(
{
email: user.email,
first_name: user.firstName,
last_name: user.lastName,
groups: [user.group],
exp: Math.round(Date.now() / 1000) + 60 * 10, // 10 minutes expiration
},
// This is the JWT signing secret in your Metabase JWT authentication setting
METABASE_JWT_SHARED_SECRET,
);
// The user backend should return a JSON object with the JWT.
return Response.json({ jwt: token });
}
Specific snippet:
const authConfig = defineMetabaseAuthConfig({
metabaseInstanceUrl: "https://your-metabase.example.com", // Required: Your Metabase instance URL
});
Miscellaneous cases
Inline attribute lists
[Metabase Expert](/partners/){:target="_blank"}
gets rendered as Metabase Expert.
Inline code snippet
Inline backticks like this get rendered as inline code with no copy button.
Responsive tables
The columns should stack on small screens.
| Property | Type |
|---|---|
defaultParameters |
ParameterValues |
lastUsedParameters |
ParameterValues |
parameters |
ParameterValues |
source |
ParameterChangeSource |
Read docs for other versions of Metabase.