ThriveDesk Knowledge Base API

Public help centers, their articles, and member access.

GitHub OpenAPI

Operations 8

GET /knowledgebases List knowledge bases #
POST /knowledgebases Create a knowledge base #
GET /knowledgebases/{knowledgebase_id} View a knowledge base #
POST /knowledgebases/{knowledgebase_id} Update a knowledge base #
DELETE /knowledgebases/{knowledgebase_id} Delete a knowledge base #
DELETE /knowledgebases/{knowledgebase_id}/users/{email} Remove a knowledge base member #
GET /knowledgebases/{knowledgebase_slug}/articles List articles #
GET /knowledgebases/{knowledgebase_slug}/articles/{article_id} View an article #

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/thrivedesk:thrivedesk-knowledge-base-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

thrivedesk-knowledge-base-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThriveDesk Public Knowledge Base API
  version: 1.3.0
  summary: REST API for the ThriveDesk helpdesk data plane.
  description: 'The ThriveDesk Public API gives external integrators programmatic access

    to conversations, contacts, inboxes, tags, saved replies, reports, and the

    Knowledge Base. The same surface that powers the ThriveDesk web app is

    available here, scoped via bearer access tokens.


    ## Quick links


    - Quickstart

    - Authentication and scopes

    - Errors

    - Pagination and rate limits

    - Assistant SDK

    - Webhooks

    - SmartApp

    - Changelog


    ## What is documented


    The 90 endpoints in this spec cover the helpdesk data plane:

    conversations, contacts, inboxes (with their automations, custom fields,

    and saved replies), tags, teammates, saved replies, business hours and

    holidays, reports, the Knowledge Base, attachments, messages, notes, and

    the search and `me` utilities.


    First-party app, billing, onboarding,

    broadcasting, widget, webhook, and admin-dashboard endpoints are not part

    of this REST surface. The separate Assistant SDK,

    webhook, and SmartApp

    contracts are documented as sibling integration surfaces. The same goes for the web

    app''s own session and UI mechanics (password login, undo-send, saved-view

    and folder creation, usage counters) and for admin-plane writes

    (automation create and update, Knowledge Base member invitation, bulk

    permanent deletion): those routes exist for the first-party clients but

    are not supported for integrations.


    ## Deleting data


    Deletes are not uniform. Some are recoverable, some destroy related

    records and stored files outright, and the response body does not say

    which is which. Every delete operation carries a description saying what

    it removes and whether there is a way back. Read it before you call it.


    ## Compatibility


    - OpenAPI 3.1

    - All requests are `application/json` except for attachment downloads

    (binary stream).

    - All responses are `application/json` except for attachment downloads.'
  contact:
    name: ThriveDesk Developer Support
    email: help@thrivedesk.com
    url: https://www.thrivedesk.com
  license:
    name: Proprietary
    url: https://www.thrivedesk.com/terms
servers:
- url: https://api.thrivedesk.com/v1
security:
- bearerToken: []
tags:
- name: Knowledge Base
  description: Public help centers, their articles, and member access.
