Skip to main content
Every supabase.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Advisors

getPerformanceAdvisors

advisors.getPerformanceAdvisors Get performance advisors Risk: read
Input
Output: any

getSecurityAdvisors

advisors.getSecurityAdvisors Get security advisors Risk: read
Input
Output: any

Analytics

getProjectLogs

analytics.getProjectLogs Get project logs Risk: read
Input
Output: any

Auth

createProjectSigningKey

auth.createProjectSigningKey Create a project signing key Risk: write
Input
Output: any

createSsoProvider

auth.createSsoProvider Create an SSO provider Risk: write
Input
Output: any

createThirdPartyAuthIntegration

auth.createThirdPartyAuthIntegration Create a third-party auth integration Risk: write
Input
Output: any

deleteSsoProvider

auth.deleteSsoProvider Remove an SSO provider Risk: destructive · Irreversible
Input
Output: any

deleteThirdPartyAuthIntegration

auth.deleteThirdPartyAuthIntegration Delete a third-party auth integration Risk: destructive · Irreversible
Input
Output: any

getLegacySigningKey

auth.getLegacySigningKey Get legacy signing key Risk: read
Input
Output: any

getProjectAuthConfig

auth.getProjectAuthConfig Get project auth config Risk: read
Input
Output: any

getProjectSigningKeys

auth.getProjectSigningKeys Get project signing keys Risk: read
Input
Output: any

getSsoProvider

auth.getSsoProvider Get an SSO provider Risk: read
Input
Output: any

getThirdPartyIntegration

auth.getThirdPartyIntegration Get a third-party auth integration Risk: read
Input
Output: any

listSsoProviders

auth.listSsoProviders List SSO providers Risk: read
Input
Output: any

listThirdPartyAuthIntegrations

auth.listThirdPartyAuthIntegrations List third-party auth integrations Risk: read
Input
Output: any

updateProjectAuthConfig

auth.updateProjectAuthConfig Update project auth config Risk: write
Input
Output: any

updateSsoProvider

auth.updateSsoProvider Update an SSO provider Risk: write
Input
Output: any

Database

applyMigration

database.applyMigration Apply a database migration Risk: write
Input
Output: any

createLoginRole

database.createLoginRole Create a CLI login role Risk: write
Input
Output: any

createReadReplica

database.createReadReplica Set up a read replica Risk: write
Input
Output: any

deleteLoginRoles

database.deleteLoginRoles Delete CLI login roles Risk: destructive · Irreversible
Input
Output: any

disableProjectReadonly

database.disableProjectReadonly Temporarily disable project read-only mode Risk: write
Input
Output: any

enableDatabaseWebhooks

database.enableDatabaseWebhooks Enable database webhooks Risk: write
Input
Output: any

generateTypescriptTypes

database.generateTypescriptTypes Generate TypeScript database types Risk: read
Input
Output: any

getDatabaseMetadata

database.getDatabaseMetadata Get database metadata Risk: read
Input
Output: any

getJitAccessConfig

database.getJitAccessConfig Get JIT access config Risk: read
Input
Output: any

getMigration

database.getMigration Get a migration Risk: read
Input
Output: any

getProjectPgbouncerConfig

database.getProjectPgbouncerConfig Get project PgBouncer config Risk: read
Input
Output: any

getProjectPostgresConfig

database.getProjectPostgresConfig Get project postgres config Risk: read
Input
Output: any

getProjectReadonlyModeStatus

database.getProjectReadonlyModeStatus Get project read-only mode status Risk: read
Input
Output: any

getProjectSslEnforcementConfig

database.getProjectSslEnforcementConfig Get project SSL enforcement config Risk: read
Input
Output: any

getProjectSupavisorConfig

database.getProjectSupavisorConfig Get project Supavisor config Risk: read
Input
Output: any

getSqlSnippet

database.getSqlSnippet Get a SQL snippet Risk: read
Input
Output: any

getTableSchemas

database.getTableSchemas Get database table schemas Risk: read
Input
Output: any

listBackups

database.listBackups List project database backups Risk: read
Input
Output: any

listMigrationHistory

database.listMigrationHistory List migration history Risk: read
Input
Output: any

listSqlSnippets

database.listSqlSnippets List SQL snippets Risk: read
Input
Output: any

listTables

database.listTables List database tables Risk: read
Input
Output: any

patchMigration

database.patchMigration Patch a migration Risk: write
Input
Output: any

removeReadReplica

database.removeReadReplica Remove a read replica Risk: destructive · Irreversible
Input
Output: any

restorePitrBackup

database.restorePitrBackup Restore database PITR backup Risk: destructive · Irreversible
Input
Output: any

