Sign inStart your trial

Prisma

Reference

22 actions for Prisma workflows.

01. Operations

Act on Prisma from a workflow

Operations are the actions a workflow can take in Prisma, grouped by category. Each lists its method, parameters, and a template you can drop it into.

Backups

2 operations

Manage database backups within your Prisma projects by listing available backups and restoring from them when needed. Use these operations to recover from data loss or revert to a previous database state in your automation workflows.

Action★ Featured

List Database Backups

PRISMA_LIST_BACKUPS

View all available backups for your database, including their status, size, and whether they're ready to restore. This helps you monitor backup health and plan for data recovery needs.

2 input
Action

Restore Database Backup

PRISMA_RESTORE_BACKUP

Restore a previous database backup to a new instance, allowing you to recover data or create copies of your database for testing and development purposes.

3 input

Connections

3 operations

Set up and manage database connections for your Prisma projects, including creating new connections, removing old ones, and viewing all active connections. These operations help you control access and maintain the database connectivity your applications require.

Action

Create Database Connection

PRISMA_CREATE_CONNECTION

Establish a new database connection with automatically generated credentials and connection strings, enabling your application to securely access your database without manual configuration.

2 input
Action

Delete Database Connection

PRISMA_DELETE_CONNECTION

Permanently removes a database connection and invalidates its access credentials, immediately preventing any applications from using that connection. Use this when you need to deactivate database access for security, cleanup, or migration purposes.

1 input
Action

List Database Connections

PRISMA_LIST_CONNECTIONS

Retrieve all connections associated with your Prisma database to view access details, creation dates, and connection metadata. This helps you monitor who and what has access to your database infrastructure.

3 input

Database

6 operations

Perform comprehensive database operations including creation, deletion, and querying of databases within Prisma projects. Use these operations to execute SQL commands, retrieve database details, and manage the full lifecycle of your databases in automated workflows.

Action★ Featured

Create Project Database

PRISMA_CREATE_DATABASE

Set up a new PostgreSQL database for your Prisma project in your preferred region, automatically generating connection strings and API keys for immediate use.

4 input
Action★ Featured

Execute SQL Query

PRISMA_EXECUTE_SQL_QUERY

Run read-only SQL queries directly against your Prisma Postgres database to retrieve and analyze data without modifying your records.

5 input
Action★ Featured

List Project Databases

PRISMA_LIST_DATABASES

Retrieve all databases associated with your Prisma project to see their status, location, and configuration details. This helps you track and manage your project's data infrastructure in one place.

3 input
Action

Delete Prisma Database

PRISMA_DELETE_DATABASE

Permanently removes a Prisma database and all its associated data when it's no longer needed. Use this to clean up unused databases and free up resources.

1 input
Action

Execute SQL Command

PRISMA_EXECUTE_SQL_COMMAND

Run custom SQL commands to modify your database data and structure, such as inserting records, updating information, or creating new tables. This is useful when you need direct database control beyond standard queries.

3 input
Action

Get Prisma Database

PRISMA_GET_DATABASE

Fetch detailed information about a specific Prisma database including its current status, configuration, and deployment location. Use this to monitor database health, verify setup details, and manage your database infrastructure.

1 input

Integrations

1 operation

View all integrations available in your Prisma workspace to understand what external services and tools are connected. This operation helps you audit and manage the ecosystem of integrations supporting your database infrastructure.

Action

List Workspace Integrations

PRISMA_LIST_WORKSPACE_INTEGRATIONS

Retrieve all integrations connected to your Prisma workspace, including details about permissions and who set them up. Use this to monitor active connections and manage your workspace's connected apps.

3 input

Projects

5 operations

Create, retrieve, delete, and transfer Prisma projects as part of your infrastructure automation. These operations allow you to manage the lifecycle and ownership of your projects programmatically within your workflows.

Action★ Featured

Create Prisma Project

PRISMA_CREATE_PROJECT

Create a new Prisma project with a managed PostgreSQL database in your workspace. This sets up everything you need to start building with a database, including connection strings and API keys.

2 input
Action

Delete Prisma Project

PRISMA_DELETE_PROJECT

Permanently remove a Prisma project and all its associated databases, environments, and data from your account. This destructive action cannot be reversed, so use it only when you're certain you no longer need the project.

1 input
Action

Get Prisma Project

PRISMA_GET_PROJECT

Retrieve detailed information about a specific Prisma project including its name, creation date, and workspace details. Use this to display project information, verify project existence, or pull data for project management dashboards.

1 input
Action

List Prisma Projects

PRISMA_LIST_PROJECTS

Fetch a paginated list of all your Prisma projects with their IDs, names, and workspace details to discover available projects and manage your portfolio.

2 input
Action

Transfer Prisma Project

PRISMA_TRANSFER_PROJECT

Move a Prisma project and all its databases to another user's workspace, transferring complete ownership and control. Use this when you need to hand off a project to a client, team member, or partner.

2 input

Regions

2 operations

Check available deployment regions for Prisma Postgres and Prisma Accelerate to understand where you can host your databases. Use these operations to determine regional options before provisioning new database resources.

Action

List Prisma Accelerate Regions

PRISMA_LIST_ACCELERATE_REGIONS

Retrieve all available geographic regions where you can deploy Prisma Accelerate's global database cache to reduce latency for your users. This helps you choose optimal locations based on where your customers are located.

Action

List Prisma Postgres Regions

PRISMA_LIST_POSTGRES_REGIONS

Retrieve all available geographic regions where you can deploy Prisma Postgres databases, including their current availability status. Use this to choose the best location for your database based on your users' locations and capacity needs.

Schema

1 operation

Analyze and retrieve the structure of your database schema to understand tables, columns, and relationships. This operation is useful for documentation, validation, or planning schema-dependent automation tasks.

Action

Inspect Database Schema

PRISMA_INSPECT_DATABASE_SCHEMA

Examine your database structure to understand all tables, columns, data types, and relationships at a glance. This helps you work with your data more effectively without needing to consult documentation or database tools separately.

5 input

Usage

1 operation

Monitor database usage metrics and performance statistics for your Prisma databases. Use this operation to track consumption patterns and inform scaling decisions in your automation processes.

Action★ Featured

Get Database Usage Metrics

PRISMA_GET_DATABASE_USAGE

Monitor your database's storage consumption and read/write operation counts to understand resource usage and optimize costs. This helps you track how much data your application is consuming and identify performance bottlenecks.

3 input

Workspaces

1 operation

List all Prisma workspaces available to your account to understand your organizational structure. This operation helps you identify which workspace to target for project and resource management operations.

Action

List Prisma Workspaces

PRISMA_LIST_WORKSPACES

Retrieve all Prisma workspaces you have access to, with pagination support for easy browsing and selection. Useful for discovering your available projects and workspaces in one view.

2 input
What now

Use Prisma in a workflow

Drop a trigger and an action into a template; approve from your phone; the workflow runs.