The Popular Articles API allows a user to retrieve popular articles.
- Only displayable articles are returned. An Article is displayable when "Include in browse on portals" property is enable for the Article.
- Agent permissions: The following permissions are required if user is an Agent:
- If Article has Access Tags, Article must be available for agent's current user profile.
- If Article has Publish Views, at least one edition of Article must be available for agent's current user profile.
- If Article has filters and tags query parameter provided, Article filters must match provided tags or tag groups.
- Customer permissions: The following permissions are required if user is a Customer:
- If Article has Access tags:
- Portal must have default user profile, and;
- Article must be available for portal's default user profile.
- If Article has Publish Views:
- Portal must have default user profile, and;
- At least one edition must be available for portal's default user profile.
- If Article has filters and tags query parameter provided, Article filters must match provided tags or tag groups.
The attributes of an Article to be returned in addition to the default list of attributes, listed below. Multiple additional attributes can be specified using a comma-separated list. Passing 'all' will return all attributes.
These Article attributes are always returned:
| Name | Description |
|---|---|
| id | The ID of the Article. |
| name | The name of the Article. |
| articleType | The Article Type and its attributes. |
| createdBy | The ID, first name, middle name and last name of the user that created the Article. |
| createdDate | The date that the Article was created. |
| hasAttachments | True: The Article has one or more attachments. False: The Article does not have any attachments. |
| languageCode | The language code of the Article language. |
| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. |
| modifiedDate | The date that the Article was last modified on. |
| link | The link object, used to retrieve the details of the Article. |
| versionId | The ID of the Article version that is returned. |
The unique numeric identifier for a tenant, used in self-service functionality as well as third-party integrations.
Note: The x-ext-integration-id and x-ext-interaction-id headers must always be provided together and cannot be supplied independently.
The x-egain-activity-id may be provided on its own, or it may be provided along with both x-ext-integration-id and x-ext-interaction-id.
A unique interaction identifier from other CRM applications.
Note: The x-ext-integration-id and x-ext-interaction-id headers must always be provided together and cannot be supplied independently.
The x-egain-activity-id may be provided on its own, or it may be provided along with both x-ext-integration-id and x-ext-interaction-id.
- oAuthUser
- oAuthOnBehalfOfUser
- oAuthCustomer
- oAuthOnBehalfOfCustomer
- oAuthAnonymousCustomer
curl -i -X GET \
'https://api.egain.cloud/knowledge/portalmgr/v4/portals/PROD-1000/populararticles?%24filter%5BtopicId%5D=PROD-1067&%24lang=en-US&%24filter%5Btags%5D=PROD-5381&%24pagenum=1&%24pagesize=10&articleResultAdditionalAttributes=averageRating' \
-H 'Accept-Language: en-US' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-egain-activity-id: 59237' \
-H 'x-ext-integration-id: 3155180e-0c13-43e9-9c38-e9045bcbf176' \
-H 'x-ext-interaction-id: 3155180e-0c13-43e9-9c38-e9045bcbf176'- Summary Attributes
- All Attributes
{ "articles": [ { … } ], "paginationInfo": { "count": 1, "pagenum": 1, "pagesize": 10 } }