ThunderPhone Knowledge API

The knowledge API from ThunderPhone — 8 operation(s) for knowledge.

GitHub OpenAPI

Operations 11

POST /v1/knowledge/documents/import-url Knowledge documents import url #
GET /v1/knowledge/documents Knowledge documents list #
POST /v1/knowledge/documents Knowledge documents create #
GET /v1/knowledge/documents/{document_id} Knowledge documents retrieve #
PATCH /v1/knowledge/documents/{document_id} Knowledge documents partial update #
DELETE /v1/knowledge/documents/{document_id} Knowledge documents delete #
POST /v1/knowledge/documents/{document_id}/retry Knowledge documents retry #
GET /v1/knowledge/documents/{document_id}/original Knowledge documents original list #
POST /v1/knowledge/documents/{document_id}/replace Knowledge documents replace #
POST /v1/knowledge/documents/{document_id}/refresh Knowledge documents refresh #
POST /v1/knowledge/search Knowledge search create #

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-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-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Knowledge 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
paths:
  /v1/knowledge/documents/import-url:
    post:
      operationId: knowledge_documents_import_url
      description: 'Create a knowledge document from a customer-pasted web page URL. The document is created in ``pending`` and the fetch + extraction run in the durable ingestion queue: pages are slow and flaky, so the request itself never touches the network beyond one DNS-level safety check.'
      tags:
      - Knowledge
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UrlDocumentRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentImported'
          description: ''
      summary: Knowledge documents import url
      x-summary-source: derived
  /v1/knowledge/documents:
    get:
      operationId: knowledge_documents_list
      description: Retrieve knowledge / 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.
      tags:
      - Knowledge
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KnowledgeDocument'
          description: ''
      summary: Knowledge documents list
      x-summary-source: derived
    post:
      operationId: knowledge_documents_create
      description: Create or run knowledge / 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.
      tags:
      - Knowledge
      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/DocumentBatchUploadRequest'
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentsCreated'
              examples:
                Success:
                  value:
                    documents:
                    - 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'
                    warnings: []
          description: ''
      summary: Knowledge documents create
      x-summary-source: derived
  /v1/knowledge/documents/{document_id}:
    get:
      operationId: knowledge_documents_retrieve
      description: Retrieve knowledge / 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
      tags:
      - Knowledge
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeDocumentDetail'
          description: ''
      summary: Knowledge documents retrieve
      x-summary-source: derived
    patch:
      operationId: knowledge_documents_partial_update
      description: Update knowledge / 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
      tags:
      - Knowledge
      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 documents partial update
      x-summary-source: derived
    delete:
      operationId: knowledge_documents_delete
      description: Delete knowledge / 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
      tags:
      - Knowledge
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '204':
          description: No response body
      summary: Knowledge documents delete
      x-summary-source: derived
  /v1/knowledge/documents/{document_id}/retry:
    post:
      operationId: knowledge_documents_retry
      description: Create or run knowledge / 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
      tags:
      - Knowledge
      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 documents retry
      x-summary-source: derived
  /v1/knowledge/documents/{document_id}/original:
    get:
      operationId: knowledge_documents_original_list
      description: Retrieve knowledge / documents / original. 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
      tags:
      - Knowledge
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
          description: ''
      summary: Knowledge documents original list
      x-summary-source: derived
  /v1/knowledge/documents/{document_id}/replace:
    post:
      operationId: knowledge_documents_replace
      description: Create or run knowledge / documents / replace. 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
      tags:
      - Knowledge
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DocumentUploadRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentImported'
          description: ''
      summary: Knowledge documents replace
      x-summary-source: derived
  /v1/knowledge/documents/{document_id}/refresh:
    post:
      operationId: knowledge_documents_refresh
      description: Re-fetch a url-origin document through the durable ingestion queue.
      parameters:
      - in: path
        name: document_id
        schema:
          type: string
          format: uuid
        required: true
      tags:
      - Knowledge
      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 documents refresh
      x-summary-source: derived
  /v1/knowledge/search:
    post:
      operationId: knowledge_search_create
      description: Create or run knowledge / 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.
      tags:
      - Knowledge
      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 search create
      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
    DocumentBatchUploadRequest:
      type: object
      properties:
        file:
          type: string
          format: binary
        name:
          type: string
          minLength: 1
        files[]:
          type: array
          items:
            type: string
            format: binary
    StatusDf2Enum:
      enum:
      - pending
      - processing
      - ready
      - failed
      type: string
      description: '* `pending` - Pending

        * `processing` - Processing

        * `ready` - Ready

        * `failed` - Failed'
    KnowledgeSearchRequest:
      type: object
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 4000
        document_ids:
          type: array
          items:
            type: string
            format: uuid
      required:
      - query
    DocumentImported:
      type: object
      properties:
        document:
          $ref: '#/components/schemas/KnowledgeDocument'
        warnings:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
      - document
    DocumentsCreated:
      type: object
      properties:
        documents:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeDocument'
        warnings:
          type: array
          items:
            type: object
            additionalProperties: {}
      required:
      - documents
    PatchedDocumentTextRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        content:
          type: string
          minLength: 1
    SourceOriginEnum:
      enum:
      - upload
      - url
      type: string
      description: '* `upload` - Upload

        * `url` - Web page'
    PatchedDocumentUploadRequest:
      type: object
      properties:
        file:
          type: string
          format: binary
        name:
          type: string
          minLength: 1
    UrlDocumentRequest:
      type: object
      properties:
        url:
          type: string
          format: uri
          minLength: 1
        name:
          type:
          - string
          - 'null'
          minLength: 1
      required:
      - url
    KnowledgeDocumentDetail:
      type: object
      description: 'Adds the canonical extracted `content` for the single-document viewer.


        The list serializer keeps `content` write-only to stay lean, so this read

        variant exposes it (read-only) for the detail endpoint only.'
      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
        content:
          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
        uploaded_by:
          type:
          - object
          - 'null'
          additionalProperties: {}
          readOnly: true
        replaced_at:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
        has_original:
          type: boolean
          readOnly: true
        original_size_bytes:
          type:
          - integer
          - 'null'
          readOnly: true
        original_mime_type:
          type:
          - string
          - 'null'
          readOnly: true
      required:
      - byte_count
      - chunk_count
      - content
      - created_at
      - error
      - estimated_chunk_count
      - fetched_at
      - has_original
      - id
      - mime_type
      - name
      - original_filename
      - original_mime_type
      - original_size_bytes
      - replaced_at
      - source_origin
      - source_type
      - source_url
      - status
      - updated_at
      - uploaded_by
  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