Skip to content

Knowledge Portal Manager APIs

License

The following licenses are required to use the Knowledge Access APIs:

  • If the user is an agent, then the Knowledge + AI license is required.
  • If the user is a customer, the Self-Service and Advanced Self-Service licenses must be available.

Tiers

TierTier NameNamed UsersDescription
Tier 1StarterUp to 10Designed for small-scale implementations or pilot environments
Tier 2GrowthUp to 1000Suitable for mid-scale deployments requiring moderate scalability
Tier 3EnterpriseGreater than 1000Supports large-scale environments with extended configuration options

API Resource Limits

The following Resources have predefined limits for specific access attributes for Starter, Growth and Enterprise use.

ResourceLimitsStarterGrowthEnterprise
Article ReferenceNumber of attachments used in any article255050
Number of custom attributes in an article102550
Number of publish views used in an article version202020
Topic ReferenceUser-defined topics in a department1000500050000
Depth of topics52020
Topics at any level50025002500
Number of custom attributes in a topic101010
Portal ReferenceTag categories in a portal151515
Topics to be included in a portal1005005000
Number of articles to display in announcements102525
Usage links and link groups setup for a portal51025
Download OpenAPI description
Languages
Servers
Production Server
https://api.egain.cloud/knowledge/portalmgr/v4

Article

Article APIs

Operations

Article Lists

Article List APIs

Operations

Bookmark

Bookmark APIs

Operations

Guided Help

Guided Help APIs

Operations

Portal

Portal API

Operations

Hybrid Search

Request

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...
)
Path
portalIDstring[ 7 .. 20 ] characters^[a-zA-Z0-9]{2,4}-\d{4,15}$required

The ID of the portal being accessed.

A portal ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits.

Example: PROD-1000
Query
qstring[ 1 .. 1024 ] characters^[\w\W]+$required

The search query string. The string must be escaped as required by the URL syntax rules.

Example: q=What is a loan?
$filter[userProfileID]string[ 7 .. 20 ] characters^[a-zA-Z0-9]{2,4}-\d{4,15}$

The ID of the user profile.

Example: $filter[userProfileID]=PROD-1030
$langstringrequired

The language that describes the details of a resource. Resources available in different languages may differ from each other.

If lang is not passed, then the portal's default language is used.

Enum"en-US""fr-FR""en-GB""es-ES""it-IT""nl-NL""da-DA""sv-SE""pt-PT""fi-FI"
Example: $lang=en-US
$filter[tags]object[ 1 .. 20 ] properties

An object where each key is a Category Tag ID (numeric string),
and each value is an array of Tag IDs for that category. Note:

  • The '$filter[tags]' query parameter JSON value should be url encoded.
  • Some developer tools for invoking APIs may not url encode the '$filter[tags]' query parameter JSON value by default. Ensure that only url encoded values are used.
  • Example of JSON value: {"BASE-40845":["BASE-40849","BASE-40853"]}
  • Example of URL encoded value: %7B%22BASE-40845%22%3A%5B%22BASE-40849%22%2C%22BASE-40853%22%5D%7D
Example: PROD-1234=PROD-2000,PROD-2003&PROD-2005=PROD-2007
$filter[topicIds]Array of strings[ 1 .. 20 ] items

An array of topic IDs. It is used to restrict search results to specific topics.

articleCustomAdditionalAttributesstring[ 1 .. 4000 ] characters

One or more comma-separated names for article custom attributes defined by the user to be returned.

$pagenuminteger(int64)[ 1 .. 1 ]

Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.

Default 1
$pagesizeinteger(int64)[ 1 .. 30 ]

Pagination parameter that specifies the number of results per page. Used in conjunction with $pagenum.

Default 20
curl -i -X GET \
  'https://api.egain.cloud/knowledge/portalmgr/v4/PROD-1000/search?q=What+is+a+loan%3F&%24filter%5BuserProfileID%5D=PROD-1030&%24lang=en-US&PROD-1234=PROD-2000%2CPROD-2003&PROD-2005=PROD-2007&%24filter%5BtopicIds%5D=string&articleCustomAdditionalAttributes=string&%24pagenum=1&%24pagesize=20' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Successful response

Bodyapplication/json
searchResultsobjectrequired

Top search results with relevance scores

searchResults.​articleArray of objects(ArticleAISearchResult)[ 1 .. 50 ] items
paginationInfoobject(PaginationInfo)
Response
application/json
{ "searchResults": { "article": [] } }

Suggestion

Suggestion APIs

Operations

Topic

Topic APIs

Operations

User Details

User Details APIs

Operations

User Milestones

User Milestones APIs

Operations

User Profile

UserProfile APIs

Operations

Federated Search Event

Federated Search Event API

Operations

Connectors Search Events

Connectors Search Event APIs

Operations

Attachment

Attachment Upload API

Operations

Export

Content Export APIs

Operations