paths:
  /knowledgebases:
    get:
      summary: List knowledge bases
      operationId: knowledgebase-index-get
      tags:
      - Knowledge Base
      description: 'List knowledge bases.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBaseList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/knowledgebases\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
    post:
      summary: Create a knowledge base
      operationId: knowledgebase-index-post
      tags:
      - Knowledge Base
      description: 'Create a knowledge base.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBaseCreateResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBaseCreate'
            example:
              name: Help Center
              slug: help-center
              is_private: false
              members:
              - email: colleague@example.com
                role: editor
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X POST \"https://api.thrivedesk.com/v1/knowledgebases\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Help Center\",\n  \"slug\": \"help-center\",\n  \"is_private\": false,\n  \"members\": [\n    {\n      \"email\": \"colleague@example.com\",\n      \"role\": \"editor\"\n    }\n  ]\n}'"
      security:
      - bearerToken: []
  /knowledgebases/{knowledgebase_id}:
    get:
      summary: View a knowledge base
      operationId: knowledgebase-resource-get
      tags:
      - Knowledge Base
      description: 'View a knowledge base.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBaseResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      parameters:
      - $ref: '#/components/parameters/KnowledgeBaseId'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/knowledgebases/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
    post:
      summary: Update a knowledge base
      operationId: knowledgebase-resource-post
      tags:
      - Knowledge Base
      description: 'Update a knowledge base.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      x-notes: Uses POST because the extension's route file uses POST-for-update.
      parameters:
      - $ref: '#/components/parameters/KnowledgeBaseId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBaseUpdate'
            example:
              name: Help Center
              slug: help-center
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X POST \"https://api.thrivedesk.com/v1/knowledgebases/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Help Center\",\n  \"slug\": \"help-center\"\n}'"
      security:
      - bearerToken: []
    delete:
      summary: Delete a knowledge base
      operationId: knowledgebase-resource-delete
      tags:
      - Knowledge Base
      description: 'Delete a knowledge base.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      parameters:
      - $ref: '#/components/parameters/KnowledgeBaseId'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X DELETE \"https://api.thrivedesk.com/v1/knowledgebases/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
  /knowledgebases/{knowledgebase_id}/users/{email}:
    delete:
      summary: Remove a knowledge base member
      operationId: knowledgebase-users-delete-delete
      tags:
      - Knowledge Base
      description: 'Revokes one person''s access to the help center. The ThriveDesk user account is untouched, and re-inviting them restores access. Proxied to the help-center service, so the status and body are whatever it returns. Listing and inviting members is not part of this surface.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: OK
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      parameters:
      - $ref: '#/components/parameters/KnowledgeBaseId'
      - $ref: '#/components/parameters/Email'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X DELETE \"https://api.thrivedesk.com/v1/knowledgebases/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9/users/teammate@example.com\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
  /knowledgebases/{knowledgebase_slug}/articles:
    get:
      summary: List articles
      operationId: knowledgebase-articles-index-get
      tags:
      - Knowledge Base
      description: 'List articles.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBaseArticleList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      parameters:
      - $ref: '#/components/parameters/KnowledgeBaseSlug'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/knowledgebases/help-center/articles\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
  /knowledgebases/{knowledgebase_slug}/articles/{article_id}:
    get:
      summary: View an article
      operationId: knowledgebase-articles-show-get
      tags:
      - Knowledge Base
      description: 'View an article.


        Personal access token only. The API supports a second, partner-issued token class that is not part of the public surface. This endpoint does not accept that class.'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBaseArticle'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      parameters:
      - $ref: '#/components/parameters/KnowledgeBaseSlug'
      - $ref: '#/components/parameters/ArticleId'
      x-codeSamples:
      - lang: curl
        label: cURL
        source: "curl -X GET \"https://api.thrivedesk.com/v1/knowledgebases/help-center/articles/9c81790c-ae74-4cbd-b2ca-d246ae0df1a9\" \\\n  -H \"Authorization: Bearer $TOKEN\""
      security:
      - bearerToken: []
