Skip to main content
POST
/
v1
/
environments
/
:environmentId
/
deploy
Deploy an environment
curl --request POST \
  --url https://mcp.alpic.ai/v1/environments/:environmentId/deploy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "environmentId": "<string>"
}
'
{
  "id": "<string>",
  "status": "ongoing",
  "sourceRef": "<string>",
  "sourceCommitId": "<string>",
  "sourceCommitMessage": "<string>",
  "authorUsername": "<string>",
  "authorAvatarUrl": "<string>",
  "startedAt": "2023-11-07T05:31:56Z",
  "completedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token for authentication. Get it from the API Keys page in team settings.

Body

application/json
environmentId
string
required

The ID of the environment to deploy

Response

The environment has been deployed successfully

id
string
required
status
enum<string>
required
Available options:
ongoing,
deployed,
failed,
canceled
sourceRef
string
required
sourceCommitId
string
required
sourceCommitMessage
string
required
authorUsername
string | null
required
authorAvatarUrl
string | null
required
startedAt
string<date-time> | null
required
completedAt
string<date-time> | null
required