Get a document (article or category) by URL path

Prev Next
Get
/v2/Project/Document
Security
API Key: api_token
Header parameter nameapi_token

The API token used for authenticating the request. This must be passed as a header parameter. To generate an API token, go to Settings > Knowledge base portal > API tokens. This token must correspond to a valid workspace and permission level.

Query parameters
url
string

The relative URL path (e.g., "/workspace/docs/en/document-slug")

applyRedirection
boolean

When set to true, redirection rules are applied if the requested document has an active redirect. If a redirect is required, a 302 (Moved temporarily) response is returned with the new URL in the Location header. Default: true.

Defaulttrue
Responses
200

Document retrieved successfully

Expand All
object

Response containing a document (article or category) retrieved by URL path

data
object | null

Contains details of the retrieved document, which can be an article or a category.

document_type
integer (int32)

Indicates whether the retrieved document is an article or a category. Valid values: 0 - Article, 1 - Category

Valid values[ 0, 1 ]
category
object | null

Contains information about the category if the DocumentType is a Category.

id
string | null

The unique ID of the document.

name
string | null

The Name of the document.

description
string | null

A short description or summary of the document.

project_version_id
string | null

The ID of the project version where the document is located.

order
integer (int32)

The position the category inside the parent category

parent_category_id
string | null

The ID of the parent category containing this document. Returns null for top-level categories.

hidden
boolean

Indicates if the category is visible on the site ( If "false," all the child categories and articles will be hidden as well )

slug
string | null

The slug (URL-friendly identifier) of the document.

content
string | null

The document content in Markdown format. Populated when the editor type is Markdown.

enable_rtl
boolean

Returns true if right-to-left text alignment is enabled for the selected language for the document.

html_content
string | null

The document content in HTML format. Populated when the editor type is WYSIWYG (HTML). For Markdown editors, this field is read-only.

version_number
integer (int32)

The version number of the document currently fetched.

category_type
integer (int32)

The editor type used for the document. Valid values: 0 - Markdown, 1 - WYSIWYG(HTML), 2 - Advanced WYSIWYG

Valid values[ 0, 1, 2 ]
created_at
string (date-time) | null

The date and time when the document was created.

modified_at
string (date-time) | null

The date and time when the document was last modified.

status
integer (int32) | null

The status of the page type category: 0 - Draft, 3 - Published

Valid values[ 0, 3 ]
content_type
integer (int32) | null

The editor type used for the document. Valid values: 0 - Markdown, 1 - WYSIWYG(HTML), 2 - Advanced WYSIWYG

Valid values[ 0, 1, 2 ]
current_workflow_status_id
string | null

The current workflow status ID of the document.

lang_code
string | null

The language code of the category

available_languages
Array of object (AvailableLanguageInfo) | null

Lists the languages the article or category is available in, along with their translation status and slug

object

Represents information about an available language translation for an article or category.

lang_code
string | null

The language code of the translated document.

url
string | null

The URL of the translated document.

translation_status
integer (int32)

The translation status of the document. Valid values: 0 - None, 1 - Need Translation, 2 - Translated, 3 - In Progress

Valid values[ 0, 1, 2, 3 ]
settings
object | null

Contains SEO settings and exclusion preferences for the document.

seo_title
string | null

The SEO title of the document.

description
string | null

The SEO description of the document.

exclude_from_external_search
boolean

Returns true if the document is excluded from external search engines. When enabled, Document360 automatically adds a robots meta tag and removes the document from the sitemap it generates.

security_visibility
integer (int32) | null

Indicates the visibility level of the article.Valid values are: 0 - Public(accessible to all readers) 1 - Private(accessible only to authenticated users or specific teams).

Valid values[ 0, 1, 2 ]
authors
Array of object (ContributorInfoCustomer) | null
object
id
string | null

The unique identifier of the contributor.

first_name
string | null

The contributor’s first name.

last_name
string | null

The contributor’s last name.

email_id
string | null

The email address of the contributor.

profile_logo_url
string | null

The profile logo Url of the contributor.

articles
Array of object (ArticleSimpleDataCustomer) | null

The list of articles attached to this category

object
id
string | null

The ID of the article

title
string | null

The article title

public_version
integer (int32)

The article version number(revision) that is currently published

latest_version
integer (int32)

The latest version number of this article

language_code
string | null Deprecated

The default language code

hidden
boolean

Indicates if the article is visible on the site

status
integer (int32)

The status of the article: 0 - Draft, 3 - Published

Valid values[ 0, 3 ]
order
integer (int32)

