Category & FAQ
Get FAQs
Retrieve FAQs based on a query
POST
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 categorylimit
: Maximum number of FAQ items to return (default: 5)
Response
The response includes:
status
: Operation statusitems
: Array of FAQ items, each containing:question
: The frequently asked questionanswer
: The answer to the questioncategory
: Category of the FAQ itemrelevance_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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Query to search for relevant FAQs
The body is of type object
.
Response
200
application/json
FAQ search results
The response is of type object
.