Skip to main content
POST
Deploy a worker

Authorizations

Authorization
string
header
required

API token from your CloudBlast account settings. Pass as Authorization: Bearer <token>.

Body

application/json
location_id
integer
required

From GET /workers/locations.

Example:

1

name
string
required
Maximum string length: 191
Example:

"api-worker"

git_repository
string
required

Repository URL, or a template id when git_source is template or database.

Maximum string length: 500
Example:

"https://github.com/example/app"

git_source
enum<string>
default:public

github requires a GitHub account linked in the panel.

Available options:
public,
github,
template,
database
git_branch
string | null
default:main
Maximum string length: 191
build_pack
enum<string>
default:nixpacks
Available options:
nixpacks,
static,
dockerfile
ports_exposes
string | null
default:3000

Port your application listens on.

Maximum string length: 64
base_directory
string | null
Maximum string length: 255
publish_directory
string | null

Directory to serve for a static build.

Maximum string length: 255
install_command
string | null
Maximum string length: 1000
build_command
string | null
Maximum string length: 1000
start_command
string | null
Maximum string length: 1000
is_spa
boolean
default:false

Route unknown paths of a static build to the index.

Response

Worker accepted and queued for provisioning

data
object