Skip to content
RSFlowHub
  1. Home
  2. APIs
  3. FAQ & Knowledge Base
  4. FAQ Collections Management API
FAQ & Knowledge Base API

FAQ Collections Management API

Programmatically organize and syndicate Q&A collections for automated chatbots and self-serve help portals.

POST https://rsflowhub.com/api/v1/ai/faq-collections
  • 1 credit per call
  • X-API-Key header
  • JSON in, JSON out
POST /api/v1/ai/faq-collections
{
    "name": "Support FAQs",
    "faqs": [
        {
            "id": "faq_1",
            "question": "How can I change my password?",
            "answer": "Go to settings, click on security, then select change password."
        },
        {
            "id": "faq_2",
            "question": "What is your refund policy?",
            "answer": "We offer a 14-day refund window on all of our premium plans."
        }
    ]
}
200 OK response.json
{
    "result": {
        "message": "See the API reference for the full result schema."
    }
}
Definition

What is the FAQ Collections Management API?

FAQ Collections Management API is a REST API on RSFlowHub for web, mobile and AI agent applications. Send a JSON request to POST /api/v1/ai/faq-collections with your API key; RSFlowHub runs it on a tuned AI model, falls back to a backup provider if needed, and returns a structured JSON result, usually within 1 to 3 seconds.

Endpoint
POST /api/v1/ai/faq-collections
Authentication
X-API-Key header
Price
1 credit per call
Rate limit
10 to 120 requests / minute by plan
Typical response
1 to 3 seconds
Format
JSON, UTF-8

Request parameters

Send these fields as a JSON body. An invalid or missing field returns a 422 error that names the field.

FieldTypeRequiredDescription
name string Required The name of the FAQ collection (e.g., "Billing support FAQs").
faqs array of objects Required List of FAQ items to save. Maximum 500 items per collection.
faqs.*.question string Required The FAQ question text.
faqs.*.answer string Required The FAQ answer text.
faqs.*.id string Optional Optional custom identifier (e.g. "faq_1").

Code examples

Copy, replace rfh_your_api_key with your key and run. Prefer a client library? See the official SDKs.

request.sh
curl -X POST "https://rsflowhub.com/api/v1/ai/faq-collections" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: rfh_your_api_key" \
  -d '{"name":"Support FAQs","faqs":[{"id":"faq_1","question":"How can I change my password?","answer":"Go to settings, click on security, then select change password."},{"id":"faq_2","question":"What is your refund policy?","answer":"We offer a 14-day refund window on all of our premium plans."}]}'

Response

Every RSFlowHub endpoint uses the same envelope, so one parser handles all of them. Failed calls are not charged.

response.json
{
    "success": true,
    "request_id": "req_3f9a2c7e-5b1d-4e8a-9c2f-7d6e1a0b4c8d",
    "data": {
        "result": {
            "message": "See the API reference for the full result schema."
        }
    },
    "meta": {
        "version": "v1",
        "timestamp": "2026-10-05T09:30:00Z"
    }
}
Envelope fields
FieldTypeMeaning
successbooleantrue when the call worked, false on any error.
request_idstringUnique id for this call. Quote it when you contact support.
data.resultobjectThe result of this endpoint (see the example).
errorobjectOnly on failure: code, message and details per field.
metaobjectAPI version and server timestamp.

All error codes: Errors reference

Features

Categorized Knowledge Clustering

Group hundreds of FAQs into logical collections (Billing, Technical, Shipping, Account) with automatic slug generation.

Instant Vector Synchronization

Updated FAQs are automatically re-indexed into pgvector for fast semantic similarity search in chatbots.

Multi-Tenant Isolation

Isolate FAQ collections per organization or team with scoped access tokens and atomic update validation.

Search-Engine Friendly Schema Exports

Export collections directly as Google-compliant FAQPage JSON-LD schemas for automated SEO publication.

Use cases

How teams use the FAQ Collections Management API in production.

SaaS Product

Dynamic In-App Help Centers

Sync help center articles from internal CMS into in-app contextual help widgets automatically.

Input
Collection: "Billing & Invoicing", 14 Q&A items including refund and VAT rules.
Output
{"collection_id": "col_billing_01", "indexed_items": 14, "vector_status": "ready"}

Answers repetitive tier-1 questions directly inside your app.

Chatbot Automation

AI Customer Support Bot Grounding

Ground automated support chatbots in curated, verified company answers to eliminate hallucinations.

Input
Add Q: "What is your return policy?" A: "30 days with receipt and original packaging."
Output
{"status": "success", "item_id": "faq_ret_30d", "vector_dims": 768}

Returns your approved answer wording for matched questions.

SEO & Growth

Programmatic SEO FAQ Injection

Programmatically generate and embed valid FAQPage schemas on marketing landing pages.

Input
Export collection "enterprise_pricing" as JSON-LD schema.
Output
{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [...]}

Supplies FAQ content you can publish with FAQPage structured data.

FAQ Collections Management API vs building it yourself

The same job done three ways.

TopicRSFlowHub APIRaw LLM promptsRules / regex
Output Validated JSON fieldsFree text you have to parseFixed patterns only
Setup One POST request, no promptsWrite and maintain prompts and parsingWrite and maintain rule lists
Provider outage Automatic fallback to a backup modelYou build retries and a second vendorNot applicable
Pricing 1 credit per call, failed calls freePer token, per vendorYour own servers and upkeep
Understands context Yes, AI modelYes, AI modelNo, keywords only

Frequently asked questions

How are FAQs converted into vector embeddings?
When you sync a collection, RSFlowHub generates 768-dimensional text embeddings stored in Supabase pgvector for fast cosine similarity search.
Can I export collections as Google FAQPage schema?
Yes. The API returns pre-formatted Schema.org FAQPage JSON-LD objects ready for insertion into HTML headers.
How many items can a single FAQ collection contain?
Each collection supports up to 1,000 distinct Q&A pairs with automatic pagination and search filtering.
Can I update a single FAQ without re-uploading the entire collection?
Yes. Granular PUT/PATCH endpoints allow atomic updates to individual questions with immediate vector re-indexing.
How many credits does the FAQ Collections API consume?
Standard management calls consume 1 base credit per operation.

Start using the FAQ Collections Management API

Free plan with 100 credits/month + 1,000 bonus credits when you sign in before 23 Nov. Test it in the playground first, no code needed.

RSFlowHub

Sign in to continue

You'll come straight back to this page.

Forgot password?

New to RSFlowHub? Create a free account