Request
Pre-signed URL to the uploaded build context (obtained from init endpoint)
Deployment message (like a commit message)
Git commit SHA for this deployment
Response
Deployment ID (e.g., dep_abc123xyz)
Deployment status: pending, building, active, failed
curl -X POST https://api.crewship.dev/v1/deployments \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"project": "my-crew",
"build_context_url": "https://builds.crewship.dev/abc123",
"message": "Add PDF export feature"
}'
{
"data": {
"id": "dep_abc123xyz",
"project": "my-crew",
"status": "building",
"message": "Add PDF export feature",
"created_at": "2024-01-15T10:30:00Z"
}
}
Most deployments are created via crewship deploy which handles the upload and API calls. Use
this endpoint directly for custom CI/CD integrations.