Help center API
Read your published help center natively, search it, stream AI answers and send feedback.
AAgent44Updated 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 |
|---|---|
|
|
| The running version, like |
| Accepted for older SDKs. Send the signed-in user's id in the |
The article object#
Field | Meaning |
|---|---|
| The article's public id. |
| Plain text. |
| Public ids, or |
| Whether your team featured it. |
| When it was last published. |
| 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 |
|---|---|
| The publishing teammate's name, or |
|
|
| 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. |
| Image |
GET /v1/help/search#
?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 a400).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
403when 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 |
|---|---|
| Sent first, and again after every 10 seconds without another line, so connections stay open. Ignore it. |
| The articles the answer may cite, as |
| The next piece of the answer text. Append them. |
| The end. |
| No answer: too many questions ( |
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.