© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
yaboiluki

Dynamically exposing custom schemas to API

I'm building a multi-tenant application where each tenant has their own schema. I've set up a function for creating the schema, granting schema permissions to authenticated, service_role & creating a seeded table with RLS enabled (https://supabase.com/docs/guides/api/using-custom-schemas).

The issue I'm running into is that I still need to manually add the created schema to Exposed Schemas in API settings each time, otherwise it's not accessible through the JS client (error message: The schema must be one of the following:...).

Is there any workaround to be able to dynamically add exposed schemas?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Self hosted exposing schemas problems
SupabaseSSupabase / help-and-questions
2mo ago
custom private schemas
SupabaseSSupabase / help-and-questions
6mo ago
Custom Schema and Exposing APIs
SupabaseSSupabase / help-and-questions
13mo ago
Exposing Schema
SupabaseSSupabase / help-and-questions
5mo ago