PaperOffice AI Document AI — AI Document Operations API
AI data of stored documents: metadata, summaries, canonical entities, vision data and embeddings (read and search).
AI data of stored documents: metadata, summaries, canonical entities, vision data and embeddings (read and search).
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/paperoffice-ai:paperoffice-ai-document-ai-ai-document-operations-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: PaperOffice AI Document AI — AI Document Operations API
version: R20261120.1802
summary: 'PaperOffice AI, the Document Operations Platform: OCR, IDP, DMS, PDF, e-signatures, anonymization, workflows, translation, voice.'
description: 'Generated from the PaperOffice API SOT (release `R20261120.1802`). Agent documentation: llms.txt (index), integration guide and llms-full.txt. Check each response media type; downloads may be binary.
JSON success envelopes commonly carry `status: "success"`; JSON errors commonly carry `status: "error"`, `code` and `message`. Job endpoints hold the connection while `client_wait=true` (default) and answer HTTP 202 with `poll_url` when the hold window ends — poll `GET /job/get/{job_id}`. Operations that share one method and path list their documented variants in `x-paperoffice-variants`.'
servers:
- url: https://api.paperoffice.ai/latest
security:
- bearerAuth: []
tags:
- name: Document AI — AI Document Operations
description: 'AI data of stored documents: metadata, summaries, canonical entities, vision data and embeddings (read and search).'
paths:
/document_intelligence/embeddings/search:
post:
operationId: po-embeddings-search
summary: Search embeddings
tags:
- Document AI — AI Document Operations
description: Direct semantic vector search over Document Intelligence embeddings. Choose embedding type (document_summary, page, paragraph, metadata), min-score and workspace filter.
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-embeddings-search.md
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
$schema: https://json-schema.org/draft/2020-12/schema
properties:
query:
type: string
description: Search query (natural language)
embedding_type:
type: string
description: Embedding layer
enum:
- document_summary
- document_full
- page
- paragraph
- metadata
default: document_summary
workspace_id:
type: number
description: Limit to workspace
limit:
type: number
description: Max results (1-50)
default: 10
min_score:
type: number
description: Min similarity (0.0-1.0, default 0.3)
default: 0.3
minimum: 0
maximum: 1
required:
- query
additionalProperties: false
application/x-www-form-urlencoded:
schema:
type: object
$schema: https://json-schema.org/draft/2020-12/schema
properties:
query:
type: string
description: Search query (natural language)
embedding_type:
type: string
description: Embedding layer
enum:
- document_summary
- document_full
- page
- paragraph
- metadata
default: document_summary
workspace_id:
type: number
description: Limit to workspace
limit:
type: number
description: Max results (1-50)
default: 10
min_score:
type: number
description: Min similarity (0.0-1.0, default 0.3)
default: 0.3
minimum: 0
maximum: 1
required:
- query
additionalProperties: false
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
_billing:
type: object
properties:
credits:
type: object
properties:
total_monthly:
type: integer
remaining_monthly:
type: integer
credit_source:
type: string
api_handler:
type: string
tier_info:
type: object
properties:
tier:
type: string
name:
type: string
initial_credits:
type: integer
price_monthly:
type: integer
price_overage_per_credit:
type: integer
notice:
type: string
renewal_days:
type: integer
subscription_status:
type: string
job:
type: object
properties:
api_job_name:
type: string
app:
type: string
action:
type: string
option:
type: string
default_credits:
type: integer
credits_billed:
type: integer
pricing:
type: object
properties:
credits_per_unit:
type: integer
unit:
type: string
unit_count:
type: integer
addons:
type: string
requests:
type: object
properties:
limits:
type: object
properties:
second:
type: integer
minute:
type: integer
hour:
type: integer
day:
type: integer
current:
type: object
properties:
second:
type: integer
minute:
type: integer
hour:
type: integer
day:
type: integer
remaining:
type: object
properties:
second:
type: integer
minute:
type: integer
hour:
type: integer
day:
type: integer
next_possible_request_seconds:
type: integer
remaining_credits:
type: integer
total_monthly:
type: integer
account_id:
type: integer
plan:
type: object
properties:
tier:
type: string
name:
type: string
credits_billed:
type: integer
embedding_type:
type: string
min_score:
type: number
processing_time:
type: string
query:
type: string
results:
type: array
items:
type: object
properties:
id:
type: integer
score:
type: number
document:
type: object
properties:
documents_id:
type: integer
pofid:
type: string
file_name:
type: string
workspace_id:
type: integer
embedding_type:
type: string
page_number:
type: string
chunk_index:
type: string
source_text:
type: string
status:
type: string
total:
type: integer
workspace_id:
type: string
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/document_intelligence/embeddings/{documents_id}:
get:
operationId: po-embeddings-document-get
summary: Get document embeddings (read)
tags:
- Document AI — AI Document Operations
description: Read all embedding types of a document — summary, full, page, paragraph, metadata, entity, and vision layers where available.
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-embeddings-document-get.md
parameters:
- name: documents_id
in: path
required: true
schema:
type:
- string
- number
description: Document ID (numeric, from po_documents_search)
- name: type
in: query
required: false
schema:
type: string
description: 'Embedding type: document_summary, document_full, page, paragraph, metadata, entity'
- name: include_vectors
in: query
required: false
schema:
type: boolean
description: 'Include raw embedding vectors (large payload; default: false).'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessEnvelope'
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/document_intelligence/entities/canonical:
get:
operationId: po-entities-get-canonical-entities
summary: Get canonical entities (entity index)
tags:
- Document AI — AI Document Operations
description: Canonical deduplicated entities across all documents. Shows how often an entity appears in different documents.
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-entities-get-canonical-entities.md
parameters:
- name: type
in: query
required: false
schema:
type: string
description: 'Optional: Filter by entity type'
- name: workspace_id
in: query
required: false
schema:
type: string
description: 'Optional: Filter by workspace'
- name: search
in: query
required: false
schema:
type: string
description: 'Optional: Search term'
- name: limit
in: query
required: false
schema:
type: string
description: 'Max results (default: 100, max: 500)'
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
description: Kanonische Entitaeten
properties:
status:
type: string
description: HTTP-Level Status
enum:
- success
- error
job_id:
type: string
pattern: ^poai-job_.*
message:
type: string
description: Menschenlesbare Statusmeldung
pipeline:
type: string
operation:
type: string
description: Ausgefuehrte Operation
processing_time:
type: string
description: 'Gesamte Verarbeitungszeit inkl. Queue (Format: 123.45ms)'
result:
type: object
description: Das eigentliche Verarbeitungsergebnis
properties:
status:
type: string
description: Job-Level Status
enum:
- completed
- failed
- timeout
message:
type: string
description: Pipeline-spezifische Statusmeldung
duration_ms:
type: string
description: Reine Pipeline-Verarbeitungszeit in ms
output:
type: object
properties:
entities:
type: array
items:
type: object
total:
type: number
required:
- status
- job_id
- result
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/document_intelligence/meta_fields/{pofid}:
get:
operationId: po-document-analysis-metadata
summary: Get document metadata
tags:
- Document AI — AI Document Operations
description: Get document analysis metadata including extraction confidence, model hints, and field coverage for a processed document.
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-document-analysis-metadata.md
parameters:
- name: pofid
in: path
required: true
schema:
type: string
- name: category
in: query
required: false
schema:
type: string
description: 'Optional filter: financial, parties, metadata, dates, content, etc.'
- name: processing_lane
in: query
required: false
schema:
type: string
enum:
- no_sla
- sla_24h
- sla_12h
- sla_6h
- sla_1h
- instant
description: 'Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla.'
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
description: Extract document metadata
properties:
status:
type: string
description: HTTP-Level Status
enum:
- success
- error
job_id:
type: string
pattern: ^poai-job_.*
message:
type: string
description: Human-readable status message
pipeline:
type: string
description: Name of the executed pipeline
operation:
type: string
description: Executed operation
processing_time:
type: string
description: 'Total processing time including queue (format: 123.45ms)'
result:
type: object
description: The actual processing result
properties:
status:
type: string
description: Job-Level Status
enum:
- completed
- failed
- timeout
message:
type: string
description: Pipeline-specific status message
duration_ms:
type: string
description: Pure pipeline processing time in ms
output:
type: object
description: Output
properties:
metadata:
type: object
description: Extracted metadata
document_type:
type: string
language:
type: string
page_count:
type: number
required:
- status
- job_id
- result
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/document_intelligence/summary/{pofid}:
get:
operationId: po-summary-stats-get-document-summary
summary: Get document summary
tags:
- Document AI — AI Document Operations
description: Compact summary of all Document Intelligence data. An endpoint for all key metrics and API links.
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-summary-stats-get-document-summary.md
parameters:
- name: pofid
in: path
required: true
schema:
type: string
description: PaperOffice File ID (POFID). Passed as URL path segment (/document_intelligence/summary/{pofid}).
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
description: Dokument-Zusammenfassung
properties:
status:
type: string
description: HTTP-Level Status
enum:
- success
- error
job_id:
type: string
pattern: ^poai-job_.*
message:
type: string
description: Menschenlesbare Statusmeldung
pipeline:
type: string
operation:
type: string
description: Ausgefuehrte Operation
processing_time:
type: string
description: 'Gesamte Verarbeitungszeit inkl. Queue (Format: 123.45ms)'
result:
type: object
description: Das eigentliche Verarbeitungsergebnis
properties:
status:
type: string
description: Job-Level Status
enum:
- completed
- failed
- timeout
message:
type: string
description: Pipeline-spezifische Statusmeldung
duration_ms:
type: string
description: Reine Pipeline-Verarbeitungszeit in ms
output:
type: object
properties:
summary:
type: string
key_points:
type: array
items:
type: string
word_count:
type: number
required:
- status
- job_id
- result
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/document_intelligence/vision/{pofid}:
get:
operationId: po-vision-get-vision-data
summary: Get vision data
tags:
- Document AI — AI Document Operations
description: 'Vision-extracted data Ultra-Tier. Includes: - Tables - Structured table data with rows/columns - charts - Recognized charts with data - Form Fields - Form fields with values - barcodes - QR codes and barcodes - Layout - Document...'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-vision-get-vision-data.md
parameters:
- name: pofid
in: path
required: true
schema:
type: string
- name: include
in: query
required: false
schema:
type: string
description: all, tables, charts, forms, barcodes, layout
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
description: Bild-Analyse / Vision
properties:
status:
type: string
description: HTTP-Level Status
enum:
- success
- error
job_id:
type: string
pattern: ^poai-job_.*
message:
type: string
description: Menschenlesbare Statusmeldung
pipeline:
type: string
operation:
type: string
description: Ausgefuehrte Operation
processing_time:
type: string
description: 'Gesamte Verarbeitungszeit inkl. Queue (Format: 123.45ms)'
result:
type: object
description: Das eigentliche Verarbeitungsergebnis
properties:
status:
type: string
description: Job-Level Status
enum:
- completed
- failed
- timeout
message:
type: string
description: Pipeline-spezifische Statusmeldung
duration_ms:
type: string
description: Reine Pipeline-Verarbeitungszeit in ms
output:
type: object
properties:
description:
type: string
description: Bildbeschreibung
objects:
type: array
items:
type: object
text_detected:
type: string
labels:
type: array
items:
type: string
required:
- status
- job_id
- result
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
components:
schemas:
SuccessEnvelope:
type: object
description: Success envelope. Payload fields are endpoint-specific (top-level fields, `result`/`job_result` for jobs, `data` on some account endpoints).
properties:
status:
type: string
const: success
processing_time:
type:
- string
- number
_billing:
type: object
additionalProperties: true
required:
- status
additionalProperties: true
ErrorEnvelope:
type: object
properties:
status:
type: string
const: error
code:
type: string
message:
type: string
retryable:
type: boolean
required:
- status
- message
additionalProperties: true
responses:
Error:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
securitySchemes:
signingToken:
type: apiKey
in: query
name: token
description: Signer capability from the signing link. Protect it as a credential.
bearerAuth:
type: http
scheme: bearer
description: '`po_sk_` (secret key) or `po_ut_` (user token) server-side; `po_pk_` is public, scope/budget-capped and host-allowlisted. Origin can be forged outside browsers and is not caller authentication. Documentation routes under `/docs/` also answer without a Bearer (visitor tier).'
externalDocs:
description: Agent documentation (llms.txt)
url: https://api.paperoffice.ai/latest/docs/llms.txt