REST API for managing Prisma Postgres projects, databases, backups, and workspaces.
- Version
- v1
- Base URL
https://api.prisma.io
Projects6 operations
Databases8 operations
GETList databases
/v1/databasesPOSTCreate database/v1/databasesDELETEDelete database/v1/databases/{databaseId}GETGet database/v1/databases/{databaseId}PATCHUpdate database/v1/databases/{databaseId}POSTRestore database (destructive)/v1/databases/{targetDatabaseId}/restoreGETGet list of databases/v1/projects/{projectId}/databasesPOSTCreate database/v1/projects/{projectId}/databasesDatabases Connections2 operations
Database Backups1 operation
Database Usage1 operation
Connections5 operations
Integrations5 operations
Service Tokens3 operations
Workspaces3 operations
Regions1 operation
Misc3 operations
[Experimental]71 operations
Experimental endpoints are in active development and may change at any time without notice.
GETList apps
/v1/appsPOSTCreate app/v1/appsDELETEDelete app/v1/apps/{appId}GETGet app/v1/apps/{appId}PATCHUpdate app/v1/apps/{appId}GETList deployments/v1/apps/{appId}/deploymentsPOSTCreate deployment/v1/apps/{appId}/deploymentsGETList custom domains for an app/v1/apps/{appId}/domainsPOSTCreate a custom domain/v1/apps/{appId}/domainsPOSTPromote deployment/v1/apps/{appId}/promotePOSTRoll an app back to an existing deployment/v1/apps/{appId}/rollbackPOSTExchange a GitHub Actions OIDC token for a workspace service token/v1/auth/github-actions/tokenDELETESoft-delete a branch/v1/branches/{branchId}GETGet a branch/v1/branches/{branchId}PATCHUpdate a branch/v1/branches/{branchId}GETList builds/v1/buildsPOSTReport a build/v1/buildsGETGet a build/v1/builds/{buildId}PATCHUpdate a build/v1/builds/{buildId}GETStream build logs/v1/builds/{buildId}/logsPUTReport a resource a build acted on/v1/builds/{buildId}/resources/{resourceType}/{resourceId}DELETEDelete deployment/v1/deployments/{deploymentId}GETGet deployment/v1/deployments/{deploymentId}GETGet deployment logs/v1/deployments/{deploymentId}/logsPOSTStart deployment/v1/deployments/{deploymentId}/startPOSTStop deployment/v1/deployments/{deploymentId}/stopDELETEDelete a custom domain/v1/domains/{domainId}GETGet a custom domain/v1/domains/{domainId}POSTRetry custom domain provisioning/v1/domains/{domainId}/retryGETList environment variables/v1/environment-variablesPOSTCreate an environment variable/v1/environment-variablesDELETEDelete an environment variable/v1/environment-variables/{envVarId}GETGet an environment variable/v1/environment-variables/{envVarId}PATCHUpdate an environment variable's value/v1/environment-variables/{envVarId}GETList branches in a project/v1/projects/{projectId}/branchesPOSTCreate a branch/v1/projects/{projectId}/branchesDELETERelease Alchemy deploy lease/v1/projects/{projectId}/branches/{branchId}/alchemy-state/leasePATCHHeartbeat Alchemy deploy lease/v1/projects/{projectId}/branches/{branchId}/alchemy-state/leasePOSTAcquire Alchemy deploy lease/v1/projects/{projectId}/branches/{branchId}/alchemy-state/leaseGETList Alchemy stacks/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacksDELETEDelete Alchemy stack state/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}GETList Alchemy stages/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stagesGETGet Alchemy stack output/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/outputPUTSet Alchemy stack output/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/outputGETList replaced Alchemy resources/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/replaced-resourcesGETList Alchemy resources/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resourcesDELETEDelete Alchemy resource state/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}GETGet Alchemy resource state/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}PUTSet Alchemy resource state/v1/projects/{projectId}/branches/{branchId}/alchemy-state/state/stacks/{stack}/stages/{stage}/resources/{fqn}GETAlchemy state store version/v1/projects/{projectId}/branches/{branchId}/alchemy-state/versionGETGet branch topology/v1/projects/{projectId}/branches/{branchId}/application-topologyPUTReplace branch topology/v1/projects/{projectId}/branches/{branchId}/application-topologyGETList SCM installations for a workspace/v1/scm-installationsPOSTCreate an SCM App installation intent/v1/scm-installations/install-intentsGETList repositories accessible to an SCM installation/v1/scm-installations/{installationId}/repositoriesGETList services/v1/servicesPOSTCreate service/v1/servicesDELETEDelete service/v1/services/{serviceId}GETGet service/v1/services/{serviceId}PATCHUpdate service/v1/services/{serviceId}GETList deployments/v1/services/{serviceId}/deploymentsPOSTCreate deployment/v1/services/{serviceId}/deploymentsGETList custom domains for a service/v1/services/{serviceId}/domainsPOSTCreate a custom domain/v1/services/{serviceId}/domainsPOSTPromote deployment/v1/services/{serviceId}/promotePOSTRoll a service back to an existing deployment/v1/services/{serviceId}/rollbackGETList source repositories/v1/source-repositoriesPOSTLink a source repository to a project/v1/source-repositoriesDELETEDisconnect a source repository/v1/source-repositories/{id}GETGet a source repository/v1/source-repositories/{id}POSTCreate a workspace/v1/workspacesAgents1 operation
Buckets8 operations
GETList buckets
/v1/bucketsPOSTCreate bucket/v1/bucketsDELETEDelete bucket/v1/buckets/{bucketId}GETGet bucket/v1/buckets/{bucketId}PATCHUpdate bucket/v1/buckets/{bucketId}GETList bucket keys/v1/buckets/{bucketId}/keysPOSTCreate bucket key/v1/buckets/{bucketId}/keysDELETEDelete bucket key/v1/buckets/{bucketId}/keys/{keyId}