Skip to main content
POST
Create app service

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Headers

X-Project-ID
string<uuid>
required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Body

application/json
name
string
required
service_type
enum<string>
required
Available options:
web,
private,
worker,
cron,
job
description
string
source_type
enum<string>
Available options:
git,
image,
template,
compose
builder
enum<string>
Available options:
buildpacks,
dockerfile,
image
image_ref
string

Prebuilt image reference (for source_type image)

repo_full_name
string

GitHub repo (owner/name) for source_type git

repo_branch
string
repo_root_dir
string
dockerfile_path
string
start_command
string
tier_id
integer
replicas
integer
autoscaling_enabled
boolean
min_replicas
integer
max_replicas
integer
scale_to_zero
boolean
http_port
integer
health_check_path
string
cron_schedule
string
cron_timezone
string
region
string
deploy_now
boolean

Queue a deployment immediately (prebuilt-image services)

Response

App service created (status pending while provisioning)

success
boolean
service
object

An app service on the Raff PaaS — a web service, private service, worker, cron job, or one-off job.

deployment_id
string<uuid>

Set when a deployment was queued at create time

Last modified on August 26, 2026