Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Auto-update documentation for master (#72195)

github-automation-metabase7382721f95dc
diff --git a/docs/api.json b/docs/api.json
index 41aa520350c..64d12fe9f9e 100644
--- a/docs/api.json
+++ b/docs/api.json
@@ -25374,6 +25374,418 @@
"tags" : [ "/api/ee/ai-controls/permissions" ]
}
},
+ "/api/ee/ai-controls/usage/group" : {
+ "get" : {
+ "operationId" : "get-api-ee-ai-controls-usage-group",
+ "summary" : "GET /api/ee/ai-controls/usage/group",
+ "description" : "Get all group-level metabot usage limits.",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "group_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "max_usage" : {
+ "type" : "integer",
+ "minimum" : 0
+ }
+ },
+ "required" : [ "group_id", "max_usage" ]
+ }
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ }
+ },
+ "/api/ee/ai-controls/usage/group/{group-id}" : {
+ "get" : {
+ "operationId" : "get-api-ee-ai-controls-usage-group-group-id",
+ "summary" : "GET /api/ee/ai-controls/usage/group/{group-id}",
+ "description" : "Get the metabot usage limit for a specific group. Returns `max_usage: null` if no limit is set.",
+ "parameters" : [ {
+ "in" : "path",
+ "name" : "group-id",
+ "required" : true,
+ "schema" : {
+ "type" : "integer",
+ "minimum" : 1
+ }
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "group_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "group_id", "max_usage" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ },
+ "put" : {
+ "operationId" : "put-api-ee-ai-controls-usage-group-group-id",
+ "summary" : "PUT /api/ee/ai-controls/usage/group/{group-id}",
+ "description" : "Set or update the metabot usage limit for a specific group. Pass `max_usage: null` to remove the limit.",
+ "parameters" : [ {
+ "in" : "path",
+ "name" : "group-id",
+ "required" : true,
+ "schema" : {
+ "type" : "integer",
+ "minimum" : 1
+ }
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "group_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "group_id", "max_usage" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "max_usage" ]
+ }
+ }
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ }
+ },
+ "/api/ee/ai-controls/usage/instance" : {
+ "get" : {
+ "operationId" : "get-api-ee-ai-controls-usage-instance",
+ "summary" : "GET /api/ee/ai-controls/usage/instance",
+ "description" : "Get the instance-wide metabot usage limit. Returns `max_usage: null` if no limit is set (unlimited).",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "max_usage" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ },
+ "put" : {
+ "operationId" : "put-api-ee-ai-controls-usage-instance",
+ "summary" : "PUT /api/ee/ai-controls/usage/instance",
+ "description" : "Set or update the instance-wide metabot usage limit. Pass `max_usage: null` to remove the limit (unlimited).",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "max_usage" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "max_usage" ]
+ }
+ }
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ }
+ },
+ "/api/ee/ai-controls/usage/tenant" : {
+ "get" : {
+ "operationId" : "get-api-ee-ai-controls-usage-tenant",
+ "summary" : "GET /api/ee/ai-controls/usage/tenant",
+ "description" : "Get all tenant-level metabot usage limits.",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "array",
+ "items" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "type" : "integer",
+ "minimum" : 0
+ },
+ "tenant_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ }
+ },
+ "required" : [ "tenant_id", "max_usage" ]
+ }
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ }
+ },
+ "/api/ee/ai-controls/usage/tenant/{tenant-id}" : {
+ "get" : {
+ "operationId" : "get-api-ee-ai-controls-usage-tenant-tenant-id",
+ "summary" : "GET /api/ee/ai-controls/usage/tenant/{tenant-id}",
+ "description" : "Get the metabot usage limit for a specific tenant. Returns `max_usage: null` if no limit is set.",
+ "parameters" : [ {
+ "in" : "path",
+ "name" : "tenant-id",
+ "required" : true,
+ "schema" : {
+ "type" : "integer",
+ "minimum" : 1
+ }
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "tenant_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ }
+ },
+ "required" : [ "tenant_id", "max_usage" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ },
+ "put" : {
+ "operationId" : "put-api-ee-ai-controls-usage-tenant-tenant-id",
+ "summary" : "PUT /api/ee/ai-controls/usage/tenant/{tenant-id}",
+ "description" : "Set or update the metabot usage limit for a specific tenant. Pass `max_usage: null` to remove the limit.",
+ "parameters" : [ {
+ "in" : "path",
+ "name" : "tenant-id",
+ "required" : true,
+ "schema" : {
+ "type" : "integer",
+ "minimum" : 1
+ }
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "tenant_id" : {
+ "type" : "integer",
+ "minimum" : 1
+ }
+ },
+ "required" : [ "tenant_id", "max_usage" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "max_usage" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 0
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "max_usage" ]
+ }
+ }
+ }
+ },
+ "tags" : [ "/api/ee/ai-controls/usage" ]
+ }
+ },
"/api/ee/audit-app/analytics-dev/export" : {
"post" : {
"operationId" : "post-api-ee-audit-app-analytics-dev-export",
@@ -25525,7 +25937,7 @@
"required" : true,
"schema" : {
"type" : "string",
- "enum" : [ "metabase-ai", "metabase-ai-tiered", "python-execution", "transforms", "transforms-basic", "transforms-advanced", "transforms-basic-metered", "transforms-advanced-metered" ]
+ "enum" : [ "metabase-ai", "metabase-ai-tiered", "metabase-ai-managed", "python-execution", "transforms", "transforms-basic", "transforms-advanced", "transforms-basic-metered", "transforms-advanced-metered" ]
}
} ],
"responses" : {
@@ -27108,6 +27520,50 @@
"tags" : [ "/api/ee/logs" ]
}
},
+ "/api/ee/metabot/usage" : {
+ "get" : {
+ "operationId" : "get-api-ee-metabot-usage",
+ "summary" : "GET /api/ee/metabot/usage",
+ "description" : "Fetch current Metabot token usage for the current billing period.",
+ "parameters" : [ ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object",
+ "properties" : {
+ "tokens" : {
+ "oneOf" : [ {
+ "type" : "integer"
+ }, {
+ "type" : "null"
+ } ]
+ },
+ "updated-at" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ }
+ },
+ "required" : [ "tokens", "updated-at" ]
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/ee/metabot" ]
+ }
+ },
"/api/ee/permission_debug" : {
"get" : {
"operationId" : "get-api-ee-permission_debug",
@@ -35842,8 +36298,11 @@
} ]
},
"model" : {
- "type" : "string",
- "minLength" : 1
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
},
"provider" : {
"type" : "string",
diff --git a/docs/configuring-metabase/config-template.md b/docs/configuring-metabase/config-template.md
index 74d40411320..7ef02b2d85d 100644
--- a/docs/configuring-metabase/config-template.md
+++ b/docs/configuring-metabase/config-template.md
@@ -170,6 +170,7 @@ config:
jwt-attribute-tenant: '@tenant'
jwt-attribute-tenant-attributes: '@tenant.attributes'
jwt-enabled: false
+ jwt-enabled-and-configured: false
jwt-group-mappings: {}
jwt-group-sync: false
jwt-identity-provider-uri: null
diff --git a/docs/configuring-metabase/environment-variables.md b/docs/configuring-metabase/environment-variables.md
index de48687227f..b1a8f98c0ae 100644
--- a/docs/configuring-metabase/environment-variables.md
+++ b/docs/configuring-metabase/environment-variables.md
@@ -900,11 +900,21 @@ Key to retrieve the JWT user's tenant attributes.
- Default: `false`
- [Configuration file name](./config-file.md): `jwt-enabled`
-Is JWT authentication configured and enabled?
+Is JWT authentication enabled?
When set to true, will enable JWT authentication with the options configured in the MB_JWT_* variables.
This is for JWT SSO authentication, and has nothing to do with Static embedding, which is MB_EMBEDDING_SECRET_KEY.
+### `MB_JWT_ENABLED_AND_CONFIGURED`
+
+> Only available on Metabase [Pro](https://www.metabase.com/product/pro) and [Enterprise](https://www.metabase.com/product/enterprise) plans.
+
+- Type: boolean
+- Default: `false`
+- [Configuration file name](./config-file.md): `jwt-enabled-and-configured`
+
+Is JWT authentication configured and enabled?
+
### `MB_JWT_GROUP_MAPPINGS`
> Only available on Metabase [Pro](https://www.metabase.com/product/pro) and [Enterprise](https://www.metabase.com/product/enterprise) plans.