Tags
List Tags
This endpoint gets all tags from your Knowledge Base.
Copy
curl --location --request GET 'https://www.pacekb.com/api/v2/tags' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
Copy
{
"success": true,
"data": [
{
"other_tags": [
{
"language": "fr"
}
],
"id": "<id>",
"name": "Getting Started",
"slug": "getting-started",
"users_tags_created_byTousers": {
"username": "benj",
"first_name": "Ben",
"last_name": "Jenkins",
"email_address": "ben@example.com"
},
"tag_relationship": [
{
"added_by": "<id>",
"added_date": "2023-06-05T20:42:23.805Z",
"article_id": "<id>",
"id": "<id>",
"site_id": "<id>",
"tag_id": "<id>"
}
]
}
]
}
Response
Indicates whether the call was successful.
If there’s an error an accompanying error message will be visible
List of all tags
The unique ID of the tag
The name of the tag
The slug of the tag
An array of all languages associated with this tag in the format of {language: ‘fr’}
Array of all tag relationships (Used to count how many published articles are using this tag)
Array of all language codes your Knowledge Base has enabled
Copy
curl --location --request GET 'https://www.pacekb.com/api/v2/tags' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
Copy
{
"success": true,
"data": [
{
"other_tags": [
{
"language": "fr"
}
],
"id": "<id>",
"name": "Getting Started",
"slug": "getting-started",
"users_tags_created_byTousers": {
"username": "benj",
"first_name": "Ben",
"last_name": "Jenkins",
"email_address": "ben@example.com"
},
"tag_relationship": [
{
"added_by": "<id>",
"added_date": "2023-06-05T20:42:23.805Z",
"article_id": "<id>",
"id": "<id>",
"site_id": "<id>",
"tag_id": "<id>"
}
]
}
]
}
Copy
curl --location --request GET 'https://www.pacekb.com/api/v2/tags' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
Copy
{
"success": true,
"data": [
{
"other_tags": [
{
"language": "fr"
}
],
"id": "<id>",
"name": "Getting Started",
"slug": "getting-started",
"users_tags_created_byTousers": {
"username": "benj",
"first_name": "Ben",
"last_name": "Jenkins",
"email_address": "ben@example.com"
},
"tag_relationship": [
{
"added_by": "<id>",
"added_date": "2023-06-05T20:42:23.805Z",
"article_id": "<id>",
"id": "<id>",
"site_id": "<id>",
"tag_id": "<id>"
}
]
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.