PaperOffice AI Document AI — Webhooks API
Webhook subscriptions for document and job events: create, update, test and delete.
Webhook subscriptions for document and job events: create, update, test and delete.
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-webhooks-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 — Webhooks 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 — Webhooks
description: 'Webhook subscriptions for document and job events: create, update, test and delete.'
paths:
/webhooks/delete:
post:
operationId: po-webhooks-delete
summary: Delete Webhook Subscription
tags:
- Document AI — Webhooks
description: 'po_webhooks_delete: Delete a webhook subscription. Delivery logs are preserved for audit purposes. Keywords: delete webhook, remove subscription, unsubscribe. Accepts subscription_id or id. Response echoes both id and subscription_id.'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-webhooks-delete.md
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
subscription_id:
type: integer
description: ID of the subscription to delete
required:
- subscription_id
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessEnvelope'
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/webhooks/list:
get:
operationId: po-webhooks-list
summary: List Webhook Subscriptions
tags:
- Document AI — Webhooks
description: 'po_webhooks_list: List all webhook subscriptions for the current account — active and inactive (is_active per row). Optional is_active=true|false filter; include_deleted=true returns only soft-deleted rows. Shows URL, events, retry...'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-webhooks-list.md
parameters:
- name: is_active
in: query
required: false
schema:
type: boolean
description: 'Optional filter: true = only active, false = only inactive. Omit for all. Accepts true/false, 1/0, yes/no, on/off (JSON boolean or form string); other values return 400 INVALID_BOOLEAN.'
- name: include_deleted
in: query
required: false
schema:
type: boolean
default: false
description: true = return only soft-deleted subscriptions (audit). Accepts true/false, 1/0, yes/no, on/off (JSON boolean or form string); other values return 400 INVALID_BOOLEAN.
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
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
processing_time:
type: string
status:
type: string
subscriptions:
type: array
total:
type: integer
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/webhooks/subscribe:
post:
operationId: po-webhooks-subscribe
summary: Create Webhook Subscription
tags:
- Document AI — Webhooks
description: 'po_webhooks_subscribe: Create a new webhook subscription. Payloads are signed with HMAC-SHA256. Response includes id and subscription_id (same value) — save either for po_webhooks_test, po_webhooks_update, po_webhooks_delete. Auto...'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-webhooks-subscribe.md
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Display name for the subscription (required).
url:
type: string
description: Webhook target URL (HTTPS recommended).
events:
type: array
description: 'Event types, e.g. ["document.uploaded","document.edited"], or ["*"] for all. Full list: see the tool description.'
items:
type: string
secret:
type: string
description: HMAC secret (auto-generated if empty).
filters:
type: object
description: Optional Filter (e.g. workspace_id, pofid)
headers:
type: object
description: Additional HTTP headers as key-value pairs
retry_policy:
type: string
description: 'Retry policy: none, linear, or exponential (default: exponential).'
enum:
- none
- linear
- exponential
max_retries:
type: integer
description: Maximum delivery retries after failure (0–10, default 5).
default: 5
minimum: 0
maximum: 10
timeout_ms:
type: integer
description: 'Timeout in ms (1000-30000, default: 10000)'
is_active:
type: boolean
description: Create the subscription active (true, default) or inactive (false). Accepts true/false, 1/0, yes/no, on/off (JSON boolean or form string); other values return 400 INVALID_BOOLEAN.
default: true
required:
- name
- url
- events
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
status:
type: string
id:
type: integer
description: Subscription ID (canonical, same as subscription_id)
subscription_id:
type: integer
description: Alias for id — use for update/test/delete
secret:
type: string
events:
type: array
items:
type: string
events_requested:
type: array
items:
type: string
events_resolved:
type: array
items:
type: string
message:
type: string
required:
- status
- id
- subscription_id
- secret
- events
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/webhooks/test:
post:
operationId: po-webhooks-test
summary: Test webhook
tags:
- Document AI — Webhooks
description: 'po_webhooks_test: Send a test.ping event to a webhook subscription to verify connectivity. Shows status code, response time, and response body. Delivery is logged. Keywords: test webhook, ping, verify webhook, test connectivity...'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-webhooks-test.md
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
subscription_id:
type: integer
description: ID of the Subscription (Required)
required:
- subscription_id
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessEnvelope'
4XX:
$ref: '#/components/responses/Error'
5XX:
$ref: '#/components/responses/Error'
/webhooks/update:
post:
operationId: po-webhooks-update
summary: Update Webhook Subscription
tags:
- Document AI — Webhooks
description: 'po_webhooks_update: Update an existing webhook subscription. Can change name, URL, events, secret, filters, headers, retry policy, active status, and timeouts. Keywords: update webhook, modify subscription, change webhook. Accepts...'
externalDocs:
url: https://api.paperoffice.ai/latest/docs/endpoints/po-webhooks-update.md
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
subscription_id:
type: integer
description: ID of the Subscription (Required)
name:
type: string
description: New subscription name.
url:
type: string
description: New webhook URL.
events:
type: array
description: New event list.
items:
type: string
secret:
type: string
description: New signing secret.
filters:
type: object
description: new Filter
headers:
type: object
description: New custom headers.
is_active:
type: boolean
description: Set subscription active (true) or inactive (false). Reactivation resets the auto-disable failure counter. Accepts true/false, 1/0, yes/no, on/off (JSON boolean or form string); other values return 400 INVALID_BOOLEAN.
retry_policy:
type: string
description: 'Retry policy: none, linear, or exponential (default: exponential).'
enum:
- none
- linear
- exponential
max_retries:
type: integer
description: New maximum retry count.
timeout_ms:
type: integer
description: New timeout in milliseconds.
required:
- subscription_id
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessEnvelope'
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