Skip to content

Reference

Supabase Management API

Manage Supabase organizations and projects through Alter Vault

Use a Supabase personal access token to call the account-level Management API at api.supabase.com. Alter sends the token as Authorization: Bearer ... and validates it when the secret is saved.

PropertyValue
Provider IDsupabase-management
CategoryDeveloper Tools
Credential TypeBearer Token

Open Account settings → Access Tokens, generate a token, and copy the personal access token beginning with sbp_.

Choose Managed Secrets → Add Managed Secret → Supabase Management API, paste the personal access token, and save. Alter validates it against the Management API and fixes the proxy destination to api.supabase.com.

The Management API destination is provider-owned. It cannot be widened or cleared with the generic allowed-hosts editor or CLI command.

Credential rotation reapplies the built-in bearer-header and api.supabase.com binding. A project API key is rejected rather than being stored under the Management API contract.

response = await alter_app.request(
HttpMethod.GET,
"https://api.supabase.com/v1/projects",
grant_id="YOUR_GRANT_ID",
)

Alter policy rules can target the Management API’s attested operations, including project and organization creation, branch management, billing add-ons, API-key administration, secrets, functions, and JIT database access.

Operation IDFamiliesMethodProvider path
v1-accept-invite-external-jit-accessadmin, writePOST/v1/projects/{ref}/database/jit/invite/accept
v1-invite-external-jit-accessadmin, sendPOST/v1/projects/{ref}/database/jit/invite
v1-apply-project-addonpaymentPATCH/v1/projects/{ref}/billing/addons
v1-remove-project-addondelete, paymentDELETE/v1/projects/{ref}/billing/addons/{addon_variant}
v1-Delete hostname configdeleteDELETE/v1/projects/{ref}/custom-hostname
v1-bulk-delete-secretsadmin, deleteDELETE/v1/projects/{ref}/secrets
v1-cancel-a-project-restorationdelete, writePOST/v1/projects/{ref}/restore/cancel
v1-create-legacy-signing-keyadmin, delete, writePOST/v1/projects/{ref}/config/auth/signing-keys/legacy
v1-deactivate-vanity-subdomain-configdeleteDELETE/v1/projects/{ref}/vanity-subdomain
v1-delete-a-branchdeleteDELETE/v1/branches/{branch_id_or_ref}
v1-delete-a-functiondeleteDELETE/v1/projects/{ref}/functions/{function_slug}
v1-delete-a-projectdeleteDELETE/v1/projects/{ref}
v1-delete-a-sso-provideradmin, deleteDELETE/v1/projects/{ref}/config/auth/sso/providers/{provider_id}
v1-delete-invite-external-jit-accessadmin, deleteDELETE/v1/projects/{ref}/database/jit/invite/{invite_id}
v1-delete-jit-accessadmin, deleteDELETE/v1/projects/{ref}/database/jit/{user_id}
v1-delete-login-rolesadmin, deleteDELETE/v1/projects/{ref}/cli/login-role
v1-delete-network-bansdeleteDELETE/v1/projects/{ref}/network-bans
v1-delete-project-api-keyadmin, deleteDELETE/v1/projects/{ref}/api-keys/{id}
v1-delete-project-claim-tokenadmin, deleteDELETE/v1/projects/{ref}/claim-token
v1-delete-project-tpa-integrationadmin, deleteDELETE/v1/projects/{ref}/config/auth/third-party-auth/{tpa_id}
v1-disable-preview-branchingdeleteDELETE/v1/projects/{ref}/branches
v1-bulk-create-secretsadmin, writePOST/v1/projects/{ref}/secrets
v1-create-a-sso-provideradmin, writePOST/v1/projects/{ref}/config/auth/sso/providers
v1-create-login-roleadmin, writePOST/v1/projects/{ref}/cli/login-role
v1-create-project-api-keyadmin, writePOST/v1/projects/{ref}/api-keys
v1-create-project-claim-tokenadmin, writePOST/v1/projects/{ref}/claim-token
v1-activate-custom-hostnamewritePOST/v1/projects/{ref}/custom-hostname/activate
v1-activate-vanity-subdomain-configwritePOST/v1/projects/{ref}/vanity-subdomain/activate
v1-create-a-branchwritePOST/v1/projects/{ref}/branches
v1-create-a-functionwritePOST/v1/projects/{ref}/functions
v1-create-a-projectwritePOST/v1/projects
v1-create-an-organizationwritePOST/v1/organizations
v1-create-restore-pointwritePOST/v1/projects/{ref}/database/backups/restore-point
v1-deploy-a-functionwritePOST/v1/projects/{ref}/functions/deploy
v1-count-action-runsreadHEAD/v1/projects/{ref}/actions
v1-diff-a-branchreadGET/v1/branches/{branch_id_or_ref}/diff
v1-generate-typescript-typesreadGET/v1/projects/{ref}/types/typescript
v1-get-a-branchreadGET/v1/projects/{ref}/branches/{name}
v1-get-a-branch-configreadGET/v1/branches/{branch_id_or_ref}
v1-get-profilereadGET/v1/profile

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.