The Actions API enables you to perform write operations on your database through Metabase. Actions allow you to execute INSERT, UPDATE, and DELETE operations programmatically. This API includes 7 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.
Actions overview
Actions in Metabase allow you to:- Create new database records
- Update existing records
- Delete records
- Execute custom database operations
- Trigger actions from dashboards and forms
Actions must be enabled in your database settings and require appropriate permissions.
List actions
Get all actions you have access to.Response
Get action
Get details about a specific action.Parameters
Action ID
Response
Action ID
Action name
Action description
Action type: “implicit”, “query”, or “http”
Associated model/question ID
Database ID for query actions
Query definition for query-based actions
Action parameters/inputs
Form and button display settings
Create action
Create a new action.Request body
Action name
Action type:
"implicit"- Auto-generated CRUD actions"query"- Custom SQL query actions"http"- HTTP API actions
Model/question ID to associate with
Database ID (required for query actions)
Query definition with template tags for parameters
Action description
Parameter definitions
Form appearance and behavior settings
Update action
Update an existing action.Parameters
Action ID
Request body
All fields are optional. Only include fields you want to update.Delete action
Delete an action.Execute action
Execute an action with provided parameters.Request body
Map of parameter names to valuesExample:
Response
Number of rows affected by the action
Whether the action succeeded
Action execution is transactional. If the action fails, changes are rolled back.
Preview action execution
Preview what an action would do without actually executing it.Query parameters
JSON string of parameter values
Public actions
List public actions
Get all actions with public links.Requires admin permissions. Returns actions that have public UUIDs for embedding.
Create public link
Generate a public link for an action.Response
/api/public/action/{uuid}.
Delete public link
Remove the public link for an action.Action types
Implicit actions
Auto-generated CRUD actions based on a model:- Create - Insert new rows
- Update - Modify existing rows
- Delete - Remove rows
Query actions
Custom SQL actions with template tags for parameters. Useful for:- Complex business logic
- Bulk operations
- Custom validation
HTTP actions
Call external APIs:- POST to webhooks
- Trigger external workflows
- Sync with other systems
Error codes
Invalid action configuration or parameters
Insufficient permissions to execute action
Action not found
Action execution failed