These are the docs for the Metabase master branch. Some features documented here may not yet be available in the latest release. Check out the docs for the latest version, Metabase v0.51.
Metabot
These Metabot endpoints are for an experimental feature.
POST /api/metabot/database/:database-id
Ask Metabot to generate a native question given a prompt about a given database.
PARAMS:
-
database-id
value must be an integer greater than zero. -
question
value must be a non-blank string.
POST /api/metabot/database/:database-id/query
Ask Metabot to generate a SQL query given a prompt about a given database.
PARAMS:
-
database-id
value must be an integer greater than zero. -
question
value must be a non-blank string.
POST /api/metabot/feedback
Record feedback on metabot results.
PARAMS:
feedback
POST /api/metabot/model/:model-id
Ask Metabot to generate a SQL query given a prompt about a given model.
PARAMS:
-
model-id
value must be an integer greater than zero. -
question
value must be a non-blank string.
Read docs for other versions of Metabase.