GET
/
api
/
v1
/
knowledge
/
unity
/
{id}
curl --request GET \
  --url https://chat.api.toolzz.com.br/api/v1/knowledge/unity/{id} \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "unityId": "<string>",
      "kbCreatorId": "<string>",
      "kbInstitutionId": "<string>",
      "kbStatus": 123,
      "kbName": "<string>",
      "kbDescription": "<string>",
      "kbIconImg": "<string>",
      "kbFolder": [
        {
          "id": "<string>",
          "name": "<string>",
          "knowLedgeBaseId": "<string>",
          "isRoot": true,
          "institutionId": "<string>",
          "knowLedgeBaseFile": [
            {
              "id": "<string>",
              "createdAt": "<string>",
              "updatedAt": "<string>",
              "institutionId": "<string>",
              "fileName": "<string>",
              "internalStorageUrl": "<string>",
              "url": "<string>",
              "size": 123,
              "extension": "<string>",
              "maskName": "<string>",
              "integrationId": "<string>",
              "customData": [
                {}
              ]
            }
          ],
          "_count": {
            "knowLedgeBaseFile": 123
          }
        }
      ],
      "documentsInfo": {
        "size": 123,
        "documentCount": 123
      },
      "isActivated": true
    }
  ],
  "knowledgeBaseCount": 123,
  "activeCount": 123,
  "knowledgeBaseLimit": 123
}

Body Description

id
string
required

The Unity ID

Response Description

The endpoint returns a response in JSON format with a confirmation response to the request.

items
array
required

List of knowledge bases.

knowledgeBaseCount
number
required

Total number of knowledge bases.

activeCount
number
required

Number of active knowledge bases.

knowledgeBaseLimit
number
required

Maximum allowed knowledge bases.

Segurança

Para acessar este endpoint, é necessário enviar um token de acesso válido através do cabeçalho de autorização (Authorization) da requisição. Além disso, a API é protegida por outras medidas de segurança para proteger os dados dos usuários.

Code Response

Exemples of security error