The Search API is a hybrid search service that combines semantic understanding with keyword precision to deliver fast, contextual, and relevant results from your enterprise knowledge base. It enables secure, role-aware access to articles, FAQs, and documentation across customer, agent, and employee interfaces. Each query returns a ranked list of results with snippets, metadata, and relevance scores.
Security
oAuthUser(Required scopes:
https://api.egain.cloud/auth/kno...
) or oAuthCustomer(Required scopes: https://api.egain.cloud/auth/kno...
) or oAuthAnonymousCustomer(Required scopes: https://api.egain.cloud/auth/kno...
)GET
- oAuthUser
- oAuthCustomer
- oAuthAnonymousCustomer
curl -i -X GET \
'https://api.egain.cloud/knowledge/portalmgr/v4/PROD-1000/search?q=What%20is%20a%20loan%3F&%24filter%5BuserProfileID%5D=PROD-1030&%24lang=en-US&%24filter%5Btags%5D=PROD-1234%3DPROD-2000%2CPROD-2003%26PROD-2005%3DPROD-2007&%24filter%5BtopicIds%5D=string&articleCustomAdditionalAttributes=string&%24pagenum=1&%24pagesize=20' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "searchResults": { "article": [ … ] } }