Prisma · Arazzo Workflow

Prisma Postgres Add a Database to a Project

Version 1.0.0

Confirm a project exists, provision an additional Postgres database in it, and mint a connection string.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

prisma

Workflows

add-database-to-project
Provision an additional Postgres database within an existing project and mint a connection string.
Reads the target project, creates a new database in the requested region, and mints a connection string for the new database.
3 steps inputs: apiToken, databaseName, projectId, region outputs: connectionId, connectionString, databaseId
1
getProject
Read the project to confirm it exists before provisioning an additional database against it.
2
createDatabase
Provision a new Prisma Postgres database in the requested region within the confirmed project.
3
createConnection
Mint a Prisma connection string for the new database so applications can connect to it.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Prisma Postgres Add a Database to a Project
  summary: Confirm a project exists, provision an additional Postgres database in it, and mint a connection string.
  description: >-
    Adds a second Prisma Postgres database to an existing project. The workflow
    first reads the project to confirm it exists and resolve its region context,
    provisions a new database in the requested region, and then mints a Prisma
    connection string for the new database. Every step spells out its request
    inline so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: connectionsApi
  url: ../openapi/prisma-connections-api-openapi.yml
  type: openapi
- name: databasesApi
  url: ../openapi/prisma-databases-api-openapi.yml
  type: openapi
- name: projectsApi
  url: ../openapi/prisma-projects-api-openapi.yml
  type: openapi
workflows:
- workflowId: add-database-to-project
  summary: Provision an additional Postgres database within an existing project and mint a connection string.
  description: >-
    Reads the target project, creates a new database in the requested region,
    and mints a connection string for the new database.
  inputs:
    type: object
    required:
    - apiToken
    - projectId
    - region
    properties:
      apiToken:
        type: string
        description: Service token or OAuth access token for the Management API, sent as a Bearer token.
      projectId:
        type: string
        description: Identifier of the project to add a database to.
      databaseName:
        type: string
        description: Optional display name for the new database.
      region:
        type: string
        description: Region to provision the database in (e.g. us-east-1, eu-west-1).
  steps:
  - stepId: getProject
    description: >-
      Read the project to confirm it exists before provisioning an additional
      database against it.
    operationId: getProject
    parameters:
    - name: projectId
      in: path
      value: $inputs.projectId
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      projectId: $response.body#/id
      workspaceId: $response.body#/workspaceId
  - stepId: createDatabase
    description: >-
      Provision a new Prisma Postgres database in the requested region within
      the confirmed project.
    operationId: createDatabase
    parameters:
    - name: projectId
      in: path
      value: $steps.getProject.outputs.projectId
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.databaseName
        region: $inputs.region
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      databaseId: $response.body#/id
      status: $response.body#/status
      connectionString: $response.body#/connectionString
  - stepId: createConnection
    description: >-
      Mint a Prisma connection string for the new database so applications can
      connect to it.
    operationId: createConnection
    parameters:
    - name: databaseId
      in: path
      value: $steps.createDatabase.outputs.databaseId
    - name: Authorization
      in: header
      value: Bearer $inputs.apiToken
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.databaseName
        type: prisma
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      connectionId: $response.body#/id
      newConnectionString: $response.body#/connectionString
  outputs:
    databaseId: $steps.createDatabase.outputs.databaseId
    connectionId: $steps.createConnection.outputs.connectionId
    connectionString: $steps.createConnection.outputs.newConnectionString

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/prisma-postgres-add-database-to-project-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.