ThunderPhone Knowledge Bases API

The knowledge-bases API from ThunderPhone — 6 operation(s) for knowledge-bases.

GitHub OpenAPI

Operations 11

GET /v1/knowledge-bases Knowledge bases list #
POST /v1/knowledge-bases Knowledge bases create #
GET /v1/knowledge-bases/{knowledge_base_id} Knowledge bases retrieve #
PATCH /v1/knowledge-bases/{knowledge_base_id} Knowledge bases partial update #
DELETE /v1/knowledge-bases/{knowledge_base_id} Knowledge bases delete #
GET /v1/knowledge-bases/{knowledge_base_id}/documents Knowledge bases documents list #
POST /v1/knowledge-bases/{knowledge_base_id}/documents Knowledge bases documents #
PATCH /v1/knowledge-bases/{knowledge_base_id}/documents/{document_id} Knowledge bases documents partial update #
DELETE /v1/knowledge-bases/{knowledge_base_id}/documents/{document_id} Knowledge bases documents delete #
POST /v1/knowledge-bases/{knowledge_base_id}/documents/{document_id}/retry Knowledge bases documents retry #

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/thunderphone-com:thunderphone-com-knowledge-bases-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

thunderphone-com-knowledge-bases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Knowledge Bases API
  version: 1.0.0
  description: Programmatic access to the ThunderPhone platform — agents, phone numbers, calls, billing, webhooks, and more. See https://thunderphone.com/docs and https://thunderphone.com/developers for the reference, tutorials and migration guides.
  contact:
    name: ThunderPhone support
    url: https://thunderphone.com/docs
servers:
- url: https://api.thunderphone.com
  description: Production
tags:
- name: Knowledge Bases
paths:
  /v1/knowledge-bases:
    get:
      operationId: knowledge_bases_list
      description: Retrieve knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      tags:
      - Knowledge Bases
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KnowledgeBase'
          description: ''
      summary: Knowledge bases list
      x-summary-source: derived
    post:
      operationId: knowledge_bases_create
      description: Create or run knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      tags:
      - Knowledge Bases
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeBaseRequest'
            examples:
              Request:
                value:
                  name: Office
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBase'
              examples:
                Success:
                  value:
                    id: 00000000-0000-4000-8000-000000000001
                    name: Office
                    description: ''
                    document_count: 0
                    created_at: '2026-01-01T00:00:00Z'
                    updated_at: '2026-01-01T00:00:00Z'
          description: ''
      summary: Knowledge bases create
      x-summary-source: derived
  /v1/knowledge-bases/{knowledge_base_id}:
    get:
      operationId: knowledge_bases_retrieve
      description: Retrieve knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBase'
          description: ''
      summary: Knowledge bases retrieve
      x-summary-source: derived
    patch:
      operationId: knowledge_bases_partial_update
      description: Update knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedKnowledgeBaseRequest'
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBase'
          description: ''
      summary: Knowledge bases partial update
      x-summary-source: derived
    delete:
      operationId: knowledge_bases_delete
      description: Delete knowledge bases. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '204':
          description: No response body
      summary: Knowledge bases delete
      x-summary-source: derived
  /v1/knowledge-bases/{knowledge_base_id}/documents:
    get:
      operationId: knowledge_bases_documents_list
      description: Retrieve knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KnowledgeDocument'
          description: ''
      summary: Knowledge bases documents list
      x-summary-source: derived
    post:
      operationId: knowledge_bases_documents
      description: Create or run knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentTextRequest'
            examples:
              Request:
                value:
                  name: Office hours
                  content: Open Monday to Friday, 9 to 5.
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DocumentUploadRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeDocument'
              examples:
                Success:
                  value:
                    id: 00000000-0000-4000-8000-000000000001
                    name: Office hours
                    source_type: text
                    original_filename: ''
                    mime_type: text/plain
                    byte_count: 31
                    estimated_chunk_count: 1
                    status: pending
                    error: ''
                    chunk_count: 0
                    source_origin: upload
                    source_url: ''
                    fetched_at: null
                    created_at: '2026-01-01T00:00:00Z'
                    updated_at: '2026-01-01T00:00:00Z'
          description: ''
      summary: Knowledge bases documents
      x-summary-source: derived
  /v1/knowledge-bases/{knowledge_base_id}/documents/{document_id}:
    patch:
      operationId: knowledge_bases_documents_partial_update
      description: Update knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: document_id
        schema:
          type: string
          format: uuid
        required: true
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedDocumentTextRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedDocumentUploadRequest'
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeDocument'
          description: ''
      summary: Knowledge bases documents partial update
      x-summary-source: derived
    delete:
      operationId: knowledge_bases_documents_delete
      description: Delete knowledge bases / documents. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: document_id
        schema:
          type: string
          format: uuid
        required: true
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '204':
          description: No response body
      summary: Knowledge bases documents delete
      x-summary-source: derived
  /v1/knowledge-bases/{knowledge_base_id}/documents/{document_id}/retry:
    post:
      operationId: knowledge_bases_documents_retry
      description: Create or run knowledge bases / documents / retry. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: document_id
        schema:
          type: string
          format: uuid
        required: true
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeDocument'
          description: ''
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      summary: Knowledge bases documents retry
      x-summary-source: derived
  /v1/knowledge-bases/{knowledge_base_id}/search:
    post:
      operationId: knowledge_bases_search
      description: Create or run knowledge bases / search. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: knowledge_base_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge Bases
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KnowledgeSearchRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeSearchResults'
          description: ''
      summary: Knowledge bases search
      x-summary-source: derived
