ThoughtBox API Keys API

The api-keys API from ThoughtBox — 4 operation(s) for api-keys.

GitHub OpenAPI

Operations 6

GET /api/api-keys List Api Keys #
POST /api/api-keys Create Key #
DELETE /api/api-keys/{api_key_id} Delete Api Key #
PUT /api/api-keys/{api_key_id}/webhook Set Webhook #
DELETE /api/api-keys/{api_key_id}/webhook Remove Webhook #
PUT /api/api-keys/{api_key_id}/approve-actions Set Approve Actions #

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-api-keys-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-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThoughtBox API Keys API
  description: Document proxy and AI chat platform with MCP support
  version: 0.1.0
tags:
- name: API Keys
paths:
  /api/api-keys:
    get:
      tags:
      - API Keys
      summary: List Api Keys
      operationId: list_api_keys_api_api_keys_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiKeyOut'
                type: array
                title: Response List Api Keys Api Api Keys Get
      security:
      - HTTPBearer: []
    post:
      tags:
      - API Keys
      summary: Create Key
      operationId: create_key_api_api_keys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedApiKeyOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/api-keys/{api_key_id}:
    delete:
      tags:
      - API Keys
      summary: Delete Api Key
      operationId: delete_api_key_api_api_keys__api_key_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: api_key_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Api Key Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/api-keys/{api_key_id}/webhook:
    put:
      tags:
      - API Keys
      summary: Set Webhook
      description: 'Set where this key''s background chat results are sent (thoughtbox#288).

        Returns a new signing secret, shown once; setting the URL again rotates it.'
      operationId: set_webhook_api_api_keys__api_key_id__webhook_put
      security:
      - HTTPBearer: []
      parameters:
      - name: api_key_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Api Key Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetWebhookRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - API Keys
      summary: Remove Webhook
      operationId: remove_webhook_api_api_keys__api_key_id__webhook_delete
      security:
      - HTTPBearer: []
      parameters:
      - name: api_key_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Api Key Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/api-keys/{api_key_id}/approve-actions:
    put:
      tags:
      - API Keys
      summary: Set Approve Actions
      description: 'Let a program using this key answer the Allow or Deny card, or stop it

        (thoughtbox#337). Signed in only, like every route here: a key can''t turn

        this on for itself. Turning it on records when.'
      operationId: set_approve_actions_api_api_keys__api_key_id__approve_actions_put
      security:
      - HTTPBearer: []
      parameters:
      - name: api_key_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Api Key Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetApproveActionsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApiKeyOut:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        key_id:
          type: string
          title: Key Id
        secret_hint:
          type: string
          title: Secret Hint
        created_at:
          type: string
          title: Created At
        last_used_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Used At
        webhook_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Webhook Url
        can_approve_actions:
          type: boolean
          title: Can Approve Actions
          default: false
        approve_actions_enabled_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Approve Actions Enabled At
      type: object
      required:
      - id
      - name
      - key_id
      - secret_hint
      - created_at
      - last_used_at
      title: ApiKeyOut
    SetApproveActionsRequest:
      properties:
        enabled:
          type: boolean
          title: Enabled
      type: object
      required:
      - enabled
      title: SetApproveActionsRequest
    SetWebhookRequest:
      properties:
        url:
          type: string
          maxLength: 2000
          minLength: 1
          title: Url
      type: object
      required:
      - url
      title: SetWebhookRequest
    CreatedApiKeyOut:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        key_id:
          type: string
          title: Key Id
        secret_hint:
          type: string
          title: Secret Hint
        created_at:
          type: string
          title: Created At
        last_used_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Used At
        webhook_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Webhook Url
        can_approve_actions:
          type: boolean
          title: Can Approve Actions
          default: false
        approve_actions_enabled_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Approve Actions Enabled At
        secret:
          type: string
          title: Secret
      type: object
      required:
      - id
      - name
      - key_id
      - secret_hint
      - created_at
      - last_used_at
      - secret
      title: CreatedApiKeyOut
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CreateApiKeyRequest:
      properties:
        name:
          type: string
          maxLength: 100
          title: Name
      type: object
      required:
      - name
      title: CreateApiKeyRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer