For Agents
Manage documents, organizations, tags, and search across 18 endpoints with OCR and activity tracking.
Use for: I need to upload a document with OCR, Search for documents by content, Create a new tag and assign it to documents, Apply tagging rules automatically
Not supported: Does not handle document editing, collaboration comments, or version control - use for document upload, search, tagging, and activity tracking only.
Jentic publishes the only available OpenAPI specification for Papra API, keeping it validated and agent-ready. The Papra API enables document management for organizations including document upload with OCR, search, tagging, activity tracking, and organization management. It powers paperless workflows, document archiving, and intelligent document organization with automated tagging rules.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Papra API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fpapra.app%2Fmain" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fpapra.app%2Fmain" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Papra API.
Create and manage organizations with hierarchical structure
Upload documents with automatic OCR language detection
Search documents with full-text search and pagination
Create, update, and assign tags to documents with color coding
Apply automated tagging rules to documents
Download document files and retrieve metadata
Track document activity and audit logs
Retrieve storage statistics and document counts
Manage deleted documents in trash
Patterns agents use Papra API for, with concrete tasks.
★ Document Upload with OCR
Upload documents with automatic OCR processing. POST /api/organizations/{organizationId}/documents accepts multipart/form-data with file and optional ocrLanguages parameter. The API extracts text content and stores it searchably, enabling paperless workflows and document digitization.
POST /api/organizations/{organizationId}/documents with file and ocrLanguages to upload and extract text
Intelligent Document Search
Search documents with full-text search capabilities and pagination. GET /api/organizations/{organizationId}/documents/search accepts searchQuery with pageIndex and pageSize parameters, returning matched documents with total count. Essential for finding documents across large archives.
GET /api/organizations/{organizationId}/documents/search?searchQuery=invoice&pageIndex=0&pageSize=50
Tag-Based Document Organization
Create, manage, and assign tags to documents with color coding and descriptions. POST /api/organizations/{organizationId}/tags creates tags, POST /documents/{documentId}/tags assigns them, and DELETE unassigns. Automated tagging rules can be applied via POST /tagging-rules/{taggingRuleId}/apply.
POST /api/organizations/{organizationId}/tags to create, then POST /documents/{documentId}/tags to assign
Document Activity Auditing
Track document activity and audit logs with pagination. GET /api/organizations/{organizationId}/documents/{documentId}/activity returns chronological activity events including uploads, edits, tag assignments, and views. Critical for compliance and document lifecycle tracking.
GET /api/organizations/{organizationId}/documents/{documentId}/activity?pageIndex=0&pageSize=50
Agent-Driven Document Management via Jentic
An AI agent managing paperless workflows can upload documents, search content, apply tags, and track activity through Jentic without exposing bearer authentication tokens in agent context. Jentic resolves intents like 'upload this document' to the right Papra endpoint.
Search Jentic for 'upload document with ocr', load the POST /documents schema, and execute
18 endpoints — jentic publishes the only available openapi specification for papra api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/api/api-keys/current
Retrieve current API key details
/api/organizations
List all accessible organizations
/api/organizations
Create a new organization
/api/organizations/{organizationId}/documents
Upload a document with OCR
/api/organizations/{organizationId}/documents
List organization documents with pagination
/api/organizations/{organizationId}/documents/search
Search documents with full-text query
/api/organizations/{organizationId}/documents/statistics
Get storage statistics
/api/organizations/{organizationId}/documents/{documentId}
Retrieve document metadata
/api/organizations/{organizationId}/documents/{documentId}
Update document metadata
/api/organizations/{organizationId}/documents/{documentId}
Delete a document
/api/organizations/{organizationId}/documents/{documentId}/file
Download document file
/api/organizations/{organizationId}/documents/{documentId}/activity
Retrieve document activity log
/api/organizations/{organizationId}/tags
List all tags
/api/organizations/{organizationId}/tags
Create a tag
/api/organizations/{organizationId}/tags/{tagId}
Update a tag
/api/organizations/{organizationId}/tags/{tagId}
Delete a tag
/api/organizations/{organizationId}/documents/{documentId}/tags
Assign a tag to a document
/api/organizations/{organizationId}/tagging-rules/{taggingRuleId}/apply
Apply a tagging rule to documents
/api/api-keys/current
Retrieve current API key details
/api/organizations
List all accessible organizations
/api/organizations
Create a new organization
/api/organizations/{organizationId}/documents
Upload a document with OCR
/api/organizations/{organizationId}/documents
List organization documents with pagination
/api/organizations/{organizationId}/documents/search
Search documents with full-text query
/api/organizations/{organizationId}/documents/statistics
Get storage statistics
/api/organizations/{organizationId}/documents/{documentId}
Retrieve document metadata
/api/organizations/{organizationId}/documents/{documentId}
Update document metadata
/api/organizations/{organizationId}/documents/{documentId}
Delete a document
/api/organizations/{organizationId}/documents/{documentId}/file
Download document file
/api/organizations/{organizationId}/documents/{documentId}/activity
Retrieve document activity log
/api/organizations/{organizationId}/tags
List all tags
/api/organizations/{organizationId}/tags
Create a tag
/api/organizations/{organizationId}/tags/{tagId}
Update a tag
/api/organizations/{organizationId}/tags/{tagId}
Delete a tag
/api/organizations/{organizationId}/documents/{documentId}/tags
Assign a tag to a document
/api/organizations/{organizationId}/tagging-rules/{taggingRuleId}/apply
Apply a tagging rule to documents
What agents get from Jentic-routed access to this vendor.
Setup
Wiring the Papra API by hand means setting up its bearer auth, shaping the per-organization document routes, and handling upload, search, and retries yourself. Through Jentic you install once, import Papra from the API Directory, store the token once, and your agent calls it.
Permission scoping
Papra puts the organization id and document id in the URL path (/api/organizations/{organizationId}/documents/{documentId}), so a rule can pin your agent to one organization: it can upload, search, and read documents there and nothing else. You choose the operations it may call, so destructive ones like document deletion are not included unless you add them.
Credential isolation
Your Papra bearer token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'upload a document' or 'search documents in an organization', and Jentic returns the matching Papra operation with its input schema so the agent calls the right endpoint without browsing the reference docs.
Alternatives and complements available in the Jentic catalogue.
Specific to using Papra API through Jentic.
Why is there no official OpenAPI spec for Papra API?
Papra does not publish a complete OpenAPI specification for their API. Jentic generates and maintains this spec so that AI agents and developers can call Papra API via structured tooling. Get started with Jentic One, the self-hosted execution layer.
What authentication does the Papra API use?
The Papra API uses bearer token authentication. Through Jentic, the token is stored in the encrypted vault and injected at execution time so it never enters the agent's prompt context.
How does OCR work when uploading documents?
POST /api/organizations/{organizationId}/documents accepts a file via multipart/form-data with an optional ocrLanguages parameter to specify the language(s) for text extraction. The API automatically processes the document and extracts searchable text content.
Can I search document content?
Yes. GET /api/organizations/{organizationId}/documents/search accepts a searchQuery parameter and returns all documents matching the full-text search with pagination support. The search covers OCR-extracted text and document metadata.
How do automated tagging rules work?
POST /api/organizations/{organizationId}/tagging-rules/{taggingRuleId}/apply triggers an automated tagging task that applies predefined rules to documents. The endpoint returns a taskId for tracking the async operation.
Can I track document changes?
Yes. GET /api/organizations/{organizationId}/documents/{documentId}/activity returns a paginated activity log with timestamps and event types including uploads, edits, tag assignments, and views. Essential for compliance and audit trails.
Can I limit what my agent is allowed to do with the Papra API?
Yes. Because Papra puts the organization id and document id in the URL path, such as /api/organizations/{organizationId}/documents/{documentId}, your self-hosted Jentic One instance lets you write a rule that pins the agent to a single organization, where it can upload, search, and read documents and nothing else. You decide which operations it may call, so destructive ones like the DELETE on a document are left out unless you explicitly add them. Your own rules govern which endpoints and credentials the agent uses at execution time.
GET STARTED