pb.submissions is the generic capture entry point. Send content or an event and
Penumbra routes it: a url becomes a document, a shape paired with a source
becomes an extraction, and anything else stages a delta. One door, three
destinations.
create
How it routes
| Payload | Route | Result |
|---|---|---|
url (or as_document: true) | document | Ingests the URL as a document. |
shape + a source_file_id or collection_id | extraction | Returns a next_action pointing at POST /v1/extractions/shape. |
| anything else (default) | delta | Stages a governed delta; commits unless apply: false. |
route ("delta", "document", or "extraction") to override
the inference.
Methods
| Method | Description |
|---|---|
pb.submissions.create(input) | Submit content or an event for capture; routed by payload shape. |
Over REST this is
POST /v1/submissions. The delta route commits by default;
pass apply: false to stage and review first.Related
Capture and extract
Direct, typed writes with
pb.capture and pb.extract.Documents
Ingest source files directly.