The Settings API allows you to view and modify Metabase instance settings programmatically. Settings control various aspects of your Metabase instance including email, authentication, appearance, and more.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.
Settings overview
Metabase settings are organized into categories:- Email - SMTP configuration for email notifications
- Authentication - SSO, LDAP, and login settings
- Public sharing - Public links and embedding settings
- Slack - Slack integration configuration
- Maps - Custom map configuration
- Formatting - Date, time, and number formatting
- Localization - Language and timezone settings
Most settings endpoints require admin permissions.
Get all settings
Retrieve all instance settings.Requires admin permissions. Returns all configurable settings with their current values.
Response
Get specific setting
Get the value of a specific setting.Parameters
Setting key (e.g., “site-name”, “admin-email”)
Response
Update setting
Update the value of a specific setting.Request body
New setting value (type depends on the setting)
Common settings
Site configuration
The name of your Metabase instance
The base URL where Metabase is hosted (e.g., “https://metabase.company.com”)
Email address for admin contact
Whether anonymous usage tracking is enabled
Email settings
SMTP server host
SMTP server port
SMTP username
SMTP password
Security protocol: “none”, “tls”, or “starttls”
Email address to send from
Public sharing
Enable public sharing of dashboards and questions
Enable signed embedding
Secret key for signing embedding tokens
Authentication
Google OAuth client ID
Enable LDAP authentication
LDAP server host
LDAP server port
Formatting
Custom number and date formatting options
Default timezone for reports (e.g., “America/New_York”)
Update multiple settings
Update multiple settings at once.Request body
Provide a JSON object with setting keys and their new values:Test email settings
Test SMTP email configuration by sending a test email.Request body
Email address to send test email to
Response
Whether the test email was sent successfully
Error message if sending failed
Environment variables
Many settings can be configured via environment variables:Environment variables take precedence over database settings and cannot be changed via the API.
Setting types
Settings have different data types:- string - Text values
- integer - Numeric values
- boolean - true/false values
- json - Complex object values
- csv - Comma-separated values
Reset settings
Reset a setting to its default value by setting it tonull:
Best practices
Error codes
Invalid setting value or type
Must be an admin to modify settings
Setting key not found