HAIMDALL has a REST API at /api/v1 for systems that don't use MCP: your own product, a support tool, a script or an integration platform. It reads published help content and, with an API key, manages drafts and the review workflow, following the same rules as people in the editor and AI agents over MCP.
The complete reference, generated from the API itself, is at /api/v1/docs on your help site, and the machine-readable description at /api/v1/openapi.json (OpenAPI 3.1 — most tools can generate a client from it). Access › Agents & integrations links to both.
API keys
Reading published content may not need a key (see below). Everything else does: Authorization: Bearer hmd_….
On Access › Agents & integrations, create an integration account for the system (or an AI agent account for an AI), with the lowest role it needs.
Give it access to particular Folders on the Folders screen if its role alone isn't enough.
Open its API keys, and create a key with only the scopes it needs: Read content to read drafts, Write drafts to create and change articles, Submit, Approve and Publish for the workflow steps.
A key can only do what its scopes, its account's role and its account's Folder access allow. Everything it changes appears in the Activity log under the account's name. Changes made by AI agent accounts need the AI user licence, and agents may only approve and publish when Access › Agents & integrations allows it; integration accounts don't need either.
Reading published content
GET /api/v1/articles— published articles, 50 at a time (limitup to 100); pass the response'snextCursorascursorfor the next page. Filter withfolderIdorlang.GET /api/v1/articles/{id}— one article with every published language: title, description, page address and content as Markdown.GET /api/v1/articles/{id}/languages/{lang}— one language.GET /api/v1/search?q=…— the help site's own search.GET /api/v1/chunks— the same chunks as the RAG feed, with stable ids and content hashes.GET /api/v1/folders,GET /api/v1/versions— folders, and the product versions.
Without a key, these work when Connections › API & AI feeds is Anyone and the help site is open. With Only with an API key or Nobody, they need a key with Read content. Every article is labelled with its product version and whether it's region-specific; nothing is left out by region.
Add ?state=draft (with a Read content key) to see drafts instead: every language with its status, and the content as Markdown you can send straight back. Add ?changedSince=<ISO time> to /articles or /chunks to get only what changed since then, plus what was removed.
Changing content
POST /api/v1/articles— create an article as a draft:{"slug", "lang", "title", "folderId" or "parentId", "markdown"}.PATCH /api/v1/articles/{id}/languages/{lang}— change a language's draft: any ofmarkdown,title,description,slug,searchKeywords. An article in review or approved goes back to draft.POST /api/v1/articles/{id}/languages— add a translation:{"lang": "fr"}.POST /api/v1/articles/{id}/languages/{lang}/submit,…/approve,…/publish— one workflow step each. A step is refused unless the language is at the step before.DELETE /api/v1/articles/{id}— delete the article (it can be restored in the editor).
The Markdown is the same as for AI agents — internal links as [[articleId|text]], code boxes as fenced code blocks; see AI Feeds.
curl -X POST https://help.example.com/api/v1/articles \
-H "Authorization: Bearer hmd_…" -H "Content-Type: application/json" \
-d '{"slug":"getting-started","lang":"en","title":"Getting started","folderId":"…","markdown":"Welcome."}'Product versions
Add ?version=<code> (or latest, the default) to work in a particular product version. When your help centre has several versions, every change must say which one it's for, or it's refused with version_required.
Errors, caching and limits
Errors always look like
{"error": {"code": "…", "message": "…"}}, with a status that says what kind: 400 a request problem, 401 a missing or invalid key, 403 not allowed, 404 not found, 409 not possible in the current state, 429 too many requests.Every
GETresponse has an ETag: send it back inIf-None-Matchand an unchanged answer is 304 with no body.Each API key may make 600 requests a minute; callers without a key, 120 per address. The
X-RateLimit-Remainingheader says how many are left, and a 429 answer says when to try again (Retry-After).