List Knowledgebase Tags
Retrieve a paginated list of knowledgebase tags for a project. **Permission required:** Training > Read
Retrieve a paginated list of knowledgebase tags for a project.
Permission required: Training > Read
Authorization
bearerToken
API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.
In: header
Request Body
application/json
Project identifier.
Results per page.
10Page number.
1Sort order.
"DESC""ASC" | "DESC"Search by tag name.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/getAllKnowledgebaseTags" \ -H "Content-Type: application/json" \ -d '{ "project_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }'{
"type": "RXSUCCESS",
"message": "Data Fetched Successfully!",
"total": 5,
"data": [
{
"id": 101,
"name": "pricing",
"project_id": 12345,
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T10:30:00.000Z"
}
]
}{
"type": "RXERROR",
"message": "string"
}{
"type": "RXERROR",
"message": "Invalid or expired API token"
}Create Knowledgebase Tag
Create a new knowledgebase tag for organizing training sources. If a tag with the same name already exists in the project, the existing tag is returned. **Permission required:** Training > Write
Assign Knowledgebase Tags
Assign tags to a training asset (URL, text, file, or media). This **replaces** all existing tags on the asset with the provided tags. **Permission required:** Training > Write