HighLevel Knowledge Base API

Documentation for Knowledge Base API

Operations 5

GET /knowledge-bases/{knowledgeBaseId} Get knowledge base by ID #
DELETE /knowledge-bases/{knowledgeBaseId} Delete a knowledge base #
PUT /knowledge-bases/{id} Update a knowledge base #
GET /knowledge-bases/ Get all knowledge bases for a location by location Id (paginated) #
POST /knowledge-bases/ Create a new knowledge base (max 15 knowledge bases per location) #

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-campaign-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-ad-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-segment-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-lead-form-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-conversion-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-adset-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-estimate-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-estimate-template-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-invoice-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-estimate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-text2-pay-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-estimates-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-post-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-post-create-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-search-post-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-set-accounts-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-bulk-delete-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-by-location-id-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-calendar-create-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-calendar-update-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-appointment-create-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-appointment-edit-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-calendar-notifications-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-calendar-notification-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-product-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-price-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-price-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-product-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-product-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-product-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-subscription-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-txn-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-order-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-coupon-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-connect-custom-providers-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-custom-providers-response-schema-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-available-shipping-rates-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-shipping-rate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-shipping-rate-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-shipping-carrier-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-shipping-carrier-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-store-setting-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-send-message-body-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-message-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-process-message-body-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-email-message-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-get-conversation-by-id-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-user-subscription-change-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-location-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-location-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-location-successful-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-recurring-task-create-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-custom-fields-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-recurring-task-update-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-upsert-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-create-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-contact-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-tags-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-update-tags-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/highlevel/refs/heads/main/json-schema/highlevel-contacts-business-update-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/highlevel:highlevel-knowledge-base-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

highlevel-knowledge-base-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Knowledge Base API
  description: Documentation for Knowledge Base API
  version: '1.0'
  contact: {}
servers:
- url: https://services.leadconnectorhq.com
tags:
- name: Knowledge Base
  description: Documentation for Knowledge Base API
paths:
  /knowledge-bases/{knowledgeBaseId}:
    get:
      operationId: getKnowledgeBaseById
      summary: Get knowledge base by ID
      parameters:
      - name: Authorization
        in: header
        description: Access Token
        required: true
        schema:
          type: string
          example: Bearer 9c48df2694a849b6089f9d0d3513efe
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-04-15'
      - name: knowledgeBaseId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Knowledge base by ID retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetKnowledgeBaseByIdResponseDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDTO'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedDTO'
      tags:
      - Knowledge Base
      security:
      - Location-Access: []
    delete:
      operationId: deleteKnowledgeBase
      summary: Delete a knowledge base
      parameters:
      - name: Authorization
        in: header
        description: Access Token
        required: true
        schema:
          type: string
          example: Bearer 9c48df2694a849b6089f9d0d3513efe
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-04-15'
      - name: knowledgeBaseId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Knowledge base deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteKnowledgeBaseResponseDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDTO'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedDTO'
      tags:
      - Knowledge Base
      security:
      - Location-Access: []
  /knowledge-bases/{id}:
    put:
      operationId: updateKnowledgeBase
      summary: Update a knowledge base
      parameters:
      - name: Authorization
        in: header
        description: Access Token
        required: true
        schema:
          type: string
          example: Bearer 9c48df2694a849b6089f9d0d3513efe
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-04-15'
      - name: id
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateKnowledgeBaseDTO'
      responses:
        '200':
          description: Knowledge base updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateKnowledgeBaseResponseDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDTO'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedDTO'
      tags:
      - Knowledge Base
      security:
      - Location-Access: []
  /knowledge-bases/:
    get:
      operationId: listAllKnowledgeBasesPaginated
      summary: Get all knowledge bases for a location by location Id (paginated)
      parameters:
      - name: Authorization
        in: header
        description: Access Token
        required: true
        schema:
          type: string
          example: Bearer 9c48df2694a849b6089f9d0d3513efe
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-04-15'
      - name: locationId
        required: true
        in: query
        schema:
          type: string
      - name: query
        required: false
        in: query
        description: search query for knowledge base name
        schema:
          type: string
      - name: limit
        required: false
        in: query
        description: Maximum number of knowledge bases to return
        schema:
          default: 20
          example: 20
          type: number
      - name: lastKnowledgeBaseId
        required: false
        in: query
        description: ID of the last knowledge base from the previous page (for pagination)
        schema:
          example: ZwTB8S0yo0FIBY6OPZTD
          type: string
      responses:
        '200':
          description: Paginated knowledge bases retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllKnowledgeBasesPaginatedResponseDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDTO'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedDTO'
      tags:
      - Knowledge Base
      security:
      - Location-Access: []
    post:
      operationId: createKnowledgeBase
      summary: Create a new knowledge base (max 15 knowledge bases per location)
      parameters:
      - name: Authorization
        in: header
        description: Access Token
        required: true
        schema:
          type: string
          example: Bearer 9c48df2694a849b6089f9d0d3513efe
      - name: Version
        in: header
        description: API Version
        required: true
        schema:
          type: string
          enum:
          - '2021-04-15'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateKnowledgeBaseDTO'
      responses:
        '201':
          description: Knowledge base created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateKnowledgeBaseResponseDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestDTO'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedDTO'
      tags:
      - Knowledge Base
      security:
      - Location-Access: []
