ThoughtBox Data Sources API

The data-sources API from ThoughtBox — 11 operation(s) for data-sources.

GitHub OpenAPI

Operations 15

POST /api/data-sources/discover Discover #
GET /api/data-sources List Sources #
POST /api/data-sources Create Source #
PATCH /api/data-sources/{source_id} Update Source #
DELETE /api/data-sources/{source_id} Delete Source #
POST /api/data-sources/sign-in/callback Finish Sign In #
POST /api/data-sources/{source_id}/sign-in Start Sign In #
POST /api/data-sources/{source_id}/profiles Add Profile #
GET /api/data-sources/{source_id}/profiles/{profile_id} Get Profile #
PUT /api/data-sources/{source_id}/profiles/{profile_id} Change Profile #
DELETE /api/data-sources/{source_id}/profiles/{profile_id} Remove Profile #
POST /api/data-sources/{source_id}/profiles/{profile_id}/undo Undo Profile #
PUT /api/data-sources/{source_id}/tools/{tool_name}/only-reads Mark Only Reads #
POST /api/data-sources/{source_id}/test Test Tool #
GET /api/data-sources/{source_id}/calls List Calls #

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/thoughtbox-ai:thoughtbox-ai-data-sources-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

thoughtbox-ai-data-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThoughtBox Data Sources API
  description: Document proxy and AI chat platform with MCP support
  version: 0.1.0
