ThoughtBox Approvals API
The approvals API from ThoughtBox — 8 operation(s) for approvals.
The approvals API from ThoughtBox — 8 operation(s) for approvals.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/thoughtbox-ai:thoughtbox-ai-approvals-api"
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.
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: 3.2.0
info:
title: ThoughtBox Approvals API
description: Document proxy and AI chat platform with MCP support
version: 0.1.0
tags:
- name: Approvals
paths:
/api/approvals/slips:
post:
tags:
- Approvals
summary: Mint Slip
operationId: mint_slip_api_approvals_slips_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MintSlipRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MintSlipResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/approvals/slips/execute:
post:
tags:
- Approvals
summary: Execute Slip
operationId: execute_slip_api_approvals_slips_execute_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteSlipRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteSlipResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/approvals/resolve:
post:
tags:
- Approvals
summary: Resolve Files
description: 'The approval window, before it renders a read_files request: which
of these files did ThoughtBox Central itself return from a search this user
approved, and what are they called? Display only — nothing here
authorizes anything; mint still validates the call in full.'
operationId: resolve_files_api_approvals_resolve_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ResolveFilesRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ResolveFilesResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/approvals/describe:
post:
tags:
- Approvals
summary: Describe Request
description: 'The approval window, before it shows a Google Tasks, Calendar, Gmail
or Drive request (thoughtbox#598): the card''s title and fields, and any
Google permission to ask for before Approve. Same auth as mint; display
only, mints nothing.'
operationId: describe_request_api_approvals_describe_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeRequest'
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/approvals/browsed-files:
post:
tags:
- Approvals
summary: Record Browsed File
description: 'thoughtbox#271: the approval window calls this right after a
"Browse your files" pick — display-only bookkeeping so a subsequent
read_files resolves ThoughtBox''s own name for the file (see
approval_slips.resolve_files), never a grant of anything.'
operationId: record_browsed_file_api_approvals_browsed_files_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RecordBrowsedFileRequest'
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/approvals/slips/revoke:
post:
tags:
- Approvals
summary: Revoke Slips
operationId: revoke_slips_api_approvals_slips_revoke_post
requestBody:
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/RevokeSlipsRequest'
- type: 'null'
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/approvals/tap-grant:
get:
tags:
- Approvals
summary: Get Tap Grant
operationId: get_tap_grant_api_approvals_tap_grant_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- HTTPBearer: []
put:
tags:
- Approvals
summary: Put Tap Grant
operationId: put_tap_grant_api_approvals_tap_grant_put
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TapGrantRequest'
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: []
delete:
tags:
- Approvals
summary: Delete Tap Grant
operationId: delete_tap_grant_api_approvals_tap_grant_delete
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security:
- HTTPBearer: []
/api/approvals/slips/tap:
post:
tags:
- Approvals
summary: Mint Slip By Tap
description: 'The app backend, server to server, when the person taps Allow. The key
is the only bearer and travels in the body, as /slips/execute''s slip id
does, so it never lands in a path log.'
operationId: mint_slip_by_tap_api_approvals_slips_tap_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TapSlipRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MintSlipResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
DescribeRequest:
properties:
tenant_id:
type: string
maxLength: 120
minLength: 1
title: Tenant Id
tool:
type: string
maxLength: 40
minLength: 1
title: Tool
arguments:
additionalProperties: true
type: object
title: Arguments
type: object
required:
- tenant_id
- tool
- arguments
title: DescribeRequest
TapSlipRequest:
properties:
key:
type: string
maxLength: 128
minLength: 1
title: Key
tool:
type: string
maxLength: 40
minLength: 1
title: Tool
arguments:
additionalProperties: true
type: object
title: Arguments
pin:
anyOf:
- type: string
maxLength: 8
- type: 'null'
title: Pin
type: object
required:
- key
- tool
- arguments
title: TapSlipRequest
MintSlipResponse:
properties:
slip_id:
type: string
title: Slip Id
tool:
type: string
title: Tool
resource_count:
type: integer
title: Resource Count
expires_at:
type: string
format: date-time
title: Expires At
type: object
required:
- slip_id
- tool
- resource_count
- expires_at
title: MintSlipResponse
ExecuteSlipResponse:
properties:
tool:
type: string
title: Tool
result:
type: string
title: Result
type: object
required:
- tool
- result
title: ExecuteSlipResponse
RevokeSlipsRequest:
properties:
tenant_id:
anyOf:
- type: string
maxLength: 120
minLength: 1
- type: 'null'
title: Tenant Id
type: object
title: RevokeSlipsRequest
RecordBrowsedFileRequest:
properties:
tenant_id:
type: string
maxLength: 120
minLength: 1
title: Tenant Id
provider:
type: string
maxLength: 50
minLength: 1
title: Provider
file_id:
type: string
maxLength: 1024
minLength: 1
title: File Id
name:
type: string
maxLength: 512
minLength: 1
title: Name
size:
anyOf:
- type: integer
minimum: 0.0
- type: 'null'
title: Size
mime_type:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Mime Type
type: object
required:
- tenant_id
- provider
- file_id
- name
title: RecordBrowsedFileRequest
ResolvedFile:
properties:
provider:
type: string
title: Provider
file_id:
type: string
title: File Id
name:
anyOf:
- type: string
- type: 'null'
title: Name
size:
anyOf:
- type: integer
- type: 'null'
title: Size
from_search:
type: boolean
title: From Search
type: object
required:
- provider
- file_id
- name
- size
- from_search
title: ResolvedFile
ResolveFileRef:
properties:
provider:
type: string
maxLength: 50
minLength: 1
title: Provider
file_id:
type: string
maxLength: 1024
minLength: 1
title: File Id
type: object
required:
- provider
- file_id
title: ResolveFileRef
MintSlipRequest:
properties:
tenant_id:
type: string
maxLength: 120
minLength: 1
title: Tenant Id
tool:
type: string
maxLength: 40
minLength: 1
title: Tool
arguments:
additionalProperties: true
type: object
title: Arguments
approval_kind:
type: string
enum:
- click
- auto
title: Approval Kind
default: click
type: object
required:
- tenant_id
- tool
- arguments
title: MintSlipRequest
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
ExecuteSlipRequest:
properties:
slip_id:
type: string
maxLength: 128
minLength: 1
title: Slip Id
type: object
required:
- slip_id
title: ExecuteSlipRequest
ResolveFilesRequest:
properties:
tenant_id:
type: string
maxLength: 120
minLength: 1
title: Tenant Id
files:
items:
$ref: '#/components/schemas/ResolveFileRef'
type: array
maxItems: 100
minItems: 1
title: Files
type: object
required:
- tenant_id
- files
title: ResolveFilesRequest
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ResolveFilesResponse:
properties:
files:
items:
$ref: '#/components/schemas/ResolvedFile'
type: array
title: Files
type: object
required:
- files
title: ResolveFilesResponse
TapGrantRequest:
properties:
tenant_id:
type: string
maxLength: 120
minLength: 1
title: Tenant Id
pin:
anyOf:
- type: string
maxLength: 8
- type: 'null'
title: Pin
type: object
required:
- tenant_id
title: TapGrantRequest
securitySchemes:
HTTPBearer:
type: http
scheme: bearer