Hosting protocol reference
Methods, parameters, schemas and examples from the downloadable contract.
This reference is generated directly from the downloadable OpenAPI contract. Read the feature guide before mutations. Wire names remain unchanged in both languages. Host, feature and network restrictions apply in addition to credential schemes. Signed hosting authentication lives in the request body; security: [] there does not make requests unauthenticated. Database-backed diagnostic fields may grow; tolerate unknown response fields.
Download OpenAPI specification
GET /api/v1/hosting/configurator
Download the pairing helper
Configured-host and approved-network checks apply. See the pairing/signature guide.
Authentication: No HTTP credentials; feature/network rules still apply
Responses
| HTTP | Meaning |
|---|---|
| 200 | Successful response. |
| 400 | Malformed input. |
| 401 | Credentials required or invalid. Empty body may be returned. |
| 403 | Scope, account or network denied. |
| 404 | Unknown resource or disabled feature. Empty body may be returned. |
| 405 | Method not allowed. Empty body may be returned. |
| 409 | State, revision or ownership conflict. |
| 413 | Request body too large. Empty body may be returned. |
| 415 | Use application/json. Empty body may be returned. |
| 421 | Host is not configured. |
| 422 | Validation failed. |
| 429 | Rate limit exceeded. |
| 502 | Upstream artifact error. |
| 503 | Dependency unavailable. |
OpenAPI JSON
{
"200": {
"description": "Successful response.",
"content": {
"text/x-python": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Malformed input.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"401": {
"description": "Credentials required or invalid. Empty body may be returned.",
"headers": []
},
"403": {
"description": "Scope, account or network denied.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Unknown resource or disabled feature. Empty body may be returned."
},
"405": {
"description": "Method not allowed. Empty body may be returned."
},
"409": {
"description": "State, revision or ownership conflict.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"413": {
"description": "Request body too large. Empty body may be returned."
},
"415": {
"description": "Use application/json. Empty body may be returned."
},
"421": {
"description": "Host is not configured.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"422": {
"description": "Validation failed.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"429": {
"description": "Rate limit exceeded.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
},
"502": {
"description": "Upstream artifact error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"503": {
"description": "Dependency unavailable.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
}
}POST /api/v1/hosting/enroll
Claim a pairing token
Configured-host and approved-network checks apply. See the pairing/signature guide.
Authentication: [{"pairingToken":[]}]
Request body
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EnrollmentRequest"
}
}
}
}Responses
| HTTP | Meaning |
|---|---|
| 200 | Successful response. |
| 400 | Malformed input. |
| 401 | Credentials required or invalid. Empty body may be returned. |
| 403 | Scope, account or network denied. |
| 404 | Unknown resource or disabled feature. Empty body may be returned. |
| 405 | Method not allowed. Empty body may be returned. |
| 409 | State, revision or ownership conflict. |
| 413 | Request body too large. Empty body may be returned. |
| 415 | Use application/json. Empty body may be returned. |
| 421 | Host is not configured. |
| 422 | Validation failed. |
| 429 | Rate limit exceeded. |
| 502 | Upstream artifact error. |
| 503 | Dependency unavailable. |
OpenAPI JSON
{
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Enrollment"
}
}
}
},
"400": {
"description": "Malformed input.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"401": {
"description": "Credentials required or invalid. Empty body may be returned.",
"headers": []
},
"403": {
"description": "Scope, account or network denied.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Unknown resource or disabled feature. Empty body may be returned."
},
"405": {
"description": "Method not allowed. Empty body may be returned."
},
"409": {
"description": "State, revision or ownership conflict.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"413": {
"description": "Request body too large. Empty body may be returned."
},
"415": {
"description": "Use application/json. Empty body may be returned."
},
"421": {
"description": "Host is not configured.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"422": {
"description": "Validation failed.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"429": {
"description": "Rate limit exceeded.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
},
"502": {
"description": "Upstream artifact error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"503": {
"description": "Dependency unavailable.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
}
}POST /api/v1/hosting/progress
Report signed progress
Configured-host and approved-network checks apply. See the pairing/signature guide. Authentication is in the signed body, not an HTTP header. Expired certificates cannot authenticate.
Authentication: Signed JSON body
Request body
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SignedRequest"
}
}
}
}Responses
| HTTP | Meaning |
|---|---|
| 200 | Successful response. |
| 400 | Malformed input. |
| 401 | Credentials required or invalid. Empty body may be returned. |
| 403 | Scope, account or network denied. |
| 404 | Unknown resource or disabled feature. Empty body may be returned. |
| 405 | Method not allowed. Empty body may be returned. |
| 409 | State, revision or ownership conflict. |
| 413 | Request body too large. Empty body may be returned. |
| 415 | Use application/json. Empty body may be returned. |
| 421 | Host is not configured. |
| 422 | Validation failed. |
| 429 | Rate limit exceeded. |
| 502 | Upstream artifact error. |
| 503 | Dependency unavailable. |
OpenAPI JSON
{
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"accepted": {
"const": true
}
},
"required": [
"accepted"
]
},
"example": {
"accepted": true
}
}
}
},
"400": {
"description": "Malformed input.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"401": {
"description": "Credentials required or invalid. Empty body may be returned.",
"headers": []
},
"403": {
"description": "Scope, account or network denied.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Unknown resource or disabled feature. Empty body may be returned."
},
"405": {
"description": "Method not allowed. Empty body may be returned."
},
"409": {
"description": "State, revision or ownership conflict.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"413": {
"description": "Request body too large. Empty body may be returned."
},
"415": {
"description": "Use application/json. Empty body may be returned."
},
"421": {
"description": "Host is not configured.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"422": {
"description": "Validation failed.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"429": {
"description": "Rate limit exceeded.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
},
"502": {
"description": "Upstream artifact error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"503": {
"description": "Dependency unavailable.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
}
}POST /api/v1/hosting/renew
Renew with the enrolled key
Configured-host and approved-network checks apply. See the pairing/signature guide. Authentication is in the signed body, not an HTTP header. Expired certificates cannot authenticate.
Authentication: Signed JSON body
Request body
OpenAPI JSON
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SignedRequest"
}
}
}
}Responses
| HTTP | Meaning |
|---|---|
| 200 | Successful response. |
| 400 | Malformed input. |
| 401 | Credentials required or invalid. Empty body may be returned. |
| 403 | Scope, account or network denied. |
| 404 | Unknown resource or disabled feature. Empty body may be returned. |
| 405 | Method not allowed. Empty body may be returned. |
| 409 | State, revision or ownership conflict. |
| 413 | Request body too large. Empty body may be returned. |
| 415 | Use application/json. Empty body may be returned. |
| 421 | Host is not configured. |
| 422 | Validation failed. |
| 429 | Rate limit exceeded. |
| 502 | Upstream artifact error. |
| 503 | Dependency unavailable. |
OpenAPI JSON
{
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Certificate"
}
}
}
},
"400": {
"description": "Malformed input.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"401": {
"description": "Credentials required or invalid. Empty body may be returned.",
"headers": []
},
"403": {
"description": "Scope, account or network denied.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Unknown resource or disabled feature. Empty body may be returned."
},
"405": {
"description": "Method not allowed. Empty body may be returned."
},
"409": {
"description": "State, revision or ownership conflict.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"413": {
"description": "Request body too large. Empty body may be returned."
},
"415": {
"description": "Use application/json. Empty body may be returned."
},
"421": {
"description": "Host is not configured.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"422": {
"description": "Validation failed.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"429": {
"description": "Rate limit exceeded.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
},
"502": {
"description": "Upstream artifact error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"503": {
"description": "Dependency unavailable.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
},
"headers": {
"Retry-After": {
"description": "Delay in seconds before retry.",
"schema": {
"type": "integer",
"minimum": 0
}
}
}
}
}GET /api/v1/hosting/installer
Retired installation endpoint
Returns 410 on the configured host; use configurator pairing.
Authentication: No HTTP credentials; feature/network rules still apply
Responses
| HTTP | Meaning |
|---|---|
| 410 | Installation retired. |
| 404 | Feature disabled. |
| 421 | Wrong host. |
OpenAPI JSON
{
"410": {
"description": "Installation retired.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Feature disabled."
},
"421": {
"description": "Wrong host."
}
}POST /api/v1/hosting/installer
Retired installation endpoint
Returns 410 on the configured host; use configurator pairing.
Authentication: No HTTP credentials; feature/network rules still apply
Responses
| HTTP | Meaning |
|---|---|
| 410 | Installation retired. |
| 404 | Feature disabled. |
| 421 | Wrong host. |
OpenAPI JSON
{
"410": {
"description": "Installation retired.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Feature disabled."
},
"421": {
"description": "Wrong host."
}
}GET /api/v1/hosting/package
Retired installation endpoint
Returns 410 on the configured host; use configurator pairing.
Authentication: No HTTP credentials; feature/network rules still apply
Responses
| HTTP | Meaning |
|---|---|
| 410 | Installation retired. |
| 404 | Feature disabled. |
| 421 | Wrong host. |
OpenAPI JSON
{
"410": {
"description": "Installation retired.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Feature disabled."
},
"421": {
"description": "Wrong host."
}
}POST /api/v1/hosting/package
Retired installation endpoint
Returns 410 on the configured host; use configurator pairing.
Authentication: No HTTP credentials; feature/network rules still apply
Responses
| HTTP | Meaning |
|---|---|
| 410 | Installation retired. |
| 404 | Feature disabled. |
| 421 | Wrong host. |
OpenAPI JSON
{
"410": {
"description": "Installation retired.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
}
}
},
"404": {
"description": "Feature disabled."
},
"421": {
"description": "Wrong host."
}
}Certificate
| Field | Type | Required | Description |
|---|---|---|---|
enrollment_id | string | Yes | Public enrolment ID. |
agent_identity | string | Yes | Agent identity. |
server_certificate | string | Yes | PEM server certificate; never a private key. |
client_ca | string | Yes | PEM client CA certificate. |
certificate_expires_at | string | Yes | UTC timestamp YYYY-MM-DD HH:MM:SS. |
JSON Schema
{
"type": "object",
"properties": {
"enrollment_id": {
"type": "string",
"description": "Public enrolment ID."
},
"agent_identity": {
"type": "string",
"description": "Agent identity."
},
"server_certificate": {
"type": "string",
"description": "PEM server certificate; never a private key."
},
"client_ca": {
"type": "string",
"description": "PEM client CA certificate."
},
"certificate_expires_at": {
"type": "string",
"description": "UTC timestamp YYYY-MM-DD HH:MM:SS."
}
},
"required": [
"enrollment_id",
"agent_identity",
"server_certificate",
"client_ca",
"certificate_expires_at"
]
}Platform
JSON Schema
{
"oneOf": [
{
"type": "object",
"properties": {
"os": {
"const": "debian"
},
"version": {
"type": "string",
"enum": [
"12",
"13"
]
},
"architecture": {
"type": "string",
"enum": [
"x86_64",
"aarch64"
]
}
},
"required": [
"os",
"version",
"architecture"
]
},
{
"type": "object",
"properties": {
"os": {
"const": "ubuntu"
},
"version": {
"type": "string",
"enum": [
"24.04",
"26.04"
]
},
"architecture": {
"type": "string",
"enum": [
"x86_64",
"aarch64"
]
}
},
"required": [
"os",
"version",
"architecture"
]
},
{
"type": "object",
"properties": {
"os": {
"const": "fedora"
},
"version": {
"type": "string",
"enum": [
"43",
"44"
]
},
"architecture": {
"type": "string",
"enum": [
"x86_64",
"aarch64"
]
}
},
"required": [
"os",
"version",
"architecture"
]
}
]
}EnrollmentRequest
| Field | Type | Required | Description |
|---|---|---|---|
csr | string | Yes | PEM CSR generated with the locally retained key. |
platform | #/components/schemas/Platform | Yes | — |
JSON Schema
{
"type": "object",
"properties": {
"csr": {
"type": "string",
"description": "PEM CSR generated with the locally retained key.",
"maxLength": 16384
},
"platform": {
"$ref": "#/components/schemas/Platform"
}
},
"required": [
"csr",
"platform"
],
"examples": [
{
"csr": "PEM CSR PLACEHOLDER",
"platform": {
"os": "debian",
"version": "13",
"architecture": "x86_64"
}
}
]
}Enrollment
JSON Schema
{
"allOf": [
{
"$ref": "#/components/schemas/Certificate"
},
{
"type": "object",
"properties": {
"roles": {
"type": "array",
"items": {
"enum": [
"web",
"mail"
]
}
},
"configuration_only": {
"const": true
},
"web_roots": {
"type": "array",
"items": {
"type": "string"
}
},
"port": {
"type": "integer",
"minimum": 1024,
"maximum": 65535
},
"hostname": {
"type": "string"
}
},
"required": [
"roles",
"configuration_only",
"web_roots",
"port",
"hostname"
]
}
]
}SignedRequest
| Field | Type | Required | Description |
|---|---|---|---|
enrollment_id | string | Yes | — |
timestamp | string | Yes | Unix seconds, maximum clock difference 300 seconds. |
nonce | string | Yes | Single-use random nonce, replay record retained ten minutes. |
payload | string | Yes | Base64 UTF-8 JSON; signed in its encoded form. |
signature | string | Yes | Base64 OpenSSL SHA-256 signature over LF-joined ID, action, time, nonce, encoded payload; no trailing LF. |
JSON Schema
{
"type": "object",
"properties": {
"enrollment_id": {
"type": "string"
},
"timestamp": {
"type": "string",
"description": "Unix seconds, maximum clock difference 300 seconds.",
"pattern": "^[0-9]+$"
},
"nonce": {
"type": "string",
"description": "Single-use random nonce, replay record retained ten minutes.",
"pattern": "^[a-f0-9]{64}$"
},
"payload": {
"type": "string",
"description": "Base64 UTF-8 JSON; signed in its encoded form.",
"maxLength": 65536,
"contentEncoding": "base64"
},
"signature": {
"type": "string",
"description": "Base64 OpenSSL SHA-256 signature over LF-joined ID, action, time, nonce, encoded payload; no trailing LF.",
"contentEncoding": "base64"
}
},
"required": [
"enrollment_id",
"timestamp",
"nonce",
"payload",
"signature"
]
}ProgressPayload
| Field | Type | Required | Description |
|---|---|---|---|
step | schema | Yes | — |
JSON Schema
{
"type": "object",
"properties": {
"step": {
"enum": [
"configuring",
"starting",
"installed",
"failed"
]
}
},
"required": [
"step"
],
"examples": [
{
"step": "installed"
}
]
}RenewalPayload
| Field | Type | Required | Description |
|---|---|---|---|
csr | string | Yes | CSR using the enrolled public key. |
JSON Schema
{
"type": "object",
"properties": {
"csr": {
"type": "string",
"description": "CSR using the enrolled public key."
}
},
"required": [
"csr"
],
"examples": [
{
"csr": "PEM CSR PLACEHOLDER"
}
]
}