Skip to content

Get An Article By Id With Content

Request

Overview

This API retrieves a single article or an article suggestion by its ID in a single language.

The response always includes the article summary representation; additional article properties are returned only when requested through the articleAdditionalAttributes query parameter.

Use the required versionSelector query parameter to control which article version is returned. If versionSelector is published, the latest published and available version of the requested article is returned. If versionSelector is latest, the latest version of the article is returned, which might be draft, published etc.

When versionSelector is latest:

  • If the article is checked out by another user, the latest checked-in version is returned.
  • If the article is checked out by the requesting user, the checked-out version is returned.

Note: Article suggestions cannot be published and therefore cannot be retrieved with versionSelector=published. Use versionSelector=latest to retrieve article suggestions.

If the requested article ID exists but has no applicable version, the API returns 204 No Content.

Some properties in the response schema are shown as allowing null, because null is how the Edit Article API removes them. This API does not return null for those properties — a property that has no value is omitted from the response.

Inline images

An image embedded in the article content is returned as a tag carrying a generated id and a signed src, with the attributes it was authored with preserved:

<img id="96ea5bd9-36dd-4771-aaa7-aa8cf794307e" src="https://api.egain.cloud/core/filemgr/v4/assets/download?signature=35674B764E7848586E786..." alt="Forgot password link" width="480" />
  • src can be fetched directly, including by a browser rendering the tag.
  • The signature in the image source URL is valid for 30 minutes. Once it expires, obtain a fresh URL from the File Manager Generate URL to download a file API, sending the image's id as fileId, article as application, and this article's ID as articleId.
  • Inline images are never listed in versions[].attachments. That array carries only the files attached to the version; an embedded image appears in content alone.

To change the article's inline images, send the content back through Edit Article, which keeps an image by its id, adds one by fileUploadId, and removes one when its tag is dropped.

Permissions

The user must have either the Author or Knowledge Base Manager role, or a custom role with View Folder action. Additionally:

  • To retrieve an article, the requesting user must have View Folder permission on the article's parent folder.
  • To retrieve an article suggestion, the user must either be the creator of the suggestion or be allowed to work on the suggestion through the article approval process.
Security
oAuthUser(Required scopes:
https://api.egain.cloud/auth/knowledge.contentmgr.read
)
or oAuthOnBehalfOfUser(Required scopes:
https://api.egain.cloud/auth/knowledge.contentmgr.onbehalfof.read
)
or oAuthClient(Required scopes:
https://api.egain.cloud/auth/.default
)
Path
articleIDstring, [ 7 .. 20 ] characters^[a-zA-Z0-9]{2,4}-\d{4,15}$required

The ID of the Article.

An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits.

Example:PROD-2996
Query
versionSelectorstringrequired

Controls which version of the article to return based on its position in the article workflow process. If published, the latest published and available version is returned. If latest, the very latest version is returned which might be draft, published etc.

Enum:"published""latest"
$langstring(KnowledgeBaseLanguageCode)required

The knowledge base language in which the article is retrieved. Must be one of the enabled Knowledge Base languages.

Enum:"ar-AE""bg-BG""cs-CZ""da-DK""de-AT""de-DE""el-GR""en-GB""en-US""es-ES"
Example:$lang=en-US
articleAdditionalAttributesArray of strings

Additional Article attributes to include in the response. By default only attributes marked as required in the response schema are returned. Multiple attributes can be requested as a comma-separated list of values.

Article-level attributes are requested directly by name, such as department or notes. Version-level attributes are prefixed with versions..

Items Enum:"department""created""macro""suggestionStatus""articleReviewDetails""lockedBy""language""notes""relatedQuestions""linkAlias"
Example:articleAdditionalAttributes=versions.content,versions.attachments,notes
expandMacrosboolean

Controls whether macros embedded in the article content are expanded in the response.

