Skip to main content
POST
cURL
Retrieves frequently asked questions (FAQs) based on a query. This endpoint searches for relevant FAQ items that match the provided query text and returns them sorted by relevance.

Request

The request requires:
  • query: The text to search for relevant FAQs
Optional parameters:
  • category: Filter FAQs by a specific category
  • limit: Maximum number of FAQ items to return (default: 5)

Response

The response includes:
  • status: Operation status
  • items: Array of FAQ items, each containing:
    • question: The frequently asked question
    • answer: The answer to the question
    • category: Category of the FAQ item
    • relevance_score: A score indicating how relevant this FAQ is to the query
This endpoint is useful for providing self-service support to users by suggesting relevant FAQs based on their grievance text or specific queries.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Query to search for relevant FAQs

query
string
required

The query text to search for relevant FAQs

category
string

Optional category to filter FAQs

limit
integer
default:5

Maximum number of FAQ items to return

Response

FAQ search results

status
string

Status of the operation

items
object[]

List of FAQ items relevant to the query