capabilities.work

Postgres Add a Database to a Project

A 3-step recipe with Prisma. We can help you get access.

Recipe · 3 steps

Postgres Add a Database to a Project

with Prisma
Works with AI assistants

Provision an additional Postgres database within an existing project and mint a connection string.

  1. Read the project to confirm it exists before provisioning an additional database against it.
  2. Provision a new Prisma Postgres database in the requested region within the confirmed project.
  3. Mint a Prisma connection string for the new database so applications can connect to it.
What you'll need to have ready
  • apiToken: Service token or OAuth access token for the Management API, sent as a Bearer token.
  • projectId: Identifier of the project to add a database to.
  • databaseName: Optional display name for the new database.
  • region: Region to provision the database in (e.g. us-east-1, eu-west-1).
For your developer

Arazzo workflow prisma:add-database-to-project, 3 operations: getProject → createDatabase → createConnection. Specs on APIs.io.