Authenticated API Endpoint to Restart / Toggle Database On & Off Remotely #44544
Unanswered
soufian3hm
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request: Authenticated API Endpoint to Restart / Toggle the Database On & Off
Problem
There are situations where a Supabase database becomes unresponsive or needs a restart, but the developer is away from their device or unable to access the dashboard at that moment. Currently, there is no programmatic way to trigger a database restart remotely via an API call.
This is a real pain point: if your database goes down at an inconvenient time, you either have to rush to your computer to log into the dashboard and restart it manually, or wait and let your users experience downtime.
Proposed Solution
Introduce a secure, authenticated Management API endpoint that allows project owners to:
POST /v1/projects/{ref}/database/restart)The endpoint should be:
Why This Matters
Alternatives Considered
Additional Context
This feature would be especially valuable combined with a webhook or notification when the auto-restart fires, so developers stay informed. Many cloud providers (e.g., Railway, Render) offer similar restart/redeploy APIs and they are widely used for self-healing infrastructure.
Thank you for considering this — it would be a huge quality-of-life improvement for the Supabase community!
Beta Was this translation helpful? Give feedback.
All reactions