The position of the article inside the parent category

slug
string | null

The slug of the article

content_type
integer (int32) | null

The content type of the article: Markdown = 0, Wysiwyg = 1, Block = 2

Valid values[ 0, 1, 2 ]
translation_option
integer (int32)

The Translation status of the article

Valid values[ 0, 1, 2, 3 ]
is_shared_article
boolean

True indicates that the article is shared

modified_at
string (date-time) | null

Article modified date time

current_workflow_status_id
string | null

Current Workflow status of the article

child_categories
Array of object (CategoryDataCustomer) | null

The list of categories attached to this category

object
articles
Array of object (ArticleSimpleDataCustomer) | null

The list of articles attached to this category

object
id
string | null

The ID of the article

title
string | null

The article title

public_version
integer (int32)

The article version number(revision) that is currently published

latest_version
integer (int32)

The latest version number of this article

language_code
string | null Deprecated

The default language code

hidden
boolean

Indicates if the article is visible on the site

status
integer (int32)

The status of the article: 0 - Draft, 3 - Published

Valid values[ 0, 3 ]
order
integer (int32)

The position of the article inside the parent category

slug
string | null

The slug of the article

content_type
integer (int32) | null

The content type of the article: Markdown = 0, Wysiwyg = 1, Block = 2

Valid values[ 0, 1, 2 ]
translation_option
integer (int32)

The Translation status of the article

Valid values[ 0, 1, 2, 3 ]
is_shared_article
boolean

True indicates that the article is shared

modified_at
string (date-time) | null

Article modified date time

current_workflow_status_id
string | null

Current Workflow status of the article

child_categories
Array of object (CategoryDataCustomer) | null

The list of categories attached to this category

object Recursive
id
string | null

The ID of the category

name
string | null

Name of the category

description
string | null

Description of the category

project_version_id
string | null

The ID of the project version where this category is located

order
integer (int32)

The position the category inside the parent category

parent_category_id
string | null

The ID of the parent category ( null if top-level )

hidden
boolean

Indicates if the category is visible on the site ( If "false," all the child categories and articles will be hidden as well )

icon
string | null

Unicode representation of the icon or image URL

slug
string | null

The slug of the category

language_code
string | null

Language code of the category

category_type
integer (int32)

0 - Folder, 1 - Page, 2 - Index

Valid values[ 0, 1, 2 ]
created_at
string (date-time) | null

Category created date time

modified_at
string (date-time) | null

Category modified date time

status
integer (int32) | null

The status of the page type category: 0 - Draft, 3 - Published

Valid values[ 0, 3 ]
content_type
integer (int32) | null

The content type of the page type category: Markdown = 0, Wysiwyg = 1, Block = 2

Valid values[ 0, 1, 2 ]
current_workflow_status_id
string | null

Current Workflow status of the article

article
object | null

Contains information about the category if the DocumentType is a Article.

id
string | null

The unique ID of the document.

title
string | null

The title of the document.

content
string | null

If the article editor is Markdown, then the article content will be present in this property

html_content
string | null

If the article editor is WYSIWYG (HTML), then the content will be present in this property. Note: Markdown editor will also have HTML content (read-only).

category_id
string | null

The ID of the article's parent category

project_version_id
string | null

The ID of the project version where the article is located

version_number
integer (int32)

The currently fetched version number of the article

public_version
integer (int32)

The currently published version number of the article

latest_version
integer (int32)

The latest version number of the article

enable_rtl
boolean

Returns true if right-to-left text alignment is enabled for the selected language for the document.

hidden
boolean

False indicates that the article is visible on the site

status
integer (int32)

The status of the article: 0 - Draft, 3 - Published

Valid values[ 0, 3 ]
order
integer (int32)

The position inside the parent category

created_by
string | null

The position of the document within its parent category.

authors
Array of object (ContributorInfoCustomer) | null

The list of contributors who have authored or modified the document. Each object includes contributor details such as name, email, and role.

object
id
string | null

The unique identifier of the contributor.

first_name
string | null

The contributor’s first name.

last_name
string | null

The contributor’s last name.

email_id
string | null

The email address of the contributor.

profile_logo_url
string | null

The profile logo Url of the contributor.

created_at
string (date-time)

The date and time when the document was created.

modified_at
string (date-time)

The date and time when the document was last modified.

slug
string | null

The slug (URL-friendly identifier) of the document.

is_fall_back_content
boolean

Returns true if the document is a fallback from the default language when the requested language version is unavailable.

description
string | null

A short description or summary of the document.

category_type
integer (int32) | null

