cURL
curl --request POST \ --url https://api.alpic.ai/v1/environments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "projectId": "<string>", "name": "<string>", "sourceBranch": "<string>", "environmentVariables": [] } '
{ "id": "<string>", "name": "<string>", "sourceBranch": "<string>", "urls": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z", "projectId": "<string>" }
Create an environment for a project
Bearer token for authentication. Get it from the API Keys page in team settings.
The ID of the project to create the environment for
The name of the environment
1
The branch used to build the environment
Show child attributes
The environment has been created successfully
The URLs of the MCP server
The ID of the project the environment belongs to
Was this page helpful?