components:
  schemas:
    NullEnum:
      enum:
      - null
    SourceTypeEnum:
      enum:
      - text
      - file
      type: string
      description: '* `text` - Text

        * `file` - File'
    KnowledgeSearchResults:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
      - results
    DocumentTextRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        content:
          type: string
          minLength: 1
      required:
      - content
      - name
    KnowledgeDocument:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 255
        source_type:
          allOf:
          - $ref: '#/components/schemas/SourceTypeEnum'
          readOnly: true
        original_filename:
          type: string
          readOnly: true
        mime_type:
          type: string
          readOnly: true
        byte_count:
          type: integer
          readOnly: true
        estimated_chunk_count:
          type: integer
          readOnly: true
        status:
          allOf:
          - $ref: '#/components/schemas/StatusDf2Enum'
          readOnly: true
        error:
          type: string
          readOnly: true
        chunk_count:
          type: integer
          readOnly: true
        source_origin:
          readOnly: true
          oneOf:
          - $ref: '#/components/schemas/SourceOriginEnum'
          - $ref: '#/components/schemas/NullEnum'
        source_url:
          type:
          - string
          - 'null'
          format: uri
          readOnly: true
        fetched_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
      - byte_count
      - chunk_count
      - created_at
      - error
      - estimated_chunk_count
      - fetched_at
      - id
      - mime_type
      - name
      - original_filename
      - source_origin
      - source_type
      - source_url
      - status
      - updated_at
    DocumentUploadRequest:
      type: object
      properties:
        file:
          type: string
          format: binary
        name:
          type: string
          minLength: 1
      required:
      - file
    KnowledgeSearchRequest:
      type: object
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 4000
        document_ids:
          type: array
          items:
            type: string
            format: uuid
      required:
      - query
    SourceOriginEnum:
      enum:
      - upload
      - url
      type: string
      description: '* `upload` - Upload

        * `url` - Web page'
    StatusDf2Enum:
      enum:
      - pending
      - processing
      - ready
      - failed
      type: string
      description: '* `pending` - Pending

        * `processing` - Processing

        * `ready` - Ready

        * `failed` - Failed'
    PatchedKnowledgeBaseRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        description:
          type: string
    KnowledgeBaseRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        description:
          type: string
      required:
      - name
    PatchedDocumentTextRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        content:
          type: string
          minLength: 1
    KnowledgeBase:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 255
        description:
          type: string
        document_count:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
      - created_at
      - document_count
      - id
      - name
      - updated_at
    PatchedDocumentUploadRequest:
      type: object
      properties:
        file:
          type: string
          format: binary
        name:
          type: string
          minLength: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_live_…
      description: 'Organization API key. Send Authorization: Bearer sk_live_…; create a key in the dashboard.'
    humanToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Human session token: Authorization: Token <session-token>. Organization API keys are rejected by key-management and account-control operations.'
x-mcp-server: https://api.thunderphone.com/v1/mcp