Connection error while connecting dbt to metabase

I have used the command
dbtmetabase.export(dbt_path, mb_host, mb_user, mb_password, database, schema) and given all the required parameters to connect metabase. My credentials are all correct,
but it says 403 Client Error: Forbidden for url: https://xxx.com/api/database/2/sync_schema (when i click on the URL it says "Unauthenticated")

Hi @adharsha
What is dbtmetabase.export ? You need to provide more context.
If you want to use the API, then you need to login to Metabase with a session - see this guide for hints:
https://www.metabase.com/learn/developing-applications/advanced-metabase/metabase-api.html

I am trying to connect dbt documentation to metabase using dbt-metabase package. when I run the command dbtmetabase.export(dbt_path, mb_host, mb_user, mb_password, database, schema), it creates the post request to metabase. https://pypi.org/project/dbt-metabase/

@adharsha I don't understand, but please provide a link to the documentation.