The Card API manages questions in Metabase. Cards represent saved questions that can be displayed as visualizations, added to dashboards, or executed to retrieve data. This API includes 16 endpoints.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/metabase/metabase/llms.txt
Use this file to discover all available pages before exploring further.
List cards
Get a list of all cards (questions) you have access to.Response
Get card
Get details about a specific card by ID.Parameters
Card ID or NanoID string
Return query in MBQL 4 format instead of MBQL 5 (default: false)
Response
Card ID
Card name
Card description
Visualization type (table, bar, line, pie, scalar, etc.)
The query definition (MBQL or native SQL)
Display settings for the visualization
Metadata about result columns
ID of the collection containing this card
Create card
Create a new card (question).Request body
Question name
Query definition (MBQL or native)For MBQL queries:For native SQL:
Visualization type (table, bar, line, pie, scalar, etc.)
Visualization configuration (can be empty object)
Card description
Collection to save the card in
Card type: “question” or “model” (default: “question”)
Template tag parameters for the question
Update card
Update an existing card.Parameters
Card ID
Request body
All fields are optional. Only include fields you want to update.Updated card name
Updated description
Updated query definition
Updated visualization type
Updated visualization settings
Move to a different collection
Archive or unarchive the card
Delete card
Permanently delete a card.Execute card query
Run the query for a card and get results.Parameters
Card ID or NanoID
Request body
Skip cached results and run fresh query (default: false)
Dashboard context if running from a dashboard
Whether this is a collection preview query
Response
Query results
rows- Array of result rowscols- Array of column metadatarows_truncated- Number of truncated rows if result was limited
Query status (“completed”, “failed”, etc.)
Number of rows returned
Query execution time in milliseconds
Download query results
Execute a card query and download results in a specific format.Parameters
Card ID
Export format: csv, xlsx, or json
Request body
Apply formatting to cell values (default: false)
Pivot the results (default: false)
Parameter values for the query
Response
Returns file data in the requested format with appropriate content-type header.Copy card
Create a copy of an existing card.The copied card will be named “Copy of [original name]” and will be saved to the same collection.
Get card dashboards
Get a list of dashboards where this card appears.Response
Get query metadata
Get metadata needed to build/edit a card’s query.Response
Returns database metadata, table info, and field definitions needed for the query builder.Public sharing
Create public link
Generate a public sharing link for a card.Public sharing must be enabled in instance settings. Requires admin permissions.
Response
/public/question/{uuid}.
Delete public link
Remove the public sharing link for a card.List embeddable cards
Get all cards that can be embedded.enable_embedding is true.
Parameter values
Get parameter values
Fetch possible values for a card parameter.Search parameter values
Search for parameter values matching a query.Results are limited to the first 1000 matches.