Takibi Base Documents API
The Documents API from Takibi Base, for documents.
The Documents API from Takibi Base, for documents.
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/takibibase-com:takibibase-com-documents-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: Takibi agent Documents API
version: 1.0.0
description: The retrieval and task operations used by the Takibi agent CLI. Human workspace administration and billing are outside this contract.
servers:
- url: https://app.takibibase.com
security:
- ProfileKey: []
tags:
- name: Documents
paths:
/v1/documents:
get:
operationId: listDocuments
summary: List accessible documents
description: Profile keys see only indexed documents within their grants.
parameters:
- name: projectId
in: query
required: false
description: Project UUID. May be omitted only when the key resolves to a single project.
schema:
type: string
format: uuid
- name: folderId
in: query
required: false
description: Narrow retrieval to a granted folder.
schema:
type: string
format: uuid
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
properties:
documents:
type: array
items:
$ref: '#/components/schemas/Document'
required:
- documents
'400':
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, invalid, paused or revoked key, or human-only route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Capability or access denied.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found or not visible.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate or daily budget limit.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Documents
post:
operationId: uploadDocument
summary: File a document
description: Requires documents:ingest capability. JSON callers send exactly one of text or contentBase64; multipart callers attach file=. Keys file one document per call and spend a daily ask. Refusals (duplicate, empty, oversize, unparseable) return 201 with a refused entry, never an error.
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
maxLength: 255
text:
type: string
maxLength: 500000
contentBase64:
type: string
description: File bytes as base64. Exactly one of text or contentBase64.
projectId:
type: string
format: uuid
folderId:
type: string
format: uuid
required:
- name
responses:
'201':
description: Stored documents plus refused entries.
content:
application/json:
schema:
type: object
properties:
documents:
type: array
items:
$ref: '#/components/schemas/Document'
refused:
type: array
items:
type: object
properties:
name:
type: string
reason:
type: string
code:
type: string
description: 'Machine-readable refusal code (IngestError code, or DUPLICATE). Additive: reason text is unchanged.'
reasonCode:
type: string
description: Skip sub-reason (the quality-gate reason, e.g. wrong-language). Present on SKIP_UNRECOVERABLE refusals only.
existingId:
type: string
format: uuid
required:
- documents
- refused
'400':
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, invalid, paused or revoked key, or human-only route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Capability or access denied.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found or not visible.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Daily budget spent (error.code DAILY_BUDGET_EXCEEDED) or minute throttle (RATE_LIMITED).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Documents
/v1/documents/access:
get:
operationId: checkDocumentsAccess
summary: Check document access in a batch
description: Checks whether this key can read every listed document in one collection, without returning content. Send it as HEAD. Answers 204 only when GET /v1/documents/{id} would return each of them to this key. Otherwise, it answers 404 with no detail, even when only one id is missing, hidden, not yet indexed or outside the key's grants. A collection the key cannot read also answers 404. The whole batch counts as one call against the key's rate limit.
parameters:
- name: ids
in: query
required: true
description: 1 to 20 document UUIDs, comma-separated.
schema:
type: string
- name: projectId
in: query
required: false
description: Project UUID. May be omitted only when the key resolves to a single project.
schema:
type: string
format: uuid
responses:
'204':
description: The key can read every listed document.
'400':
description: 'Invalid request: no ids, more than 20, or an id that is not a UUID.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, invalid, paused or revoked key, or human-only route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Capability or access denied.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: At least one listed document is not readable by this key, or does not exist.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate or daily budget limit.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Documents
/v1/documents/{id}:
get:
operationId: getDocument
summary: Get document metadata
description: Returns metadata for an accessible indexed document.
parameters:
- name: id
in: path
required: true
description: Resource UUID.
schema:
type: string
format: uuid
- name: projectId
in: query
required: false
description: Project UUID. May be omitted only when the key resolves to a single project.
schema:
type: string
format: uuid
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
properties:
document:
$ref: '#/components/schemas/Document'
required:
- document
'400':
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, invalid, paused or revoked key, or human-only route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Capability or access denied.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found or not visible.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate or daily budget limit.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Documents
/v1/documents/{id}/text:
get:
operationId: getDocumentText
summary: Read converted text
description: Returns the converted text within the Profile document grants. Large responses may be truncated. With offset, returns that piece of the text, plus offset (where the piece really starts), totalChars and name.
parameters:
- name: id
in: path
required: true
description: Resource UUID.
schema:
type: string
format: uuid
- name: projectId
in: query
required: false
description: Project UUID. May be omitted only when the key resolves to a single project.
schema:
type: string
format: uuid
- name: offset
in: query
required: false
description: Character position to read from, for reading a long document in pieces.
schema:
type: integer
minimum: 0
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
properties:
text:
type: string
truncated:
type: boolean
required:
- text
- truncated
'400':
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, invalid, paused or revoked key, or human-only route.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Capability or access denied.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found or not visible.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate or daily budget limit.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Documents
components:
schemas:
Document:
type: object
properties:
id:
type: string
format: uuid
folderId:
type:
- string
- 'null'
name:
type: string
mime:
type: string
bytes:
type: integer
status:
type: string
createdAt:
type: string
ttlDays:
type: integer
stale:
type: boolean
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
required:
- code
- message
required:
- error
securitySchemes:
ProfileKey:
type: http
scheme: bearer
description: A Profile credential formatted as publicId.secret. All credentials in a Profile share its document grants.