deploy
Create deployment
INTERNAL - This endpoint is internal and may change without notice. Not recommended for production use.
Creates a new deployment for a project using either a pre-built Docker image or build context.
Authentication: Requires a valid root key with appropriate permissions.
post/v2/deploy.createDeployment
Request body
Example request
{
"project": "my-project",
"app": "default",
"keyspaceId": "key_abc123",
"branch": "main",
"environmentSlug": "production",
"dockerImage": "ghcr.io/user/app:v1.0.0",
"gitCommit": {
"commitSha": "a1b2c3d4e5f6",
"commitMessage": "feat: add new feature",
"authorHandle": "johndoe",
"authorAvatarUrl": "https://avatars.githubusercontent.com/u/123456",
"timestamp": 1704067200000
}
}Response
Deployment created successfully
Example response
{
"meta": {
"requestId": "req_123"
},
"data": {
"deploymentId": "d_abc123xyz"
}
}