Create Knowledge Base API

This API endpoint enables the creation of a new knowledge base, providing a foundation for storing and organizing information.

Endpoint:

https://openapi.woice.ai/api/knowledge-base

Authentication

All API requests necessitate authorization using a Bearer token included in the header.

Authorization: Bearer <your_token>

Request Type:

POST

Request Body

ParameterTypeRequiredDescription
namestringYesThe name of the knowledge base to be created

Example Request

{
    "name": "My First Knowledge Base"
}

Example Response (Success)

Status Code: 201

{
  "message": "New knowledgebase created successfully.",
  "data": {
    "knowledgeBase": {
      "id": 29,
      "user_id": 11,
      "name": "My First Knowledge-base",
      "files": null,
      "knowledge_base_api_id": null,
      "status": "pending",
      "knowledgebase_contents": []
    }
  }
}