Skip to content

Help centre content

Needs: knowledge:read knowledge:write knowledge:publish

Each product has a help centre: FAQs (short questions and answers) and articles (longer help pages). Customers see published ones in the website widget, and Supportaka’s AI assistant answers from them. With the API you can keep them in step with your own CMS, docs or product catalogue.

FAQs are organised as categories → topics → FAQs: for example Orders → Delivery → “How long does delivery take?”.

Terminal window
# 1. A category (skip if it exists: GET …/faq-categories)
curl https://api.supportaka.com/api/v1/organizations/$ORG/products/$PRODUCT/faq-categories \
-H "Authorization: Bearer $SUPPORTAKA_KEY" -H "Content-Type: application/json" \
-d '{ "name": "Orders" }'
# 2. A topic in it
curl https://api.supportaka.com/api/v1/organizations/$ORG/products/$PRODUCT/faq-categories/$CATEGORY/topics \
-H "Authorization: Bearer $SUPPORTAKA_KEY" -H "Content-Type: application/json" \
-d '{ "name": "Delivery" }'
# 3. The FAQ, as a draft
curl https://api.supportaka.com/api/v1/organizations/$ORG/products/$PRODUCT/faqs \
-H "Authorization: Bearer $SUPPORTAKA_KEY" -H "Content-Type: application/json" \
-d '{
"topic_id": "TOPIC_ID",
"question": "How long does delivery take?",
"answer": "Lagos: 1–2 working days. Elsewhere in Nigeria: 3–5 working days.",
"visibility": "public"
}'
  • answer is plain text; line breaks are kept.
  • visibility: "internal" keeps an FAQ for your team only: customers never see it.
  • A slug is made from the question if you don’t give one.

With knowledge:publish, publish a draft so customers see it in the widget, or take it down again:

Terminal window
curl -X POST https://api.supportaka.com/api/v1/organizations/$ORG/products/$PRODUCT/faqs/$FAQ/publish \
-H "Authorization: Bearer $SUPPORTAKA_KEY"
curl -X POST https://api.supportaka.com/api/v1/organizations/$ORG/products/$PRODUCT/articles/$ARTICLE/unpublish \
-H "Authorization: Bearer $SUPPORTAKA_KEY"

Only public FAQs and articles appear in the widget; internal ones stay for your team even when published. An archived one is restored first (409 FAQ_ARCHIVED, 409 ARTICLE_ARCHIVED). Editing a published FAQ or article changes what customers see straight away, so it needs both knowledge:write and knowledge:publish.

Articles live in categories (…/knowledge-categories) and have an HTML body:

Terminal window
curl https://api.supportaka.com/api/v1/organizations/$ORG/products/$PRODUCT/articles \
-H "Authorization: Bearer $SUPPORTAKA_KEY" -H "Content-Type: application/json" \
-d '{
"category_id": "CATEGORY_ID",
"title": "Returning an item",
"summary": "How to send something back and get your money.",
"body": "<p>You can return most items within <strong>14 days</strong>.</p><ol><li>Open your order</li><li>Choose <em>Return</em></li></ol>",
"visibility": "public"
}'

The body is cleaned when it’s saved. Formatting, lists, tables, links, https images and YouTube or Vimeo embeds are kept; scripts, styles and anything unsafe are removed. Read it back as body_html.

FAQs and articles carry a revision. Send the one you loaded when you edit:

PATCH …/faqs/{faqID}
{ "answer": "Lagos: same day before 2pm…", "revision": 3 }

If someone edited it since, you get 409 REVISION_CONFLICT instead of overwriting their work. Every change is kept as a revision you can list (…/revisions).

Search every FAQ and article of a product, drafts and internal ones included, best matches first:

Terminal window
curl "https://api.supportaka.com/api/v1/organizations/$ORG/products/$PRODUCT/search?q=refund&type=faq&status=published" \
-H "Authorization: Bearer $SUPPORTAKA_KEY"

type is faq or article; status is draft, published or archived; limit is up to 50.

Your plan limits how many FAQs and articles each product has (409 FAQ_LIMIT_REACHED, 409 ARTICLE_LIMIT_REACHED). Archived ones don’t count.