Deployments
Create a deployment
Create a new deployment.
post/deployments
Request
- Base URLhttps://api.onkernel.com
- URLhttps://api.onkernel.com/deployments
- AuthHTTP bearer
Request body multipart/form-data
Example request
{
"entrypoint_rel_path": "src/app.py",
"file": "@path/to/file.zip",
"region": "aws.us-east-1a",
"source": {
"auth": {
"method": "github_token",
"token": "ghs_***"
},
"entrypoint": "src/index.ts",
"path": "apps/api",
"ref": "main",
"type": "github",
"url": "https://github.com/org/repo"
},
"version": "1.0.0"
}Response
Deployment created successfully
Example response
{
"entrypoint_rel_path": "src/app.py",
"id": "rr33xuugxj9h0bkf1rdt2bet",
"region": "aws.us-east-1a",
"source_checksum": "3f4d0ea1bd2c5c1a1a1f0e9d8c7b6a5948372615049382716a5b4c3d2e1f0a9b",
"source_path": "apps/api",
"source_ref": "main",
"source_type": "github",
"source_url": "https://github.com/org/repo",
"status": "queued",
"status_reason": "Deployment in progress"
}Changes
No recorded changes to this operation across all 76 revisions of this API.