components:
  schemas:
    GetAllKnowledgeBasesPaginatedResponseDTO:
      type: object
      properties:
        success:
          type: boolean
          description: Success status of the operation
          example: true
        data:
          description: Paginated knowledge bases data
          allOf:
          - $ref: '#/components/schemas/GetAllKnowledgeBasesPaginatedDataDTO'
      required:
      - success
      - data
    UpdateKnowledgeBaseResponseDTO:
      type: object
      properties:
        success:
          type: boolean
      required:
      - success
    CreateKnowledgeBaseResponseDTO:
      type: object
      properties:
        success:
          type: boolean
          description: Success status of the operation
          example: true
        data:
          description: Created knowledge base details
          allOf:
          - $ref: '#/components/schemas/KnowledgeBaseDataDTO'
      required:
      - success
      - data
    KnowledgeBaseDataDTO:
      type: object
      properties:
        id:
          type: string
          description: Knowledge base ID
          example: ZwTB8S0yo0FIBY6OPZTD
        name:
          type: string
          description: Knowledge base name
          example: KB for Bot Training
        nameLowerCase:
          type: string
          description: Knowledge base name in lowercase
          example: kb for bot training
        locationId:
          type: string
          description: Location ID
          example: qIyivCmsuEOSnyoFYEej
        kbMetadata:
          type: object
          description: Knowledge base metadata
          example: {}
        deleted:
          type: boolean
          description: Whether the knowledge base is deleted
          example: false
        createdAt:
          type: string
          description: Date when knowledge base was created
          example: '2025-08-02T20:26:57.057Z'
        updatedAt:
          type: string
          description: Date when knowledge base was last updated
          example: '2025-08-02T20:26:57.057Z'
      required:
      - id
      - name
      - nameLowerCase
      - locationId
      - kbMetadata
      - deleted
      - createdAt
      - updatedAt
    GetKnowledgeBaseByIdDataDTO:
      type: object
      properties:
        id:
          type: string
          description: Knowledge base ID
          example: Arc9QRauPKkSuMJO8D0m
        name:
          type: string
          description: Knowledge base name
          example: KB for Bot Training
        nameLowerCase:
          type: string
          description: Knowledge base name in lowercase
          example: kb for bot training
        locationId:
          type: string
          description: Location ID
          example: qIyivCmsuEOSnyoFYEej
        deleted:
          type: boolean
          description: Whether the knowledge base is deleted
          example: false
        createdAt:
          type: string
          description: Date when knowledge base was created
          example: '2025-08-01T07:50:41.244Z'
        updatedAt:
          type: string
          description: Date when knowledge base was last updated
          example: '2025-08-01T10:05:58.694Z'
        kbMetadata:
          description: Knowledge base metadata with content counts
          allOf:
          - $ref: '#/components/schemas/KnowledgeBaseMetadataDTO'
        isDefault:
          type: boolean
          description: Whether the knowledge base is default or not
          example: false
      required:
      - id
      - name
      - nameLowerCase
      - locationId
      - deleted
      - createdAt
      - updatedAt
      - kbMetadata
    KnowledgeBaseMetadataDTO:
      type: object
      properties:
        faqs:
          type: number
          description: Number of FAQs in the knowledge base
          example: 2
        urls:
          type: number
          description: Number of URLs in the knowledge base
          example: 64
        richText:
          type: number
          description: Number of rich text documents in the knowledge base
          example: 0
        files:
          type: number
          description: Number of files in the knowledge base
          example: 0
        webSearches:
          type: number
          description: Number of web searche configs in the knowledge base
          example: 0
        tables:
          type: number
          description: Number of tables in the knowledge base
          example: 0
      required:
      - faqs
      - urls
      - richText
      - files
      - webSearches
      - tables
    UpdateKnowledgeBaseDTO:
      type: object
      properties:
        name:
          type: string
          description: field to update the name of the knowledge base
        description:
          type: string
          description: field to update the description of the knowledge base
    DeleteKnowledgeBaseResponseDTO:
      type: object
      properties:
        success:
          type: boolean
      required:
      - success
    CreateKnowledgeBaseDTO:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        locationId:
          type: string
      required:
      - name
      - locationId
    UnauthorizedDTO:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        message:
          type: string
          example: 'Invalid token: access token is invalid'
        error:
          type: string
          example: Unauthorized
    GetAllKnowledgeBasesPaginatedDataDTO:
      type: object
      properties:
        knowledgeBases:
          description: Array of knowledge bases
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeBaseListItemDTO'
        activeCount:
          type: number
          description: Total count of all active knowledge bases
          example: 16
        hasMore:
          type: boolean
          description: Whether there are more knowledge bases available
          example: true
        lastKnowledgeBaseId:
          type: string
          description: ID of the last knowledge base in this page (use for next page request)
          example: ZwTB8S0yo0FIBY6OPZTD
      required:
      - knowledgeBases
      - activeCount
      - hasMore
    BadRequestDTO:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        message:
          type: string
          example: Bad Request
    GetKnowledgeBaseByIdResponseDTO:
      type: object
      properties:
        success:
          type: boolean
          description: Success status of the operation
          example: true
        data:
          description: Knowledge base details
          allOf:
          - $ref: '#/components/schemas/GetKnowledgeBaseByIdDataDTO'
      required:
      - success
      - data
    KnowledgeBaseListItemDTO:
      type: object
      properties:
        id:
          type: string
          description: Knowledge base ID
          example: ZwTB8S0yo0FIBY6OPZTD
        name:
          type: string
          description: Knowledge base name
          example: bot training kb
        createdAt:
          type: string
          description: Date when knowledge base was created
          example: '2025-08-02T20:26:57.057Z'
      required:
      - id
      - name
      - createdAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Location-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
      type: http
    Agency-Access:
      scheme: bearer
      bearerFormat: JWT
      name: Authorization
      in: header
      description: Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.
      type: http
x-tagGroups:
  name: Knowledge Base
  tags:
  - Knowledge Base
  - Faqs
  - Web Crawler