runReadOnlyQuery

database.runReadOnlyQuery Execute a read-only database query Risk: read
Input
Output: any

runSqlQuery

database.runSqlQuery Execute a project database query Risk: write
Input
Output: any

selectFromTable

database.selectFromTable Select rows from a database table Risk: read
Input
Output: any

updateDatabasePassword

database.updateDatabasePassword Update database password Risk: write
Input
Output: any

updateJitAccessConfig

database.updateJitAccessConfig Update JIT access config Risk: write
Input
Output: any

updateProjectPostgresConfig

database.updateProjectPostgresConfig Update project postgres config Risk: write
Input
Output: any

updateProjectSupavisorConfig

database.updateProjectSupavisorConfig Update project Supavisor config Risk: write
Input
Output: any

updateSslEnforcementConfig

database.updateSslEnforcementConfig Update SSL enforcement config Risk: write
Input
Output: any

upsertMigration

database.upsertMigration Upsert a migration Risk: write
Input
Output: any

Domains

activateCustomHostname

domains.activateCustomHostname Activate a configured custom hostname Risk: write
Input
Output: any

activateVanitySubdomain

domains.activateVanitySubdomain Activate a vanity subdomain for a project Risk: write
Input
Output: any

checkVanitySubdomainAvailability

domains.checkVanitySubdomainAvailability Check vanity subdomain availability Risk: read
Input
Output: any

deleteCustomHostnameConfig

domains.deleteCustomHostnameConfig Delete custom hostname configuration Risk: destructive · Irreversible
Input
Output: any

deleteProjectVanitySubdomain

domains.deleteProjectVanitySubdomain Delete a project vanity subdomain Risk: destructive · Irreversible
Input
Output: any

getProjectCustomHostnameConfig

domains.getProjectCustomHostnameConfig Get a project custom hostname configuration Risk: read
Input
Output: any

getVanitySubdomainConfig

domains.getVanitySubdomainConfig Get current vanity subdomain config Risk: read
Input
Output: any

updateProjectCustomHostname

domains.updateProjectCustomHostname Update project custom hostname Risk: write
Input
Output: any

verifyCustomHostnameDns

domains.verifyCustomHostnameDns Reverify custom hostname DNS Risk: write
Input
Output: any

Edge Functions

createFunction

edgeFunctions.createFunction Create an Edge Function Risk: write
Input
Output: any

deleteFunction

edgeFunctions.deleteFunction Delete an Edge Function Risk: destructive · Irreversible
Input
Output: any

deployFunction

edgeFunctions.deployFunction Deploy an Edge Function Risk: write
Input
Output: any

getFunction

edgeFunctions.getFunction Retrieve an Edge Function Risk: read
Input
Output: any

getFunctionBody

edgeFunctions.getFunctionBody Retrieve an Edge Function body Risk: read
Input
Output: any

invokeEdgeFunction

edgeFunctions.invokeEdgeFunction Invoke an Edge Function Risk: write
Input
Output: any

listFunctions

edgeFunctions.listFunctions List Edge Functions Risk: read
Input
Output: any

updateFunction

edgeFunctions.updateFunction Update an Edge Function Risk: write
Input
Output: any

updateFunctions

edgeFunctions.updateFunctions Bulk update Edge Functions Risk: write
Input
Output: any

Environments

countActionRuns

environments.countActionRuns Count action runs Risk: read
Input
Output: any

createDatabaseBranch

environments.createDatabaseBranch Create a database branch Risk: write
Input
Output: any

deleteDatabaseBranch

environments.deleteDatabaseBranch Delete a database branch Risk: destructive · Irreversible
Input
Output: any

disablePreviewBranching

environments.disablePreviewBranching Disable preview branching Risk: write
Input
Output: any

getActionRun

environments.getActionRun Get action run status Risk: read
Input
Output: any

getActionRunLogs

environments.getActionRunLogs Get action run logs Risk: read
Input
Output: any

getBranch

environments.getBranch Get a database branch by name Risk: read
Input
Output: any

getDatabaseBranchConfig

environments.getDatabaseBranchConfig Get database branch config Risk: read
Input
Output: any

listDatabaseBranches

environments.listDatabaseBranches List database branches Risk: read
Input
Output: any

pushBranch

environments.pushBranch Push a database branch Risk: write
Input
Output: any

resetDatabaseBranch

environments.resetDatabaseBranch Reset a database branch Risk: destructive · Irreversible
Input
Output: any

updateDatabaseBranchConfig

environments.updateDatabaseBranchConfig Update database branch config Risk: write
Input
Output: any

Oauth

authorizeUserThroughOauth

oauth.authorizeUserThroughOauth Generate a Supabase OAuth authorization URL Risk: read
Input
Output: any