0 - Folder, 1 - Page, 2 - Index

Valid values[ 0, 1, 2 ]
content_type
integer (int32) | null

The editor type used for the document. Valid values: 0 - Markdown, 1 - WYSIWYG(HTML), 2 - Advanced WYSIWYG

Valid values[ 0, 1, 2 ]
is_shared_article
boolean

Returns true if the document is shared through private sharing.

translation_option
integer (int32)

The translation status of the document. Valid values: 0 - None, 1 - Need Translation, 2 - Translated, 3 - In Progress

Valid values[ 0, 1, 2, 3 ]
url
string | null

The fully qualified public URL of the document.

current_workflow_status_id
string | null

The current workflow status ID of the document.

lang_code
string | null

The language code of the document.

available_languages
Array of object (AvailableLanguageInfo) | null

Lists the languages in which the document is available, along with their translation status and URL. Each object includes:

object

Represents information about an available language translation for an article or category.

lang_code
string | null

The language code of the translated document.

url
string | null

The URL of the translated document.

translation_status
integer (int32)

The translation status of the document. Valid values: 0 - None, 1 - Need Translation, 2 - Translated, 3 - In Progress

Valid values[ 0, 1, 2, 3 ]
settings
object | null

Contains SEO settings and exclusion preferences for the document.

seo_title
string | null

The SEO title of the document.

description
string | null

The SEO description of the document.

exclude_from_external_search
boolean

Returns true if the document is excluded from external search engines. When enabled, Document360 automatically adds a robots meta tag and removes the document from the sitemap it generates.

security_visibility
integer (int32)

Indicates the visibility level of the article.Valid values are: 0 - Public(accessible to all readers) 1 - Private(accessible only to authenticated users or specific teams).

Valid values[ 0, 1, 2 ]
extension_data
object | null

Extension data for customer API response

success
boolean

Indicates the status of the API response. A value of true signifies that the request was successfully processed, while false indicates a failure or error occurred.

errors
Array of object (BaseError) | null

A list of errors encountered during the API request. Each error object provides details about the problem, including an error code and a message explaining the issue. This field is populated when the request fails or encounters issues.

object
extension_data
object | null

This is the Extension data object

stack_trace
string | null

A technical trace showing where the error occurred within the system. Intended for backend debugging.

description
string | null

A clear message explaining what caused the error. This helps quickly understand what went wrong.

error_code
string | null

A short, predefined code that identifies the type of error. Useful for logging the error or raising a support request.

custom_data
object | null

Any structured metadata for the error object.

property*
warnings
Array of object (BaseWarning) | null

A list of warnings generated during the API request. These are non-critical issues or recommendations that might affect the request but won't stop it from processing. Each warning object provides a message to inform the user of potential problems.

object
extension_data
object | null

Extension Data for customer Api warning

description
string | null

A plain message that describes the warning and helps understand what should be reviewed.

warning_code
string | null

A short, predefined code that uniquely identifies the warning type.

information
Array of object (BaseInformation) | null

Contains additional non-critical information relevant to the request or response. This field provides extra details that might assist in understanding the context of the API response but is not essential for processing.

object
extension_data
object | null

Extension data for customer Api response information

description
string | null

A plain message offering helpful context about the response, such as confirmation of fallback logic or skipped operations.

302

Document has been redirected to a new URL

Export Documentation - 400 Status response.

The below example shows that the given exportId is Invalid. Track your export Id form /v2/Project/Export.

{
  "extension_data": null,
  "success": true,
  "errors": [
    {
      "extension_data": null,
      "stack_trace": null,
      "description": "Invalid export id",
      "error_code": "400",
      "custom_data": null
    }
  ],
  "warnings": [],
  "information": []
}
Expand All
object
extension_data
object | null

Extension data for customer API response

success
boolean

Indicates the status of the API response. A value of true signifies that the request was successfully processed, while false indicates a failure or error occurred.

errors
Array of object (BaseError) | null

A list of errors encountered during the API request. Each error object provides details about the problem, including an error code and a message explaining the issue. This field is populated when the request fails or encounters issues.

object
extension_data
object | null

This is the Extension data object

stack_trace
string | null

A technical trace showing where the error occurred within the system. Intended for backend debugging.

description
string | null

A clear message explaining what caused the error. This helps quickly understand what went wrong.

error_code
string | null

A short, predefined code that identifies the type of error. Useful for logging the error or raising a support request.

custom_data
object | null

Any structured metadata for the error object.

property*
warnings
Array of object (BaseWarning) | null

