Skip to main content
Version: v2

Create a document in a router

Provision an operational document in a router

Path Parameters
  • router_id string required

    Paperbox router id

Query Parameters
  • key string required
Header Parameters
  • X-PB-Document-Content-Type string

    Optional header to specify the content type of the document. This header overrides the content-type that is passed in the form data.

Request Body required
  • document binary required

    Document payload

  • document_id string required

    Document id

  • metadata binary

    Additional metadata in the form of a JSON file.

Responses

Payload accepted for processing

POST /operational/routers/:router_id/documents
Authorization: api_key
name: keyin: querytype: apiKey
router_id — path
key — query
X-PB-Document-Content-Type — header
Body
document
Document payload
document_id
metadata
Additional metadata in the form of a JSON file.
curl -L -X POST 'https://integration.prd.paperbox.ai/v2/operational/routers/:router_id/documents' \
-H 'Content-Type: multipart/form-data'