components:
  schemas:
    KnowledgeBaseUpdate:
      type: object
      required:
      - name
      - slug
      properties:
        name:
          type: string
          minLength: 5
          maxLength: 50
        slug:
          type: string
          minLength: 5
          maxLength: 50
          description: Must be unique. Reserved slugs are rejected.
        members:
          type: array
          items:
            type: object
            required:
            - email
            - role
            properties:
              email:
                type: string
                format: email
                maxLength: 255
              role:
                type: string
    Error:
      type: object
      description: 'Standard JSON error envelope. The exact shape depends on the error.

        Validation errors include an `errors` object keyed by field name. Auth

        errors include a `message`. Throttle errors include a `message` of

        "Too Many Attempts." See [Errors](/get-started/errors) for the full catalog.

        '
      required:
      - message
      properties:
        message:
          type: string
          description: Human-readable error message.
          example: The given data was invalid.
        errors:
          type: object
          description: 'Field-level validation errors. Present on 422 responses, when the

            request body fails validation.

            '
          additionalProperties:
            type: array
            items:
              type: string
          example:
            email:
            - The email field is required.
    KnowledgeBase:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
        visibility:
          type: string
        extra:
          type:
          - object
          - 'null'
          additionalProperties: true
      example:
        id: 9c81790c-ae74-4cbd-b2ca-d246ae0df1a9
        name: Help Center
        slug: help-center
        visibility: public
        extra: null
    PaginationLinks:
      type: object
      properties:
        first:
          type:
          - string
          - 'null'
          format: uri
        last:
          type:
          - string
          - 'null'
          format: uri
        prev:
          type:
          - string
          - 'null'
          format: uri
        next:
          type:
          - string
          - 'null'
          format: uri
    PaginationMeta:
      type: object
      description: Standard (counting) paginator meta block.
      properties:
        current_page:
          type: integer
          example: 1
        from:
          type:
          - integer
          - 'null'
          example: 1
        last_page:
          type: integer
          example: 10
        per_page:
          type: integer
          example: 20
        to:
          type:
          - integer
          - 'null'
          example: 20
        total:
          type: integer
          example: 200
        path:
          type: string
          format: uri
          example: https://api.thrivedesk.com/v1/contacts
        links:
          type: array
          description: 'Rendered paginator links: the numbered pages plus the previous/next

            controls (whose `url` and `page` are null when unavailable).

            '
          items:
            type: object
            properties:
              url:
                type:
                - string
                - 'null'
                format: uri
              label:
                type: string
              page:
                type:
                - integer
                - 'null'
              active:
                type: boolean
    KnowledgeBaseList:
      type: object
      required:
      - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeBase'
    KnowledgeBaseCreateResponse:
      type: object
      properties:
        knowledgebase_id:
          type: string
        message:
          type: string
          example: Knowledgebase created
    KnowledgeBaseArticle:
      type: object
      description: 'Articles are passed through from an upstream service. The exact shape is

        owned by the help-center service.

        '
      additionalProperties: true
    KnowledgeBaseArticleListItem:
      type: object
      description: An article summary in a knowledge base's article list.
      properties:
        id:
          type: string
        title:
          type: string
        slug:
          type: string
        excerpt:
          type:
          - string
          - 'null'
        published_at:
          type:
          - string
          - 'null'
          format: date-time
        knowledgebase:
          type: object
          description: The knowledge base the article belongs to.
          properties:
            id:
              type: string
            name:
              type: string
            slug:
              type: string
            visibility:
              type:
              - string
              - 'null'
    ValidationError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        required:
        - errors
        properties:
          errors:
            type: object
            additionalProperties:
              type: array
              items:
                type: string
    KnowledgeBaseCreate:
      type: object
      required:
      - name
      - slug
      - is_private
      properties:
        name:
          type: string
          minLength: 3
          maxLength: 50
        slug:
          type: string
          minLength: 3
          maxLength: 50
          description: Must be unique. Reserved slugs are rejected.
        is_private:
          type: boolean
        members:
          type: array
          items:
            type: object
            required:
            - email
            - role
            properties:
              email:
                type: string
                format: email
                maxLength: 255
              role:
                type: string
    KnowledgeBaseResponse:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/KnowledgeBase'
    KnowledgeBaseArticleList:
      type: object
      description: A paginated list of published articles in a knowledge base.
      required:
      - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeBaseArticleListItem'
        links:
          $ref: '#/components/schemas/PaginationLinks'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
  parameters:
    Email:
      in: path
      name: email
      required: true
      description: Email address of the member to remove.
      schema:
        type: string
        format: email
    ArticleId:
      in: path
      name: article_id
      required: true
      schema:
        type: string
    KnowledgeBaseId:
      in: path
      name: knowledgebase_id
      required: true
      schema:
        type: string
    KnowledgeBaseSlug:
      in: path
      name: knowledgebase_slug
      required: true
      schema:
        type: string
  responses:
    UnprocessableEntity:
      description: Request body failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    Forbidden:
      description: Token is valid but does not include a required scope, or the user does not have access to the resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: 'Rate limit exceeded. The `Retry-After` header indicates how long to wait

        before retrying. See [Pagination and rate limits](/get-started/pagination) for

        the full rate-limit policy.

        '
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            throttled:
              value:
                message: Too Many Attempts.
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing:
              value:
                message: Unauthenticated.
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      bearerFormat: Personal access token
      description: 'Personal access tokens created from the ThriveDesk UI.

        Create one under Integrations -> API Keys.

        '
x-tagGroups:
- name: Getting started
  tags:
  - Misc
- name: Core
  tags:
  - Conversations
  - Contacts
  - Inboxes
- name: Organization
  tags:
  - Tags
  - Saved Replies
  - Users
  - Business Hours
  - Holidays
- name: Analytics
  tags:
  - Reports
- name: Knowledge Base
  tags:
  - Knowledge Base
- name: Attachments
  tags:
  - Attachments
  - Messages and Notes