A list of warnings generated during the API request. These are non-critical issues or recommendations that might affect the request but won't stop it from processing. Each warning object provides a message to inform the user of potential problems.

object
extension_data
object | null

Extension Data for customer Api warning

description
string | null

A plain message that describes the warning and helps understand what should be reviewed.

warning_code
string | null

A short, predefined code that uniquely identifies the warning type.

information
Array of object (BaseInformation) | null

Contains additional non-critical information relevant to the request or response. This field provides extra details that might assist in understanding the context of the API response but is not essential for processing.

object
extension_data
object | null

Extension data for customer Api response information

description
string | null

A plain message offering helpful context about the response, such as confirmation of fallback logic or skipped operations.

400

Bad request - malformed URL or missing required segments

Export Documentation - 400 Status response.

The below example shows that the given exportId is Invalid. Track your export Id form /v2/Project/Export.

{
  "extension_data": null,
  "success": true,
  "errors": [
    {
      "extension_data": null,
      "stack_trace": null,
      "description": "Invalid export id",
      "error_code": "400",
      "custom_data": null
    }
  ],
  "warnings": [],
  "information": []
}
Expand All
object
extension_data
object | null

Extension data for customer API response

success
boolean

Indicates the status of the API response. A value of true signifies that the request was successfully processed, while false indicates a failure or error occurred.

errors
Array of object (BaseError) | null

A list of errors encountered during the API request. Each error object provides details about the problem, including an error code and a message explaining the issue. This field is populated when the request fails or encounters issues.

object
extension_data
object | null

This is the Extension data object

stack_trace
string | null

A technical trace showing where the error occurred within the system. Intended for backend debugging.

description
string | null

A clear message explaining what caused the error. This helps quickly understand what went wrong.

error_code
string | null

A short, predefined code that identifies the type of error. Useful for logging the error or raising a support request.

custom_data
object | null

Any structured metadata for the error object.

property*
warnings
Array of object (BaseWarning) | null

A list of warnings generated during the API request. These are non-critical issues or recommendations that might affect the request but won't stop it from processing. Each warning object provides a message to inform the user of potential problems.

object
extension_data
object | null

Extension Data for customer Api warning

description
string | null

A plain message that describes the warning and helps understand what should be reviewed.

warning_code
string | null

A short, predefined code that uniquely identifies the warning type.

information
Array of object (BaseInformation) | null

Contains additional non-critical information relevant to the request or response. This field provides extra details that might assist in understanding the context of the API response but is not essential for processing.

object
extension_data
object | null

Extension data for customer Api response information

description
string | null

A plain message offering helpful context about the response, such as confirmation of fallback logic or skipped operations.

404

Document not found

Export Documentation - 400 Status response.

The below example shows that the given exportId is Invalid. Track your export Id form /v2/Project/Export.

{
  "extension_data": null,
  "success": true,
  "errors": [
    {
      "extension_data": null,
      "stack_trace": null,
      "description": "Invalid export id",
      "error_code": "400",
      "custom_data": null
    }
  ],
  "warnings": [],
  "information": []
}
Expand All
object
extension_data
object | null

Extension data for customer API response

success
boolean

Indicates the status of the API response. A value of true signifies that the request was successfully processed, while false indicates a failure or error occurred.

errors
Array of object (BaseError) | null

A list of errors encountered during the API request. Each error object provides details about the problem, including an error code and a message explaining the issue. This field is populated when the request fails or encounters issues.

object
extension_data
object | null

This is the Extension data object

stack_trace
string | null

A technical trace showing where the error occurred within the system. Intended for backend debugging.

description
string | null

A clear message explaining what caused the error. This helps quickly understand what went wrong.

error_code
string | null

A short, predefined code that identifies the type of error. Useful for logging the error or raising a support request.

custom_data
object | null

Any structured metadata for the error object.

property*
warnings
Array of object (BaseWarning) | null

A list of warnings generated during the API request. These are non-critical issues or recommendations that might affect the request but won't stop it from processing. Each warning object provides a message to inform the user of potential problems.

object
extension_data
object | null

Extension Data for customer Api warning

description
string | null

A plain message that describes the warning and helps understand what should be reviewed.

warning_code
string | null

A short, predefined code that uniquely identifies the warning type.

information
Array of object (BaseInformation) | null

Contains additional non-critical information relevant to the request or response. This field provides extra details that might assist in understanding the context of the API response but is not essential for processing.

object
extension_data
object | null

Extension data for customer Api response information

description
string | null

A plain message offering helpful context about the response, such as confirmation of fallback logic or skipped operations.