Skip to content
Browse articles
API reference

Help center API

Read your published help center natively, search it, stream AI answers and send feedback.

Agent44Updated 3 min read

On this page

These endpoints read your workspace's help center when it's public or in-app (not private), published articles only. Every request sends Authorization: Bearer a44_pub_…; identity headers are optional (they link the reader to the user). A user id is checked like everywhere else: when the key's workspace enforces identity verification, send X-A44-User-Hash with it, or the request is a 401. Without a help center, they answer 404 "This workspace has no help center".

The reader#

Every help endpoint takes the reader's context in the query string:

Parameter

Meaning

platform

ios or android. Defaults to the key's app platform.

app_version

The running version, like 4.2.1 (4.2.1 (431) is read as 4.2.1). Articles aimed at other versions are left out, and so are sections of an article aimed at other platforms or versions.

user_id

Accepted for older SDKs. Send the signed-in user's id in the X-A44-User-Id header instead (it wins when both are sent), to link feedback, searches and questions to the user. Its signature always goes in the X-A44-User-Hash header, never the query string.

The article object#

Field

Meaning

id

The article's public id.

title, excerpt

Plain text.

tab_id, collection_id

Public ids, or null.

featured

Whether your team featured it.

updated_at

When it was last published.

url

Its page on your public help center, for "Open in browser" and sharing.

GET /v1/help#

The help center's name, look and features for your native help screens:

{
  "name": "Akmi Help",
  "locale": "en",
  "url": "https://akmi.agent44.ai/help-center",
  "brand_color": "#2F6BFF",
  "hero_title": "How can we help?",
  "search_placeholder": "Search for answers",
  "ai_answers": true,
  "ai_intro": "…",
  "contact_url": null,
  "contact_label": "Contact support",
  "tabs": [{ "id": "k3j9x2m1qa", "name": "Documentation", "icon": null }]
}

tabs are the help center's sections in order; the first is its home. ai_intro is left out when your team hasn't written one.

GET /v1/help/collections#

Collections with at least one article for this reader, in order: { "collections": [{ id, tab_id, parent_id, name, description, icon, article_count }] }. parent_id nests them. ?tab=<tab id> returns one tab's.

GET /v1/help/articles#

{ "articles": [Article, …] } in your editor's order. Filter with ?tab=<id>, ?collection=<id> (that collection only, not its sub-collections) and ?featured=1. An unknown tab or collection is a 404.

GET /v1/help/articles/{id}#

One article for native rendering: the article object plus

Field

Meaning

author

The publishing teammate's name, or null.

headings

[{ id, text, level }], for a table of contents.

doc

The content as JSON: a document of blocks (paragraphs, headings, lists, tables, images, code, callouts…) with text marks, in a fixed set of node types. Sections for other platforms or versions are already removed.

media_base, media_prefix

Image src values in doc start with media_prefix. Replace it with media_base to load them.

?q= (at least 2 characters; longer than 200 is cut) searches published articles: { "results": [Article + snippet, …] }, at most 20. snippet marks matched words with « and »: show it as text and style the marked words yourself, never as HTML. Searches are counted in your help center's analytics, including ones with no results.

POST /v1/help/ask#

An AI answer from your articles, streamed. Only articles that match the reader are used.

{ "question": "How do I restore my purchases?", "device_id": "3f9c0a7e-5b1d-4c2a" }
  • question: 3 characters or more (longer than 300 is cut; over 600 is a 400).

  • device_id: 8 to 64 letters, digits or hyphens, the same for a device every time. Limits are counted per device: 30 questions an hour.

  • A 403 when AI answers are off for the help center.

The answer is application/x-ndjson: one JSON object per line.

{"status":"thinking"}
{"sources":[{"n":1,"articleId":"…","publicId":"…","title":"Restore purchases","href":"https://…","heading":"On iPhone"}]}
{"delta":"Open Settings and tap "}
{"delta":"Restore purchases [1]."}
{"done":true,"answerId":"…","answered":true}

Line

Meaning

{"status":"thinking"}

Sent first, and again after every 10 seconds without another line, so connections stay open. Ignore it.

{"sources": […]}

The articles the answer may cite, as [n] in the text. An empty list means no answer is coming.

{"delta": "…"}

The next piece of the answer text. Append them.

{"done": true, "answered": …}

The end. answered: false means the help center had nothing relevant: offer search or your contact link instead.

{"error": "limit" | "unavailable", "message": "…"}

No answer: too many questions (limit), or AI answers are down right now (unavailable). Show the message.

Ignore lines you don't recognise. Give up if nothing arrives for 30 seconds.

POST /v1/help/articles/{id}/feedback#

{ "rating": 1, "comment": "Exactly what I needed", "device_id": "3f9c0a7e-5b1d-4c2a" }

rating is -1, 0 or 1; comment is optional (cut to 1,000 characters); device_id as for questions. One rating per device and article: a later one replaces it. Answers 204.

POST /v1/help/events#

{ "type": "article_view", "article_id": "k3j9x2m1qa" }

type is article_view (needs article_id) or contact_click. These are what your help center's analytics counts. Answers 204.

Did this answer your question?