exchangeOauthToken

oauth.exchangeOauthToken Exchange an OAuth authorization code or refresh token Risk: write
Input
Output: any

Organizations

createOrganization

organizations.createOrganization Create an organization Risk: write
Input
Output: any

getOrganization

organizations.getOrganization Get organization information Risk: read
Input
Output: any

listAllOrganizations

organizations.listAllOrganizations List organizations Risk: read
Input
Output: any

listOrganizationMembers

organizations.listOrganizationMembers List organization members Risk: read
Input
Output: any

Projects

createProject

projects.createProject Create a project Risk: write
Input
Output: any

deleteProject

projects.deleteProject Delete a project Risk: destructive · Irreversible
Input
Output: any

getAvailableRegions

projects.getAvailableRegions Get available project regions Risk: read
Input
Output: any

getHealth

projects.getHealth Get project API health status Risk: read
Input
Output: any

getProject

projects.getProject Get a project Risk: read
Input
Output: any

getProjectNetworkBans

projects.getProjectNetworkBans Retrieve project network bans Risk: read
Input
Output: any

getProjectNetworkRestrictions

projects.getProjectNetworkRestrictions Get project network restrictions Risk: read
Input
Output: any

getProjectServiceHealthStatus

projects.getProjectServiceHealthStatus Get project service health status Risk: read
Input
Output: any

getProjectUpgradeEligibility

projects.getProjectUpgradeEligibility Get project upgrade eligibility Risk: read
Input
Output: any

getProjectUpgradeStatus

projects.getProjectUpgradeStatus Get project upgrade status Risk: read
Input
Output: any

listAllProjects

projects.listAllProjects List projects Risk: read
Input
Output: any

patchNetworkRestrictions

projects.patchNetworkRestrictions Patch project network restrictions Risk: write
Input
Output: any

removeNetworkBans

projects.removeNetworkBans Remove project network bans Risk: write
Input
Output: any

updateProject

projects.updateProject Update a project Risk: write
Input
Output: any

updateProjectNetworkRestrictions

projects.updateProjectNetworkRestrictions Apply project network restrictions Risk: write
Input
Output: any

upgradeProjectPostgresVersion

projects.upgradeProjectPostgresVersion Upgrade project PostgreSQL version Risk: write
Input
Output: any

Rest

getProjectPostgrestConfig

rest.getProjectPostgrestConfig Get project PostgREST config Risk: read
Input
Output: any

updateProjectPostgrestConfig

rest.updateProjectPostgrestConfig Update project PostgREST config Risk: write
Input
Output: any

Secrets

createApiKey

secrets.createApiKey Create a project API key Risk: write
Input
Output: any

createBulkSecrets

secrets.createBulkSecrets Create multiple project secrets Risk: write
Input
Output: any

deleteApiKey

secrets.deleteApiKey Delete a project API key Risk: destructive · Irreversible
Input
Output: any

deleteSecrets

secrets.deleteSecrets Delete multiple project secrets Risk: destructive · Irreversible
Input
Output: any

getProjectApiKey

secrets.getProjectApiKey Get a project API key Risk: read
Input
Output: any

getProjectApiKeys

secrets.getProjectApiKeys Get project API keys Risk: read
Input
Output: any

getProjectLegacyApiKeys

secrets.getProjectLegacyApiKeys Get project legacy API keys status Risk: read
Input
Output: any

getProjectPgsodiumConfig

secrets.getProjectPgsodiumConfig Get project pgsodium config Risk: read
Input
Output: any

listSecrets

secrets.listSecrets List project secrets Risk: read
Input
Output: any

updateApiKey

secrets.updateApiKey Update a project API key Risk: write
Input
Output: any

updatePgsodiumConfig

secrets.updatePgsodiumConfig Update pgsodium root key Risk: destructive
Input
Output: any

updateProjectLegacyApiKeys

secrets.updateProjectLegacyApiKeys Update project legacy API keys Risk: write
Input
Output: any

Storage

getResumableUploadBaseOptions

storage.getResumableUploadBaseOptions Get TUS resumable upload base options Risk: read
Input
Output: any

getResumableUploadOptions

storage.getResumableUploadOptions Get TUS resumable upload options Risk: read
Input
Output: any

handleResumableUploadSignOptions

storage.handleResumableUploadSignOptions Handle TUS resumable upload sign options Risk: read
Input
Output: any

handleResumableUploadSignOptionsWithId

storage.handleResumableUploadSignOptionsWithId Handle TUS resumable upload sign options with ID Risk: read
Input
Output: any

listBuckets

storage.listBuckets List storage buckets Risk: read
Input
Output: any