Skip to content

POST /api/v1/publish/article

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

Publish Article

Publish one article to its Hugo instance (real the publishing hub flow, async).

404s if the article/instance is unknown; 400 if the instance has no the publishing hub config (so a publish that can never succeed isn’t accepted).

Auth: Authorization: Bearer <token> required

Terminal window
curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/publish/article" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"article_guid":31567,"instance_id":"example-prod-hugo-vps"}'

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

TaskAccepted — Successful Response

FieldTypeDescription
detailobject | null (opt.)
statusstring (opt.)
task_idstring
ParameterInRequiredTypeDefaultConstraintsDescription
Idempotency-Keyheadernostring—uuidOptional.
FieldTypeRequiredDescription
article_guidintegeryes
instance_idstringyes

Example:

{
"article_guid": 31567,
"instance_id": "example-prod-hugo-vps"
}
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.