Русский

HOBA

Connect an integration

Start with reading and grant only the permissions the task requires.

API

Find the reference at /api/v1/docs on your Core. Check routes, field types, and permissions against your installed version.

MCP

Use /api/v1/mcp globally or /api/v1/cms/sites/{site_id}/mcp for a site. Available tools depend on the edition, settings, and permissions.

Trial run

Verify reads against a test site. If writing is required, check permissions and draft behaviour before working with public content.

Responses and retries

For a 401 check credentials; for a 403 check permissions or session CSRF requirements. On REVISION_CONFLICT, read the resource again and reconcile the edits. If a write loses its response, check whether it was saved before retrying; another write could create a duplicate.

Choosing credentials

Prefer an API key for scripts: it is bound to one site, acts as its creator with their current role, and is checked on every request. A key for another site returns 403, and global site creation, import, and listing are unavailable through a site key. A bearer request without a cookie skips CSRF; a cookie session needs hoba_csrf in the x-hoba-csrf header for unsafe methods. Publish, activate, rollback, and webhooks require SiteManage, which means the owner role; admin does not receive it.

Repetition and expected revisions

Read an object before changing it and send its expected_revision. On 409 REVISION_CONFLICT, read again, reconcile the edits, and retry; resending the same body blindly conflicts again. POST .../publish is not idempotent: every successful call stages a new release. If the response is lost, list releases and compare release_number instead of publishing again.

Error format

Errors use {error:{code,message,details?}}; details may be absent. The rate limiter is the exception: it returns {code:"rate_limited",message} without the wrapper, so clients must accept both shapes. 401 means missing or expired credentials, 403 means missing membership, permission, or CSRF, 409 means a revision, uniqueness, or release-state conflict, 422 means rejected data, and 429 carries Retry-After.

Limits and preflight checks

The JSON body limit is 8 MiB. Media upload is 5 MiB after base64 decoding for images and 2 MiB for WOFF2; public form submission is 64 KiB; package import is 128 MiB of body and 256 MiB decompressed. GET .../composer/{target}/preview shows the saved draft only, not a release or unsaved edits. inspect=true checks an import without creating a site.

What an assistant can do