tags:
- name: Data Sources
paths:
  /api/data-sources/discover:
    post:
      tags:
      - Data Sources
      summary: Discover
      description: 'Read an API''s description and list the operations that could become

        tools. Saves nothing.'
      operationId: discover_api_data_sources_discover_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DiscoverRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/data-sources:
    get:
      tags:
      - Data Sources
      summary: List Sources
      operationId: list_sources_api_data_sources_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
    post:
      tags:
      - Data Sources
      summary: Create Source
      operationId: create_source_api_data_sources_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/data-sources/{source_id}:
    patch:
      tags:
      - Data Sources
      summary: Update Source
      description: 'Rename, fill in or swap the key, correct the auth settings, or change

        which operations are tools. The slug (and so every tool name) stays as

        created, so a rename doesn''t break conversations that already used the

        tools.'
      operationId: update_source_api_data_sources__source_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Data Sources
      summary: Delete Source
      operationId: delete_source_api_data_sources__source_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/data-sources/sign-in/callback:
    post:
      tags:
      - Data Sources
      summary: Finish Sign In
      description: 'The callback page hands over the provider''s code and state; the code

        is traded for the token here, server to server.'
      operationId: finish_sign_in_api_data_sources_sign_in_callback_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignInCallback'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/data-sources/{source_id}/sign-in:
    post:
      tags:
      - Data Sources
      summary: Start Sign In
      description: Where to send the browser to sign in to this source.
      operationId: start_sign_in_api_data_sources__source_id__sign_in_post
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/data-sources/{source_id}/profiles:
    post:
      tags:
      - Data Sources
      summary: Add Profile
      operationId: add_profile_api_data_sources__source_id__profiles_post
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProfileBody'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/data-sources/{source_id}/profiles/{profile_id}:
    get:
      tags:
      - Data Sources
      summary: Get Profile
      operationId: get_profile_api_data_sources__source_id__profiles__profile_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      - name: profile_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Profile Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Data Sources
      summary: Change Profile
      operationId: change_profile_api_data_sources__source_id__profiles__profile_id__put
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      - name: profile_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Profile Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProfileBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Data Sources
      summary: Remove Profile
      operationId: remove_profile_api_data_sources__source_id__profiles__profile_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      - name: profile_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Profile Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/data-sources/{source_id}/profiles/{profile_id}/undo:
    post:
      tags:
      - Data Sources
      summary: Undo Profile
      description: 'Chat''s Undo: unlike Connections'' remove, it refuses a profile that''s been changed or is in use.'
      operationId: undo_profile_api_data_sources__source_id__profiles__profile_id__undo_post
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      - name: profile_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Profile Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/data-sources/{source_id}/tools/{tool_name}/only-reads:
    put:
      tags:
      - Data Sources
      summary: Mark Only Reads
      description: 'Say one of a source''s tools only reads, so it stops asking on its Allow card, or take that back

        (thoughtbox#589). Only for a tool its provider left unmarked.'
      operationId: mark_only_reads_api_data_sources__source_id__tools__tool_name__only_reads_put
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      - name: tool_name
        in: path
        required: true
        schema:
          type: string
          title: Tool Name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OnlyReadsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/data-sources/{source_id}/test:
    post:
      tags:
      - Data Sources
      summary: Test Tool
      description: Run one tool by hand, exactly as a chat would, and log it as a test.
      operationId: test_tool_api_data_sources__source_id__test_post
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunToolRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/data-sources/{source_id}/calls:
    get:
      tags:
      - Data Sources
      summary: List Calls
      operationId: list_calls_api_data_sources__source_id__calls_get
      security:
      - HTTPBearer: []
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Source Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RunToolRequest:
      properties:
        tool_name:
          type: string
          maxLength: 64
          title: Tool Name
        arguments:
          additionalProperties: true
          type: object
          title: Arguments
      type: object
      required:
      - tool_name
      title: RunToolRequest
    OnlyReadsRequest:
      properties:
        only_reads:
          type: boolean
          title: Only Reads
      type: object
      required:
      - only_reads
      title: OnlyReadsRequest
    SignInCallback:
      properties:
        state:
          type: string
          maxLength: 200
          title: State
        code:
          type: string
          maxLength: 4000
          title: Code
      type: object
      required:
      - state
      - code
      title: SignInCallback
    ProfileBody:
      properties:
        name:
          type: string
          title: Name
        values:
          additionalProperties: true
          type: object
          title: Values
      type: object
      required:
      - name
      - values
      title: ProfileBody
    ToolPick:
      properties:
        operation:
          type: string
          maxLength: 2100
          title: Operation
        description:
          anyOf:
          - type: string
            maxLength: 1000
          - type: 'null'
          title: Description
      type: object
      required:
      - operation
      title: ToolPick
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    UpdateRequest:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Name
        secret:
          anyOf:
          - type: string
            maxLength: 4000
          - type: 'null'
          title: Secret
        tools:
          anyOf:
          - items:
              $ref: '#/components/schemas/ToolPick'
            type: array
            minItems: 1
          - type: 'null'
          title: Tools
        auth_type:
          anyOf:
          - type: string
            enum:
            - none
            - bearer
            - header
            - query
            - oauth2
          - type: 'null'
          title: Auth Type
        auth_name:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Auth Name
        client_id:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Client Id
        client_secret:
          anyOf:
          - type: string
            maxLength: 4000
          - type: 'null'
          title: Client Secret
        access_values:
          anyOf:
          - additionalProperties:
              type: string
            type: object
          - type: 'null'
          title: Access Values
      type: object
      title: UpdateRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateRequest:
      properties:
        base_url:
          type: string
          maxLength: 2000
          title: Base Url
        spec_url:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Spec Url
        auth_type:
          type: string
          enum:
          - none
          - bearer
          - header
          - query
          - oauth2
          title: Auth Type
          default: bearer
        auth_name:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Auth Name
        secret:
          anyOf:
          - type: string
            maxLength: 4000
          - type: 'null'
          title: Secret
        name:
          type: string
          maxLength: 100
          title: Name
        tools:
          items:
            $ref: '#/components/schemas/ToolPick'
          type: array
          minItems: 1
          title: Tools
      type: object
      required:
      - base_url
      - name
      - tools
      title: CreateRequest
    DiscoverRequest:
      properties:
        base_url:
          type: string
          maxLength: 2000
          title: Base Url
        spec_url:
          anyOf:
          - type: string
            maxLength: 2000
          - type: 'null'
          title: Spec Url
        auth_type:
          type: string
          enum:
          - none
          - bearer
          - header
          - query
          - oauth2
          title: Auth Type
          default: bearer
        auth_name:
          anyOf:
          - type: string
            maxLength: 100
          - type: 'null'
          title: Auth Name
        secret:
          anyOf:
          - type: string
            maxLength: 4000
          - type: 'null'
          title: Secret
        name:
          type: string
          maxLength: 100
          title: Name
          default: ''
      type: object
      required:
      - base_url
      title: DiscoverRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer