Data Platform Bootstrap a Project Environment
A 4-step recipe with Prisma. We can help you get access.
Recipe · 4 steps
Data Platform Bootstrap a Project Environment
with Prisma
Works with AI assistants
Create a project, an environment, and an API key in the Data Platform.
- List the workspaces available to the token so the first one can be used as a fallback when no workspaceId input is supplied.
- Create a project inside the resolved workspace.
- Add an environment to the project with its own database connection string.
- Mint an API key for the new environment. The full key value is only returned once during creation and is captured here.
What you'll need to have ready
- apiToken: Service token or OAuth access token for the Data Platform API, sent as a Bearer token.
- workspaceId: Optional workspace id. When omitted the first workspace is used.
- projectName: Display name for the new project.
- environmentName: Display name for the new environment (e.g. Production, Staging).
- connectionString: Database connection string for the new environment.
- apiKeyName: Display name for the API key minted for the environment.
For your developer
Arazzo workflow prisma:bootstrap-project-environment, 4 operations: listWorkspaces → createProject → createEnvironment → createApiKey. Specs on APIs.io.