© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
4 replies
michael milstead

Network restrictions via Management API

Struggling to apply an IP whitelist using the management API. Thought it might be that I'm trying to apply too many IPs at once, but even applying a single address doesn't seem to work:

curl -X POST "https://api.supabase.com/v1/projects/$PROJECT_REF/network-restrictions/apply"   -H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN"   -H "Content-Type: application/json"   -d '{
    "db_allowed_cidrs": [
      "192.168.0.1/24"
    ]
  }'
curl -X POST "https://api.supabase.com/v1/projects/$PROJECT_REF/network-restrictions/apply"   -H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN"   -H "Content-Type: application/json"   -d '{
    "db_allowed_cidrs": [
      "192.168.0.1/24"
    ]
  }'


This applies no IP addresses (no address can access my database). Here's the response:
{"config":{"dbAllowedCidrs":[],"dbAllowedCidrsV6":[]},"entitlement":"allowed","status":"applied"}
{"config":{"dbAllowedCidrs":[],"dbAllowedCidrsV6":[]},"entitlement":"allowed","status":"applied"}
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

Management api usage
SupabaseSSupabase / help-and-questions
4y ago
Unauthorized when using management api
SupabaseSSupabase / help-and-questions
7mo ago
Asymmetric Keys and Management API
SupabaseSSupabase / help-and-questions
7mo ago
Free account restrictions
SupabaseSSupabase / help-and-questions
7mo ago