What is an article identifier?
Article identifiers are unique values used to reference specific articles in your knowledge base when making API requests. Understanding the different types of identifiers and how to find them is essential for working with the NeetoKB API. NeetoKB supports three types of identifiers for articles, each serving different purposes:- ID (UUID) - Permanent unique identifier.
Example:
285c4bab-3ca4-4a24-9288-73392a04554e
- Slug - Human-readable URL identifier.
Example:
getting-started-guide
- Permalink - Stable short identifier for updates.
Example:
a-d17829fc
- Using the API - Programmatically retrieve all articles and their identifiers.
- From the URL - Extract identifier directly from your browser’s address bar.
Permalinks cannot be retrieved via the API or extracted from the URL. Refer to the help article for more information.
Method 1: Using the API Endpoint
The List all articles API endpoint allows you to retrieve a list of all articles in your workspace, including their identifiers. This is particularly useful when you need to programmatically access or retrieve the identifiers of all available articles.Step-by-Step Instructions
1
Make the API request
Send a
GET
request to the List all articles API endpoint, including your API key in the request header.2
Parse the response
The response will contain an array of articles, each with
id
, slug
, and other fields.Example:3
Extract the article identifier
Here the article identifiers for the
Getting Started Guide
are:- ID:
3c90c3cc-0d44-4b50-8888-8dd25736052a
- Slug:
getting-started
The
articles
array contains all articles in your workspace. If you have multiple articles, you may want to filter by title or other properties to find the specific article you need.Method 2: From the URL
Article identifiers appear in the URL when you view an article in your workspace. This method provides only the slug, not the article’s ID or permalink. For example, in the URL:Step-by-Step Instructions
1
Navigate to your article
Log into your NeetoKB workspace and navigate to the article you want to work with.
2
Locate the article URL
Once you’re viewing the article, look at your browser’s address bar. The URL will contain the article identifier.
3
Extract the article identifier
The article identifier is typically found in the URL path. Look for a pattern like:The
{article-identifier}
part is what you need.Examples
Here are some examples of how article identifiers appear in URLs & permalinks:URL Example | Article Identifier |
---|---|
https://mycompany.neetokb.com/admin/categories/getting-started/articles/user-guide/edit | user-guide |
https://support.neetokb.com/admin/categories/faq/articles/troubleshooting-tips/edit | troubleshooting-tips |
https://docs.neetokb.com/admin/categories/developer-guides/articles/api-integration-guide/edit | api-integration-guide |
Permalink Example | Article Identifier |
---|---|
https://mycompany.neetokb.com/p/a-84af178b | a-84af178b |
https://support.neetokb.com/p/b-93cd289f | b-93cd289f |
https://docs.neetokb.com/p/c-47de12ac | c-47de12ac |