Recipe + prompt
Capture with a publishable key
The browser uploads files, starts OCR, and shows job status — without a secret key.
- 01 Intake
Document arrives
- 02 Recognition
OCR and layout
- 03 Classification
Type and fields
- 04 Review
Rule or person
- 05 Result
Status and export
Implement as
- Starting point
- The browser uploads files, starts OCR, and shows job status — without a secret key.
- Automated result
- The browser uploads files, starts OCR, and shows job status — without a secret key.
- Inputs
-
- Document
- Context
- Outputs
-
- Status
- Fields
Flow
- 01Accept intake
- 02Recognize
- 03Review
- 04Task or export
- 05Set status
- Authentication
- Publishable Key (po_pk_)
Use only a publishable key po_pk_ in the browser. Limit scope. Set origin allowlist, budget, and rate limit. Never put po_sk_ in the frontend.
- MCP profile
- Endpoints
-
POST /job/add/paperoffice_aiocr___generateGET /job/get/{job_id}POST /documents/idp-agent-run
- Modules
-
- Capture
- OCR
- Classify
- Export
- Permissions
- Scope only for POST /job/add/paperoffice_aiocr___generate, POST /documents/idp-agent-run, GET /job/get/{job_id}. No DELETE, admin, billing, or webhook rights on po_pk_.
- Errors and approval
- 401/403: check key, scope, or origin. 402: budget. 429: wait, do not loop. 202: poll until completed. Timeout: retry once, then stop. Mark partial failures.
- Security
-
- po_pk_ with a narrow scope only
- origin allowlist
- budget and rate limit
- never ship po_sk_
Prompt for Custom app
Read this first, in full:
https://api.paperoffice.ai/latest/docs/llms-full.txt
Task:
The browser uploads files, starts OCR, and shows job status — without a secret key. Use documented endpoints only.
Frame:
- Base URL: https://api.paperoffice.ai/latest
- Build a browser app. Authorization: Bearer po_pk_PUBLISHABLE_KEY. The browser sets Origin. No secret keys in the browser.
Only these endpoints:
- POST /job/add/paperoffice_aiocr___generate
- POST /documents/idp-agent-run
- GET /job/get/{job_id}
Errors: stop on 401/403 and check the key. Show budget on 402. Back off on 429. Retry a network error once. Do not invent endpoints. Do not use real tokens. - browser-capture-app-sample.pdf
- company: Example Ltd
Expected result
recipe=browser-capture-app, status=ok
Build or sell this solution with PaperOffice?
Integrator and Reseller can be combined. The next step is the partnership — application and instant decision continue in the PaperOffice app.
Start partnership