Unanswered Questions
Stores questions that did not receive a satisfactory answer from the knowledge base, scoped by project and knowledge base (namespace). All routes require authentication; the namespace must belong to the current project.
Unanswered question object
Defined by the Mongoose schema: id_project, namespace, and question are required; timestamps: true adds createdAt and updatedAt.
_id
String
Unique identifier of the unanswered question document.
id_project
String
Project identifier (set from the authenticated request).
namespace
String
Knowledge base identifier (same as KB id).
question
String
The user question text.
createdAt
String
Creation time (ISO date).
updatedAt
String
Last update time (ISO date)
Add an unanswered question
POST https://api.tiledesk.com/v3/:project_id/kb/unanswered
Creates a new unanswered question for the given knowledge base namespace.
Path Parameters
project_id
string
The Project Id is a unique code assigned to your project when you create it in Tiledesk.
Headers
Authorization
string
Authorization token. Basic Auth or JWT
Request Body
namespace
string
(Required) Knowledge base id the question refers to. Must belong to the project.
question
string
(Required) The question text to store.
Example
Count unanswered questions
GET https://api.tiledesk.com/v3/:project_id/kb/unanswered/count/:namespace
Returns the total number of unanswered questions for a namespace. In the API implementation, this route should be registered before the generic list route so that the path segment count is not interpreted as a namespace.
Path Parameters
project_id
string
The Project Id is a unique code assigned to your project when you create it in Tiledesk.
namespace
string
Knowledge base id.
Headers
Authorization
string
Authorization token. Basic Auth or JWT
Example
List unanswered questions
GET https://api.tiledesk.com/v3/:project_id/kb/unanswered/:namespace
Returns a paginated list of unanswered questions for a namespace. Default pagination: page 0, limit 20. Default sort: field createdAt, direction -1 (descending). direction is numeric: -1 for descending, 1 for ascending.
Path Parameters
project_id
string
The Project Id is a unique code assigned to your project when you create it in Tiledesk.
namespace
string
Knowledge base id.
Query Parameters
page
integer
Page index (0-based). Default: 0.
limit
integer
Page size. Default: 20.
sortField
string
Field to sort by (any field on the document, e.g. createdAt). Default: createdAt.
direction
integer
Sort direction (-1 or 1). Default: -1.
Headers
Authorization
string
Authorization token. Basic Auth or JWT
Example
Delete an unanswered question
DELETE https://api.tiledesk.com/v3/:project_id/kb/unanswered/:id
Deletes a single unanswered question by its document id. The question must belong to the current project.
Path Parameters
project_id
string
The Project Id is a unique code assigned to your project when you create it in Tiledesk.
id
string
The unanswered question document id (_id).
Headers
Authorization
string
Authorization token. Basic Auth or JWT
Example
Delete all unanswered questions for a namespace
DELETE https://api.tiledesk.com/v3/:project_id/kb/unanswered/namespace/:namespace
Removes every unanswered question stored for the given knowledge base namespace within the project.
Path Parameters
project_id
string
The Project Id is a unique code assigned to your project when you create it in Tiledesk.
namespace
string
Knowledge base id.
Headers
Authorization
string
Authorization token. Basic Auth or JWT
Example
Last updated