If true and the article content is requested through articleAdditionalAttributes=versions.content, all macros in the returned article content are expanded. If false, the article content is returned with the macros unexpanded.

This parameter has no effect when the article content is not requested.

Default:false
Example:expandMacros=true
Headers
Acceptstringrequired

The content type accepted by the client.

Default:"application/json"
Value:"application/json"
Accept-Languagestring(Language)required

The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).

Enum:"en-US""en-GB""es-ES""fr-FR""it-IT""de-DE""nl-NL""pt-BR""pt-PT""da-DK"
Example:en-US
curl -i -X GET \
  'https://api.egain.cloud/knowledge/contentmgr/v4/article/PROD-2996?versionSelector=published&%24lang=en-US&articleAdditionalAttributes=versions.content%2Cversions.attachments%2Cnotes&expandMacros=true' \
  -H 'Accept: application/json' \
  -H 'Accept-Language: en-US' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success

Headers
ETagstring, (date-time), [ 20 .. 24 ] characters^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$

UTC ISO-8601 timestamp identifying the resource version for use with the If-Match header on subsequent updates.

Example:"2026-04-15T09:00:00.000Z"
Bodyapplication/json
versionsArray of objects, = 1 items(Version)required

Only one article version relevant to the current context is returned in this list.

idstring, [ 7 .. 20 ] characters^[a-zA-Z0-9]{2,4}-\d{4,15}$read-onlyrequired

The ID of the article.

Example:"PROD-2996"
namestring, [ 1 .. 255 ] characters^(?!.*[^\u0020-\u003B\u003D\u003F-\u005F\u006...read-onlyrequired

The name of the article.

lastModifiedobject(DateAndUser)read-onlyrequired

Last modified date and user for the article.

createdobject(DateAndUser)read-only

Created date and created by user.

departmentobject(Department)read-only

Department the article belongs to.

macroobject or null(Macro)

Describes the Macro associated with the article. Macros are embeddable shortcuts to article content — they substitute lengthy or dynamic text with short values.

suggestionStatusobject(L10NString)read-only

Status of the suggestion. Applies only to article suggestions.

articleReviewDetailsobject(ArticleReviewDetails)read-only

Review and workflow information for the article.

lockedByobject(User)read-only

User who currently has the article checked out, if any.

languageobject(Language)

The knowledge-base language for this resource.

folderobject(Folder)required

The folder this article belongs to.

compliancePolicyobject or null(CompliancePolicy)

Compliance policy associated with the article; defines when users must complete the Read & Sign for an article.

notesArray of objects, <= 200 items(Note)read-only

Notes attached to the article.

relatedQuestionsArray of strings, <= 100 items

Related questions for the article.

linkAliasstring, <= 36 characters^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}...read-only

Alternate identifier for the article, used in article-to-article links within content.

customAttributesArray of objects, [ 0 .. 50 ] items(CustomAttribute)

Custom attribute values for this article. Each entry corresponds to an attribute definition that already exists in the system.

isPublishedVersionAvailablebooleanread-only

Whether the article has a published and available version.

isPublishedVersionExpiredbooleanread-only

Whether the article's published version is expired.

isPublishedVersionScheduledbooleanread-only

Whether the article has a published version scheduled to become available.

isLatestVersionInDraftbooleanread-only

Whether the latest version of the article is in draft state.

articleActionArray of objects(ArticleAction)read-only

Guided Help placements for this article. Each article action ties the article to a casebase, cluster, and profile so it participates in that guided help flow.

suggestionResolutionCodeobject(L10NString)read-only

Resolution applied when a suggestion is closed. Applies only to article suggestions.

Response

Request: GET /knowledge/contentmgr/v4/article/PROD-2996?versionSelector=published

{ "id": "PROD-2996", "name": "How to reset your password", "lastModified": { "date": "2026-04-18T14:30:00.000Z", "user": { … } }, "folder": { "id": "20240000000123", "name": "Account Management" }, "versions": [ { … } ] }