- Portal Manager
- V4
- Get Articles in Topic
The Get Articles in Topic API allows a user to retrieve the browsable articles in a topic.
Only articles directly associated with the specified topic are returned. This API does not support hierarchical traversal across child topics (for example, T1 → T2 → T3); articles associated with child topics are not returned.
- Set the Article type’s parameter “Include in browse on portals” to "Yes" for an article to be returned by this API.
- Agents without a user profile and customers in a portal without a default user profile only have access to articles that:
- Do not contain any access tags.
- Do not contain any publish views.
- Contain published views without any associated tags.
- Agents with a user profile and customers in a portal with a default user profile have access to articles that:
- Do not contain any access tags.
- Do not contain any publish views.
- Contain publish views without any associated tags.
- Contain access tags that are also in the assigned user profiles.
- Contain publish views with associated tags that are also in the assigned user profiles.
- Agents with the following assigned actions can view updates to articles currently being processed in workflows:
- View Author Portal – Allows agents to view updates to articles at any stage in a workflow.
- View Staging Portal – Allows agents to view updates to articles in the Staging stage or a subsequent stage in a workflow.
The ID of the topic. It is used to restrict to a specific topic. Only articles directly associated with this topic are returned; hierarchical traversal across child topics is not supported.
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. |
Specifies extended attributes of an Article Result to be returned in the response. This parameter is used for specific metadata fields that are not included in the default response or the standard additional attributes list.
Note: The list of supported values for this parameter may be expanded in the future as more fields are added to the article result schema.
| Name | Description |
|---|---|
| availabilityDate | The date and time when the article becomes available for viewing. |
For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article 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.
- Production Serverhttps://api.egain.cloud/knowledge/portalmgr/v4/portals/{portalID}/articles
curl -i -X GET \
'https://api.egain.cloud/knowledge/portalmgr/v4/portals/PROD-1000/articles?searchProfileId=959500000204621&%24filter%5BtopicId%5D=PROD-1065&articleResultAdditionalAttributes=averageRating&articleResultExtendedAttributes=availabilityDate&%24filter%5Btags%5D=PROD-5381&workflowMilestone=publish&%24lang=en-US&%24pagenum=1&%24pagesize=10&%24sort=name&%24order=asc' \
-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'{ "articles": [ { … } ], "paginationInfo": { "count": 1, "pagenum": 1, "pagesize": 10 } }