List all tables using the self-hosted API?

Is there a way to list all tables in a workspace or database using a self-hosted baserow instance API? I’m working on a way to generate code from my database schema and would like a way to use my instance’s endpoint to discover all existing tables.

Hi @narthur, would list_database_tables endpoint be sufficient?

1 Like

@petrs Looks promising! Thank you!

Oof, seems that endpoint only supports jwt, not database tokens, unfortunately. :thinking:

There is an open MR to allow database token to be used here: Enable token authentication to 'list_database_tables' endpoint (!1844) · Merge requests · Baserow / baserow · GitLab

However this is an external contribution and I can’t promise it will be merged (or when).

1 Like

Great to hear! Currently I’m just hard-coding my tables list, so would be great if I could start using this endpoint with a database token.