Skip to content

POST /api/v1/instances

Status: GA Access: token required API contract: 0.3.0 · capability 2026-09-03.1 View as Markdown Open in Claude Open in ChatGPT

Create Instance

Auth: Authorization: Bearer <token> required

Terminal window
curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/instances" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"attached_sc":"<attached_sc>","backend":"<backend>","base_url":"<base_url>","caption":"<caption>","gcs_bucket":"<gcs_bucket>","hostname":"<hostname>","instance_id":"<instance_id>","is_active":"<is_active>","registry":"<registry>","template_dir":"<template_dir>","theme_repo":"<theme_repo>","theme_sha":"<theme_sha>","tier":"<tier>","vps_ip":"<vps_ip>","vps_port":"<vps_port>"}'

The contract carries no example for this response; schema: HugoInstanceRead. Field-level shape: interactive explorer.

HugoInstanceRead — Successful Response

FieldTypeDescription
attached_scinteger | null (opt.)
backend"gcs" | "local-fs" | "wp" (opt.)
base_urlstring | null (opt.)
captionstring | null (opt.)
createtimestring
gcs_bucketstring | null (opt.)
guidinteger
hostnamestring | null (opt.)
instance_idstring
is_activeboolean (opt.)
last_build_atstring | null
last_publish_atstring | null
ownerinteger | null (opt.)
posts_countinteger
registryobject (opt.)
rsidinteger
template_dirstring | null (opt.)
theme_repostring | null (opt.)
theme_shastring | null (opt.)
tier"prod" | "dev" | "test" | "staging" (opt.)
updatedbyinteger | null (opt.)
updatetimestring
vps_ipstring | null (opt.)
vps_portinteger | null (opt.)
warmup_state"cold" | "warming" | "warm"
ParameterInRequiredTypeDefaultConstraintsDescription
Idempotency-Keyheadernostring—uuidOptional.
FieldTypeRequiredDescription
attached_scinteger | nullno
backend"gcs" | "local-fs" | "wp"no
base_urlstring | nullno
captionstring | nullno
gcs_bucketstring | nullno
hostnamestring | nullno
instance_idstringyes
is_activebooleanno
registryobjectno
template_dirstring | nullno
theme_repostring | nullno
theme_shastring | nullno
tier"prod" | "dev" | "test" | "staging"no
vps_ipstring | nullno
vps_portinteger | nullno
CodeMeaningBody
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.