Skip to main content
Every prisma.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.

Backups

list

backups.list List backups for a database Risk: read
Input
Output: object

restore

backups.restore Restore a backup onto the target database (async, overwrites current data) Risk: destructive · Irreversible
Input
Output: object

Connections

create

connections.create Create a connection (returns a ready-to-use connection string) Risk: write
Input
Output: object

delete

connections.delete Delete/revoke a connection and access for anything using it Risk: destructive · Irreversible
Input
Output: object

list

connections.list List connections Risk: read
Input
Output: object

Databases

create

databases.create Create a database in a project Risk: write
Input
Output: object

delete

databases.delete Delete a database and all of its data Risk: destructive · Irreversible
Input
Output: object

get

databases.get Retrieve database details Risk: read
Input
Output: object

getUsage

databases.getUsage Retrieve database usage metrics for a time period Risk: read
Input
Output: object

inspectSchema

databases.inspectSchema Inspect a database schema (tables, columns, types, constraints) Risk: read
Input
Output

list

databases.list List databases for a project Risk: read
Input
Output: object

Integrations

list

integrations.list List integrations (OAuth clients, granted scopes) for a workspace Risk: read
Input
Output: object

Projects

create

projects.create Create a project and its default/database environment Risk: write
Input
Output: object

delete

projects.delete Delete a project and all of its data Risk: destructive · Irreversible
Input
Output: object

get

projects.get Retrieve project details Risk: read
Input
Output: object

list

projects.list List projects the token has access to Risk: read
Input
Output: object

transfer

projects.transfer Transfer a project to another workspace Risk: write
Input
Output: object

Regions

list

regions.list List all available regions across products (optionally by product) Risk: read
Input
Output: object

listAccelerate

regions.listAccelerate List all available Prisma Accelerate regions Risk: read
Input
Output: object

listPostgres

regions.listPostgres List all available Prisma Postgres regions with availability Risk: read
Input
Output: object

Sql

execute

sql.execute Execute a SQL command (INSERT/UPDATE/DELETE/DDL) over the Postgres connection Risk: destructive · Irreversible
Input
Output

query

sql.query Execute a read-only SQL query (SELECT) over the Postgres connection Risk: read
Input
Output

Workspaces

list

workspaces.list List workspaces the token can access Risk: read
Input
Output: object